[OS X TeX] centering section headings

Alan Munn amunn at msu.edu
Sun Jul 3 19:40:21 EDT 2005


>Is there a simple way to center \section headings in article? Using 
>\begin{center}\section{heading}\end{center} doesn't seem to work (or 
>at least gives an error message with more than one \section). I get:
>
>!LaTeX Error: Something's wrong--perhaps a missing \item.
>
>using as a test:
>
>\documentclass[12pt]{article}
>\begin{document}
>\begin{center}\section{one}\end{center}
>text
>\begin{center}\section{two}\end{center}
>text
>\end{document}
>
>
>Thanks, ...Peter



This is probably best explained in the FAQ.

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=secthead

Basically look at the sectsty and titlesec packages.

Alan

-- 
Alan Munn                                                   amunn at msu.edu
Department of Linguistics                                   amunn at acm.org
and Germanic, Slavic, Asian and African Languages   Fax.  +1-517-432-2736
Michigan State University, East Lansing MI 48824    Tel.  +1-517-355-7491
--------------------- 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