Text FormattingFormat Section and Subsection Headings

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
LaTeXUser54
Posts: 4
Joined: Sat Jul 07, 2012 5:50 pm

Format Section and Subsection Headings

Post by LaTeXUser54 »

Are there any packages or option commands I can use to format section and subsection headings? I'd like the section headings to be bold and larger while I'd like the subsection headings on a seperate line than the text. Currently, my document typesets like so:

Section [in center]

Subsection text text text text ...........

My code consists of:
\begin{section}\\
\begin{subsection}\\
text

I'm using TexShop and a document class of amsart.

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Format Section and Subsection Headings

Post by Stefan Kottwitz »

I wonder why you use amsart but change the layout. If it's for an AMS journal, the layout should not be changed, if it's not for AMS publishing, I would use a standard class, not that specialized class.

For customizing the headings, I recommend to use the titlesec package.
LaTeXUser54 wrote:My code consists of:
\begin{section}\\
\begin{subsection}\\
These don't are environments. Write instead:

Code: Select all

Code, edit and compile here:
\section{title}
\subsection{title}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
LaTeXUser54
Posts: 4
Joined: Sat Jul 07, 2012 5:50 pm

Re: Format Section and Subsection Headings

Post by LaTeXUser54 »

Oops! Yeah, that's what I meant: \section{title} and \subsection{title}. The only reason that I'm using amsart is that I've only recently begun learning LaTeX and the book which taught me constantly made reference to amsart.

I'll have to try the titlesec package. Thanks.
Post Reply