I work for a publisher who is primarily specializing in educational publications, offering final exams with sample solutions, exercise books and so on. The company is start-up and we write everything in LaTeX. Now the files and folders are getting more and more and I ask myself how to keep it smart with all the dependencies. Some facts:
- every final exam of a particular year must be accessible as a standalone version with its (nearly) original layout from the ministry of education
- and every final exam must be accessible for a book accumulating the exams of the last 5 years having the corporate layout of our publishing company
- there are different states all with their own exams
- in the different states are different schooltypes all with their own original layout
Now some (LaTex)nical facts so far:
- every single year is coded as a sub-file with the subfiles package
- a book will be typeset in the root file
- the root file includes (via
\input) the specific needs of the state and schooltype (including packages)
The File structure at the moment looks like this:
Latex
| own_layout.tex
| own_math_commands.tex
| own_tikz_sets.tex
+---state1
| +---schooltype1
| | +---subject1
| | | +---2013
| | | +---2014
| | | .
| | | .
| | | +---Root
| | +---subject2
| | | .
| | | .
| +---schooltype2
| .
| .
+---state2
.
.
So what I am asking for?
old question: I need some hints or advices from people, having experience in managing things like that or having a good idea to improve the structural concept. Is there a better way of the whole story? Furthermore it is hard to keep things unitized (the head in this particular file needs this layout another file needs another layout, but in the book there should be neither head1 nor head2 and so on)
new questions:
- Are there any examples of other publishers to watch and learn from?
- What is a good way to make a single file accessible with two different layouts?
- I thought to extract the code, which includes the packages for each root file, in one single file and include therefore this file into the root files, to avoid overhead. But sometimes a specific root file may need a package with other options. Is there a way to override the old options with new options?
- Maybe could ConTeXt be a better alternative for this purpose?
- If someone has something to say to the structure, feel free.
ln -s) to the files may help, unless I am misunderstanding. You can create your books and years as direstories and link the years to the books. That would allow books to use uniform file includes. – ajeh Sep 10 '14 at 18:07\PassOptionsToClass/\PassOptionsToPackagebut I would think a custom, in-house solution would be easier and more reliable in the long run. (But I know zilch about anything like this.) – cfr Sep 11 '14 at 00:01