LaTeX forum ⇒ Text Formatting ⇒ Custom section headings

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
tkemeny
Posts: 2
Joined: Tue Oct 27, 2009 5:32 pm

Hi there. I'm submitting to a journal that wants me to format my sections as follows:

Sections - arabic numbered, all caps, centered
Subsections - alpha (bracketed), sentence case, centered
Subsubsections - roman (bracketed), sentence case, left aligned

I tried defining sections as follows:
\def\thesection{\arabic{section}}\def\thesubsection{(\alph{subsection})}\def\thesubsubsection{(\roman{subsubsection})}

But this only gets me some of the way there. I get a period after the sub and subsubsections. For example, I get:

(a). title

(a) title

So, first, how can I get rid of the unwanted period?

Second, how can I handle the centering without specifying it for each section?

Thanks very much.
Tom

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA
You could use something like the titlesec package, e.g.:


localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany
Use the titlesec package and modify the standard formats as shown in Section 9.2 (Standard Classes, p. 26f). Here is a complete example.

In opposite to frabjous I used a command provided by the package to center the section headings in order to avoid possible side effects. Moreover font sizes and series remain as in the standard formats.

Best regards and welcome to the board
Thorsten¹
LaTeX Community Moderator

¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

tkemeny
Posts: 2
Joined: Tue Oct 27, 2009 5:32 pm