I'm a beginner in LaTeX. For my company, I must prepare some documents and reports that will be built on Jenkins. I have one repository. How to manage different styles and config files in one folder that allows Jenkins to build all kind of reports from one directory.
So to be clear I have one project repo on Bitbucket. Jenkins pulls all code after commit change on the repository, then build and generate *.pdf report file.
If I have one reports per repo everything is ok. But the problem appears when I need to generate more than one report. For example, some: plan.pdf for project A, text.pdf for project B. All of these files have different styling.
I want to have only one repo, but build several *.pdf files with different styling. How to organize project structure in LaTeX, TeX to get thus results?
.tex
files in the same directory as you want. You can build them separately by callingpdflatex <filename>
(plus additional helper tools etc.). The only thing to keep in mind is that (roughly speaking, I'm not too sure about the details) relative file names in.tex
files (things like\input{./foo}
) are resolved relative to the working directory in which you call LaTeX and not relative to the file path.