GeneralPreamble in separate file

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mppxtylr
Posts: 5
Joined: Mon Mar 14, 2011 9:13 am

Preamble in separate file

Post by mppxtylr »

Hi there,

I am writing a document in Latex that has a lot of preamble, to the point where it is annoying to scroll through to find the document's content. Is it possible to place this preamble into a separate file and use the \include command?

Thanks :)

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Preamble in separate file

Post by frabjous »

You could put it in another file and use the \input command instead of \include. \include only make sense for chapters.
Post Reply