[plug] Jinja/LaTeX child templates (this time on github instead of attachment)

Chris Caston chris at caston.id.au
Mon Jan 27 15:49:05 AWST 2020


I have been trying to figure out how to use child templates (amongst other
things you will see in the git repository hosted python and LaTeX template
code) in Jinja when working with LaTeX. This has been tricky as most of the
pages I can find are specific to HTML.

I am trying to render the child template (test2.template) in
jinja-test.template where I have written:

\section{\VAR{section8}}
 {% block content %}{% endblock %}

I have probably missed something very simple but looking at so much code
from so many
places is getting me confused.

Here is my code so far and the links to resources I am been trying to learn
from:

https://jinja.palletsprojects.com/en/2.10.x/templates/#base-template
https://realpython.com/primer-on-jinja-templating/

http://akuederle.com/Automatization-with-Latex-and-Python-2
http://eosrei.net/articles/2015/11/latex-templates-python-and-jinja2-generate-pdfs

Here is the code on github. https://github.com/warmheartcoin/jinjalatex.git
Thank you in advance for your help.

best regards,

Chris Caston
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20200127/064f4e98/attachment.html>


More information about the plug mailing list