Problem
I am recording university lectures at LaTeX (which is very convenient for this purpose), and I want the files to be texautomatically compiled into pdf.
I have a couple of files .texin my repository, for example:
.
βββ .gitlab-ci.yml
βββ lectures
βββ math
| βββ differentiation
| | βββ lecture_math_diff.tex
| | βββ chapter_1.tex
| | βββ chapter_2.tex
| βββ integration
| βββ lecture_math_int.tex
| βββ chapter_1.tex
| βββ chapter_2.tex
βββ physics
βββ mechanics
βββ lecture_physics_mech.tex
βββ chapter_1.tex
βββ chapter_2.tex
So, the main file, for example lecture_math_diff.tex, using
\include{chapter_1}
\include{chapter_2}
to form a whole lecture.
And as a result, I want my pdf assembly artifacts to look like this:
βββ math
| βββ lecture_math_diff.pdf
| βββ lecture_math_int.pdf
βββ physics
βββ lecture_physics_mech.pdf
What can be done here? Do I need to write any shscript to collect all files texor use gitlab runners?