Suppose I have the following document:
\documentclass{amsart}
\begin{document}
\subsection{Subsection}
Content.
\end{document}
How can I modify the code so that the subsection heading is italic instead of bold? I tried to use the titlesec
package, but I don't think it is compatible with the AMS document classes:
\documentclass{amsart}
\usepackage{titlesec}
\titleformat*{\subsection}{\it}
\begin{document}
\subsection{Subsection}
Content.
\end{document}
It works with the Article document class, but it produces errors in an AMS Article.
Edit: I would also like a space between the subsection title and the content, as in the typical Article document class.
Best Answer
The
\subsection
is defined inamsart.cls
as:This definition can be patched to redefine the font with
etoolbox
:This will give the
subsection
style as:Edit: Remove in-line heading
The in-line heading is caused by the
-.5em
distance that is given for separation. A negative number is interpreted as "horizontal distance to skip". To have the section start on the next line (and the number interpreted as "vertical distance to skip"), this must be a positive number. This can be accomplished by adding:The full example (with a bit more text) becomes: