Allow user customization of latex template
-
Instead of defining the template in
_output.yml
, directly put the filespreamble.tex
,before_body.tex
, andafter_body.tex
in the report with an\input
directive calling the template file. -
Add an argument to
add_report
in order to fill these files withinput
based on the folder of the template.
Example: add_report("myReport", theme = "inrae")
fills the [file].tex
files with input{../../templates/inrae/[file].tex}