Subfile package for latex

If you have a complex Latex document and you want to split it in several files, the subfile package can help you.
The main difference between this and the \input or \import methods is that with subfile you can compile also each file, without need to copy the preamble.

What you have to do is to add

\usepackage{subfiles}

in the preamble of the master file and

\documentclass[tesi.tex]{subfiles}
\begin{document}
...
\end{document}

in your subfiles.
Now you can import your subfiles in the master file with

\subfile{subfile.tex}



Sources:

Tags// ,
More Reading
comments powered by Disqus