Writing everything in one file reduces readability, increases compile time, and makes debugging more difficult. Therefore a logical project structure is highly recommended.
Minimal version
main.tex
for project structure which inputs all fileschapter1.tex
for the first text chapter to be displayedchapter2.tex
for the next text chapter to be displayedsetup/
for the preamble, configuration, layout and formattingpackages.tex
for used packageslayout.tex
for formatting styles, package configurationdefinitions.tex
for new commands, environments, etc.titlepage.tex
for the first page of the document
resources/
for images, table values, sourcecode files, attachmentsbibliographies/
for sources and external references
Figure-heavy projects
main.tex
for project structure which inputs all filespackages.tex
for used packageslayout.tex
for formatting styles, package configurationdefinitions.tex
for new commands, environments, etc.
resources/
for images, table values, sourcecode files, attachmentsbibliographies/
for sources and external referencestable-floats/
for floating object definitions of tablesfigure-floats/
for the floating object definitions of images and graphicslisting-floats/
for the floating object definitions of listingssty/
for self-written packages
Preamble
Main document at main.tex
minimal version
regular version
Package requirements
Dependencies at setup/packages.tex
- see Document Classes for
\documentclass{}
Headings
at text/headings.tex
Sources:
Related: