Download the PHP package open-administration/php-latex-renderer without Composer
On this page you can find all versions of the php package open-administration/php-latex-renderer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-administration/php-latex-renderer
More information about open-administration/php-latex-renderer
Files in open-administration/php-latex-renderer
Package php-latex-renderer
Short Description Renders LaTeX Templates in PHP
License MIT
Informations about the package php-latex-renderer
php-latex-renderer
wraps latex rendering and generating with twig templates. This library does
- using twig for latex templating
- inserting user data into latex templates
- escaping user data, so no (new) latex commands can be introduced by userdata
- renders latex file and returns pdf
- has compact latex error logs
Installation
Installation via composer is suggested
Usage
Twig options
The following symbols are used for twig templating
due to {{
, {#
and {%
are too common in regular latex code. Be carefull with ((
it is easy to use it in calculations as well. You can use
for custom variants.
Meta Twig Context
There is a new introduced global variable _tex
, which can be used everywhere and is defined like:
Example: _tex.dir
Try the sample
Examples
You can find some real world examples in the samples
Folder
Contribute
Please run
and commit the changes in an extra commit before doing a pull request
All versions of php-latex-renderer with dependencies
symfony/process Version ^5.3|^6.0|^7.0
twig/twig Version ^3.10
psr/log Version ^1|^2|^3