Understanding LaTeX document structure, classes, and organization
\begin{document}
) contains global settings, package imports, and definitions. The document body (between \begin{document}
and \end{document}
) contains your actual content.Class | Purpose | Key Features |
---|---|---|
article | Short documents, papers | No chapters, sections start at 1 |
report | Technical reports, theses | Chapters available, new chapter starts new page |
book | Books, long documents | Two-sided by default, chapters, parts |
letter | Correspondence | Special letter commands |
beamer | Presentations | Slides, overlays, themes |
\section*{Introduction}
geometry
package:
fancyhdr
:
\include
vs \input
:\include{file}
- Starts new page, allows \includeonly
\input{file}
- Inserts content inline, no page break\label{sec:intro}
not \label{s1}