You are browsing a version that is no longer maintained. |
Customizing Rendering
You can customize individual templates used during the rendering process by configuring
the customTemplateDirs
option using setCustomTemplateDirs()
or addCustomTemplateDir()
methods:
The files that you can override can be found here.
For example, the file default/html/anchor.html.twig
could be overwritten by creating the same file at
/path/to/custom/templates/default/html/anchor.html.twig
. All of the other templates will still use
the core templates.
If you wanted to customize the LaTeX output you can do so like this:
1 $configuration->setFileExtension(Format::LATEX);
Now you can customize the LaTeX output by overriding files in /path/to/custom/templates/default/tex
.