General ⇒ Header
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Header
that's no problem, use \input.
For instance create a file header.tex and load the packages there, in the preamble of your main document write
Code: Select all
\input{header}
Re: Header
thanks. That solved it. Just wondering, I tried to do the same thing, but instead of \input{}, I used \include{} and it gave me an error. Why is that?
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Header
\include is especially useful to swap out chapters, so it's a good idea to use it in a document body. \input is appropriate for small pieces of code or text.
Stefan