You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: I make a distinction between LaTeX file and LaTeX template.
LaTeX template is (my name for) LaTeX interleaved with Jinja2 syntax (like \BLOCK and \VAR), it should be processed by Jinja2 before it becomes a so called "LaTeX file".
LaTeX file is (my name for) plain LaTeX that can immediately be parsed by the TeX engine.
What you are doing is including a LaTeX template from a LaTeX file (because I assume you have rendered report_base.tex with Jinja). The TeX engine has no clue what to do with \BLOCK and \VAR, as it is not valid LaTeX code.
An easy but ugly solution would be to render the LaTeX templates to plain TeX and store them in a folder. After that, compile your report_base.tex.
A nicer solution would be rather complex but would probably require to search for \input\include macros in the LaTeX template. Then recursively render all includes and somehow (by saving to disk and changing path??) inject the rendered LaTeX.
There are more solutions obviously, but these are I think the two most attainable ones.
i have multiple latex file so thats a reason.
report_base.tex hold multiple latex file.
for example.
report_base.tex contains :
====================================================
titlepage.tex contains :
But it gives error.
The text was updated successfully, but these errors were encountered: