PHP code example of pavel852 / latex
1. Go to this page and download the library: Download pavel852/latex library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pavel852 / latex example snippets
latex_settings('cz,html'); // Nastaví české formátování a HTML entity
latex_settings('us,char'); // Nastaví anglické formátování a UTF-8 znaky
echo latex_formula('E = mc^2');
echo latex_formula('S = \sum_{n=1}^\infty \frac{1}{n^2}');
$text = 'Vzorec: /*E = mc^2*/.';
echo latex_replace($text);
echo latex_version();