Skip to content

Commit

Permalink
Added esvect package.
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed Jan 10, 2024
1 parent 2c7dbf3 commit 46c2ef1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Templater.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Makes latex documents containing a formula.
*
* @copyright 2015-2022 Roman Parpalak
* @copyright 2015-2024 Roman Parpalak
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @package Upmath Latex Renderer
* @link https://i.upmath.me
Expand Down Expand Up @@ -75,6 +75,7 @@ public function run(string $formula): Formula
'\\colorbox' => 'xcolor',
'\\pagecolor' => 'xcolor',
'\\ce' => 'mhchem',
'\\vv' => 'esvect',
];

foreach ($test_command as $command => $env) {
Expand Down Expand Up @@ -104,12 +105,10 @@ public function run(string $formula): Formula
$tpl = $isMathMode ? 'displayformula' : 'common';

ob_start();
/** @noinspection PhpIncludeInspection */
include $this->dir . $tpl . '.php';
$documentContent = ob_get_clean();

ob_start();
/** @noinspection PhpIncludeInspection */
include $this->dir . 'document.php';
$text = ob_get_clean();

Expand Down

0 comments on commit 46c2ef1

Please sign in to comment.