[OS X TeX] centering section headings

Peter Lichtner lichtner at lanl.gov
Sun Jul 3 19:16:24 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

--------------------- 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