[OS X TeX] Problems customizing report.cls

Aaron Jackson jackson at msrce.howard.edu
Fri Apr 15 18:22:36 EDT 2005


On Apr 15, 2005, at 2:47 PM, Daryl Basil Biberdorf wrote:

> I can understand both your and Aaron's input on this.
> Sadly, I find it's often harder to figure out the inputs
> to the various packages than it is to look at the
> code that's generating output in a standard class.
> As one example, I find the documentation of the titlesec
> class in the LaTeX Companion to be completely
> confusing on several fronts.

Yes, it is confusing, but I managed to figure it out after a few hours  
and several test documents.  It makes things much more portable, so I  
bit the bullet.  To get what I wanted, I just had to use the following:

\usepackage[compact,indentfirst]{titlesec}% needed to change section  
characteristics
%%
%% change default chapter and section heading characteristics
%%
%% Syntax:
%%               
\titleformat{ command }[ shape ]{ format }{ label }{ sep }{ before }[ af 
ter ]
%%
%%
\titlespacing{\chapter}{0pt}{0pt}{30pt}[0pt]
\titleformat{\chapter}[hang]{\normalfont\normalsize\bfseries\centering}%
{\chaptertitlename\ \thechapter.\quad}{0pt}{}[]
\titleformat{\section}[hang]{\normalfont\normalsize\bfseries}{\thesectio 
n.\quad}{0pt}{}[]
\titleformat{\subsection}[hang]{\normalfont\normalsize\bfseries}{\thesub 
section.\quad}{0pt}{}[]
\titleformat{\subsubsection}[hang]{\normalfont\normalsize\bfseries}{\the 
subsubsection.\quad}{0pt}{}[]

Aaron
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list