ITADN

Support for `\LaTeX` and `\TeX`

#36OpennoClaps 创建于 2025-02-26
N
noClapscommented
These should be rendered as $\LaTeX$ and $\TeX$, respectively, but that doesn't seem to work in this library. Here's is Temml's output: <img width="811" alt="Image" src="https://github.com/user-attachments/assets/b459d5e3-e5b7-41d7-84ff-72b1aeb39f13" /> and the MathML: ```html <!-- For \LaTeX --> <math display="block" class="tml-display" style="display:block math;"> <mrow> <mtext>L</mtext> <mspace width="-0.35em" style="margin-left:-0.35em;"></mspace> <mpadded voffset="0.2em" style="padding:0.2em 0 0 0;"> <mstyle scriptlevel="0" displaystyle="false"> <mstyle scriptlevel="1" displaystyle="false"> <mtext>A</mtext> </mstyle> </mstyle> </mpadded> <mspace width="-0.15em" style="margin-left:-0.15em;"></mspace> <mtext>T</mtext> <mspace width="-0.1667em" style="margin-left:-0.1667em;"></mspace> <mpadded voffset="-0.2155em" style="padding:0 0 0.2155em 0;"> <mstyle scriptlevel="0" displaystyle="false"> <mtext>E</mtext> </mstyle> </mpadded> <mspace width="-0.125em" style="margin-left:-0.125em;"></mspace> <mtext>X</mtext> </mrow> </math> ``` ```html <!-- For \TeX --> <math display="block" class="tml-display" style="display:block math;"> <mrow> <mtext>T</mtext> <mspace width="-0.1667em" style="margin-left:-0.1667em;"></mspace> <mpadded voffset="-0.2155em" style="padding:0 0 0.2155em 0;"> <mstyle scriptlevel="0" displaystyle="false"> <mtext>E</mtext> </mstyle> </mpadded> <mspace width="-0.125em" style="margin-left:-0.125em;"></mspace> <mtext>X</mtext> </mrow> </math> ```
0 条评论