I'm a Canadian based in Berlin, Germany. My day job is a Technical Writer in the API space. I write about topics such as technology, usability, creative writing and Canadian history. All views mine. I tweet at @glennjlea. Read more about me here or at LinkedIn.
Site version: 3.0

LaTeX Project file structure

You can organize your project structure any way you want, of course. The suggested structure described in this topic allows me to keep the organization of the project manageable.

## LaTeX Projects

A LaTeX project consists of a set of files having a .tex extension, as well as image files and stylesheets having a .sty extension.

A User Guide or Reference Manual should, ideally, be created from multiple files, usually one file per chapter and a single root file that you would use to generate the output.

A root file is the main LaTeX file that the LaTeX typesetter uses to collect the style sheets, title page, chapters and appendices, and generate output using the defined headers and footers, TOC and so forth. Typically, you want to name it something like `main.tex` or similar.

When creating a project file structure, a root file is placed in the root of the directory. All chapter .tex files, image files and stylesheets are placed in sub-directories. This allows for better file management.

To build the LaTeX document, you then need only run the build command on the root file to generate output.

## Suggested project file structure

The following shows the suggested structure of a documentation project directory.