Sometimes I want to \input
some LaTeX code, which belongs to a standalone LaTeX file.
I would like to input the part between \begin{document}
and \end{document}
, while skipping the other part.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityThis is exactly the purpose of the docmute package. Another one with more options is the package and document class standalone.
standalone
package and then simply \input
the other file. The standalone
class is not required, but useful for the other file if it is a diagram or similar which you want to compile on its own with minimal borders.
Jun 27, 2011 at 10:41
standalone
document class?