3

\maketitle does not seem to play very well with the standalone class. This document

\documentclass{standalone}
\title{Standalone does not like titles}
\author{Me}
\begin{document}
   \maketitle
\end{document}

yields the error

! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.5    \maketitle

Is it possible to use them together?

4

In general, I'm not sure why you would, but yes. Add varwidth as a class option.

\documentclass[varwidth]{standalone}
\title{Standalone does not like titles}
\author{Me}
\begin{document}
   \maketitle
\end{document}
  • Why? To distribute parts of the document with a beautiful title page. The additional titles will be ignored in the composed main document, because only the first \maketitle in a document has an effect. Thanks for the quick solution. – XZS Jan 23 '14 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.