"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/html/mathjax.hva" (16 Jan 2021, 1332 Bytes) of package /linux/www/hevea-2.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 \ProvidesPackage{mathjax}
    2 \let\jax@old@meta=\@meta
    3 \newcommand{\jax@meta}
    4 {\begin{rawhtml}<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>
    5 \end{rawhtml}}
    6 \renewcommand{\@meta}{\jax@old@meta\jax@meta}
    7 %%%Standard
    8 \newcommand{\jax@std}
    9 {\@primitives{mathjax@std}%
   10 \let\textjax\@textjax%
   11 \newenvironment{displayjax}
   12 {\@nostyle\@print{\[}\mathjax}
   13 {\endmathjax\@print{\]}}}%
   14 %%%Auto
   15 \newcommand{\jax@defenv}[1]
   16 {\ifu\csname #1\endcsname\else
   17 \renewenvironment{#1}{\@nostyle\@print{\begin}\{#1\}\mathjax}{\endmathjax\@print{\end}\{#1\}}\fi}
   18 \newcommand{\jax@ensuremath}[1]{\ifmath#1\else\@textjax{#1}\fi}
   19 \newcommand{\jax@auto@redef}
   20 {\let\ensuremath\jax@ensuremath%
   21 \renewcommand{\[}{$$}%
   22 \jax@defenv{math}\jax@defenv{displaymath}%
   23 \jax@defenv{eqnarray}\jax@defenv{eqnarray*}%
   24 \jax@defenv{equation}\jax@defenv{equation*}%
   25 \jax@defenv{align}\jax@defenv{align*}%
   26 \jax@defenv{alignat}\jax@defenv{alignat*}%
   27 \jax@defenv{xalign}\jax@defenv{xxalignat}%
   28 \jax@defenv{gather}\jax@defenv{gather*}%
   29 \jax@defenv{multline}\jax@defenv{multline*}}
   30 
   31 \newcommand{\jax@auto}
   32 {\@primitives{mathjax@auto}\AtBeginDocument{\jax@auto@redef}}
   33 %%%Selection
   34 \DeclareOption{auto}{\def\jax@auto@selected{}\jax@auto}
   35 \ProcessOptions*
   36 \ifu\jax@auto@selected\jax@std\else\fi