5

I am not satisfied at all of how the \part command looks like in the amsart class.

In particular, I find much better how \part looks like in the standard article class.

Is there a way to mix the two? I would like a document in amsart with \part as in article.

I have tried to mix the two things, but I have not been able to come up with a solution (I have created a cls file, but I made some mistakes and the headings are not ok...). I have been following the tips from here Import \chapter into amsart but it is not exactly what I am really looking for.

Could you help me, please?

Thanks in advance.

1 Answer 1

5

You can use the definition of article.cls

\documentclass{amsart}
\usepackage{blindtext}

\makeatletter
%default definition of article.cls
%using \renewcommand instead of \newcommand
\renewcommand\part{%
   \if@noskipsec \leavevmode \fi
   \par
   \addvspace{4ex}%
   \@afterindentfalse
   \secdef\@part\@spart}

\def\@part[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    {\parindent \z@ \raggedright
     \interlinepenalty \@M
     \normalfont
     \ifnum \c@secnumdepth >\m@ne
       \Large\bfseries \partname\nobreakspace\thepart
       \par\nobreak
     \fi
     \huge \bfseries #2%
     %%%\markboth{}{}\par}% removing redefinition of headings
     \par}%
    \nobreak
    \vskip 3ex
    \@afterheading}
\def\@spart#1{%
    {\parindent \z@ \raggedright
     \interlinepenalty \@M
     \normalfont
     \huge \bfseries #1\par}%
     \nobreak
     \vskip 3ex
     \@afterheading}
\makeatother

\begin{document}
\part{foo}
\Blinddocument
\end{document}
3
  • Thanks for your answer! Actually it works but has the same problems of the solution I tried: it changes dramatically the headings! After the first \part the heading changes (and it remains only the page number). If you use plain amsart -without changing \part - the heading is longer with name of the author. Do you know how I could fix this? Shall I really use \fancy? Hope not... Thanks again.
    – Romeo
    Commented Feb 1, 2017 at 20:24
  • @Romeo: Fixed it. Commented Feb 1, 2017 at 20:42
  • Yes, that is exactly what I was looking for! Thank you so much! ;-)
    – Romeo
    Commented Feb 1, 2017 at 21:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .