GeneralIMSART in combination with appendix package

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Florian
Posts: 16
Joined: Sat Mar 15, 2008 7:14 pm

IMSART in combination with appendix package

Post by Florian »

Dear Latex-Community,

I am using the imsart package. In that package, with the \runauthor-command one has to specify how the author's name appears in the headline of every page. However, I use the package in combination with the appendix package, and unfortunately in the appendix of the paper the headlines of the pages are empty, i.e. no author is given there. This is very annoying. I contacted one of those people responsible for imsart but he did not reply yet. Has anyone an idea how I can extend the display of the author's names also to the pages in the appendix?

Thanks in advance and with best regards,
Florian

Recommended reading 2024:

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

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

User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

IMSART in combination with appendix package

Post by Juanjo »

The imsart class is not standard. I've downloaded the bundle from here and I've added the appendix package in the sample paper. The headers were still there. So I don't see the problem. You should build a minimal working example and post it here.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Florian
Posts: 16
Joined: Sat Mar 15, 2008 7:14 pm

Re: IMSART in combination with appendix package

Post by Florian »

Hi Juanjo,

thanks for considering my question. I have created a minimal working example which shows that on the second page (not appendix) the author's name and the paper's title appear in the headline while on the third page (appendix) both have disappeared.

\documentclass[preprint]{imsart}
\RequirePackage{amsthm,amsmath,verbatim,appendix,graphics,amssymb,mathrsfs}
\begin{document}
\begin{frontmatter}
\title{An (almost) minimal working example}
\runtitle{Minimal working example}
\begin{aug}
\runauthor{Florian}
\end{aug}
\end{frontmatter}
\newpage
\section{Main Text}
Here the author's name and the runtitle \emph{appear} in the headline.
\newpage
\appendix
\appendixpage
Here the author's name and the runtitle do \emph{not} appear in the headline anymore!! That's the problem!
\end{document}

If you could help me how to resolve the problem, I would be highly grateful!

Thanks,
Florian
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

IMSART in combination with appendix package

Post by Stefan Kottwitz »

Hi Florian,

the appendix package calls \markboth, you could use this workaround disabling it temporarily:

Code: Select all

\let\stdappendixpage\appendixpage
\renewcommand*\appendixpage{{%
  \let\markboth\relax\stdappendixpage}}
Stefan
LaTeX.org admin
Florian
Posts: 16
Joined: Sat Mar 15, 2008 7:14 pm

Re: IMSART in combination with appendix package

Post by Florian »

Dear Stefan,

your idea works perfectly. You are a LaTex magician!

Thank you and best regards,
Florian
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

IMSART in combination with appendix package

Post by Juanjo »

Stefan's advice solves the particular problem you found. However, I would suggest to consider if the appendix package, in your case, is really convenient. So, is \appendixpage the only command from the appendix package that you use? In the affirmative case, you can perfectly remove appendix from the preamble (so don't load it) and replace \appendixpage by \part*{Appendices} (internally, \appendixpage is just a redefinition of \part).

Have you more \part commands in your document? If not, observe that \appendixpage (or its replacement \part*{Appendices}) writes a title in a big font size, breaking the global appearance of the document. If you have only one appendix, I would simply start it with

Code: Select all

\section*{Appendix}
whereas, if you have several appendices, I would write something like

Code: Select all

\appendix
\section{Title of the first appendix}
Some text
\section{Title of the second appendix}
Some text
..........................................
In my opinion, an "appendices" title may be convenient in, say, a master thesis or long report, but not in a relatively short research article. Anyway, that's your choice.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply