Open barmac opened 1 year ago
Pandoc requires lots of packages to be loaded in order to work with LaTeX. This is why a minimal template did not work.
The suggested way to work with templates is to modify the default one. This is what I did in https://github.com/omg-dmn-taskforce/plain-text-spec/tree/hello-world-example
In the example, pandoc uses provided class to produce a PDF which is said to comply with OMG formatting. Further work would be to work on default.tex
file to produce the actual specification.
I wonder, if it would be better to just generate LaTeX for the chapters with Pandoc and then include it as chapters into the structure we got from the PSUM spec. This way we would also use the diffing which seems to be based on Latexdiff, see e.g. https://www.overleaf.com/learn/latex/Articles/Using_Latexdiff_For_Marking_Changes_To_Tex_Documents
I a while tried building the LaTeX sources of PSUM spec and the complexity of its build process confirmed that we will need LaTeX as an intermediate step. I got some instructions from Manfred on how to build it correctly.
So from here we we have three next steps:
E.g. markdown/asciidoc -> LaTeX -> PDF