Help:KaTeX: Difference between revisions
Help page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
'''KaTeX''' is a TeX rendering library — put simply, it processes [[wikipedia:TeX|TeX]] and produces correctly formatted text. It can be used for |
'''KaTeX''' is a TeX rendering library — put simply, it processes [[wikipedia:TeX|TeX]] and produces correctly formatted text. It can be used for [[wikipedia:mathematics|mathematics]], [[wikipedia:chemistry|chemistry]], and [[wikipedia:physical quantity|physical quantities]]. |
||
The following parser tags are supported: |
The following parser tags are supported: |
||
*<code><nowiki>< |
*<code><nowiki><tex></nowiki></code> |
||
| ⚫ | |||
*<code><nowiki><math></nowiki></code> |
*<code><nowiki><math></nowiki></code> |
||
| ⚫ | |||
| ⚫ | |||
*<code><nowiki><quantity></nowiki></code> |
*<code><nowiki><quantity></nowiki></code> |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
==Chemistry== |
==Chemistry== |
||
| Line 19: | Line 25: | ||
<pre><chem mode="display" fleqn>\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}</chem></pre> |
<pre><chem mode="display" fleqn>\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}</chem></pre> |
||
<chem mode="display" fleqn>\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}</chem> |
<chem mode="display" fleqn>\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}</chem> |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
==Quantities== |
==Quantities== |
||
| Line 34: | Line 34: | ||
<pre>The weight of an apple is around <quantity>100 A*B/C2/D-4</quantity>.</pre> |
<pre>The weight of an apple is around <quantity>100 A*B/C2/D-4</quantity>.</pre> |
||
The weight of an apple is around <quantity>100 A*B/C2/D-4</quantity>. |
The weight of an apple is around <quantity>100 A*B/C2/D-4</quantity>. |
||
[[Category:Author: tesinormed]] |
|||
Revision as of 05:31, December 28, 2024
KaTeX is a TeX rendering library — put simply, it processes TeX and produces correctly formatted text. It can be used for mathematics, chemistry, and physical quantities.
The following parser tags are supported:
<tex><math><ce><chem><quantity>
Math
Refer to the KaTeX supported functions page.
<math mode="display">x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}</math>
x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}
Chemistry
Refer to the mhchem for KaTeX guide. (\ce{})
Some example inline chemistry: <chem>\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}</chem>
Some example inline chemistry: \ce{\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}}
<chem mode="display">\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}</chem>
\ce{\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}}
<chem mode="display" fleqn>\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}</chem>
\ce{\ce{^{235}_{92}U -> ^{4}_{2}He + ^{231}_{90}Th}}
Quantities
Refer to the mhchem for KaTeX guide (\pu{})
The weight of an apple is around <quantity>100 g*N/n\Omega</quantity>.
The weight of an apple is around \pu{100 g*N/n\Omega}.
The weight of an apple is around <quantity>100 A*B/C2/D-4</quantity>.
The weight of an apple is around \pu{100 A*B/C2/D-4}.