Section 28.19 LaTeX File
The LaTeX file created by PreTeXt will contain the majority of your content in a form that you could use it in a new standalone LaTeX document, in accordance with Principle 1.1.1:9. However some constructions which are not natural in LaTeX, such as a
<sidebyside>, may be cumbersome to reuse. We continue to improve and refine these situations, though.
Our philosophy is to create and use many new LaTeX environments, allowing styling and fine-tuning to occur in the preamble. This makes the body look more like simple LaTeX and allows for much greater flexiblity in styling, along with greater reliability for successful LaTeX compilation.
The existence, variety, and quality of LaTeX packages changes continuously. We can, and will, swap out some packages for replacements, as needed or desirable. This is to your advantage, as you are absolved of the need to evaluate competing packages, and to insure that they do not clash with each other. So resist the temptation to modify the LaTeX output significantly prior to compilation, as it will inevitably lead to frustration. The LaTeX file is a means to an end—it allows us to create a PDF with excellent typography, and especially for the demands of technical discplines, such as STEM and music. It is meant to ephemeral, not archival.
If some other variety of LaTeX (or TeX) file is desired, a new conversion could be created. Many of the more complicated aspects of any conversion are purposely isolated in the
pretext-common.xsl file so that they can be easily re-purposed and there is consistency across output formats.