I am writing a paper divided into several sections. I would like to have one master file and then several file which I will only include. I would like to do it properly, since I am sending it to my professor and he has to work with on it too.
Let me show, what I mean. The folder structure is:
Project/ |-master.tex |-subFolder/ |-section_one.tex |-anotherFolder/ |-section_two.tex The master.tex file:
\documentclass[a4paper]{article} % preamble \begin{document} \include{subFolder/section_one} \include{anotherFolder/section_two} \end{document} And for example section_one.tex:
\section{Section 1} Lorem ipsum Questions I am working in Sublime Text 2 with Latexing. I would like to
- create the project in recommended intelligent way (if such exists)
- while working on lets say
section_one.texbe able to press Ctrl + b (standard for shortcut for building the project) and build themaster.texfile notsection_one.texsince it does not contain preamble and throws bunch of errors. Also I don't want to have to switch to themaster.textfile in ST2 every time I want to build.
Project/Makefile) and changing the build system toMakeinstead ofLaTeX. Then⌃ Ctrl + Bshould work in all subdirectories.makefileintoProject/makefileand build the project fromsection_one.texI got an errorNo targets specified and no makefile found.Do you know how to fix it? Since I really don't want to put themakefileinto each folder, that seems messy.