input/tex/extensions/textcomp.rst
.. _tex-textcomp:
######## textcomp ########
The textcomp extension implements the old textcomp style package
from LaTeX. The macros of the package are now part of LaTeX's base
package, but because MathJax concentrates on mathematical typesetting,
not text, they remain in a separate package in MathJax. The
textcomp extension provides a number of text macros that can be used
in math mode as well. See the textcomp CTAN page <https://www.ctan.org/pkg/textcomp>__ for more information and
documentation.
The macros provided in textcomp can be used equally in math and text
mode. In order to make them available in text mode, you need to load
the :ref:tex-textmacros extension, and add the 'textcomp'
package to the :data:packages array of the :data:textmacros
options of the :data:tex block of you configuration. Note that
:ref:tex-textmacros is already included in the components that
include input/tex.
This package is not autoloaded, so you must request it explicitly if
you want to use it. To load the textcomp extension, add
'[tex]/textcomp' to the :data:load array of the :data:loader block of
your MathJax configuration, and add 'textcomp' to the :data:packages
array of the :data:tex block.
.. code-block:: javascript
window.MathJax = { loader: {load: ['[tex]/textcomp']}, tex: {packages: {'[+]': ['textmacros']}} };
Alternatively, use \require{textcomp} in a TeX expression to load
it dynamically from within the math on the page, if the :ref:tex-require
extension is loaded.
.. _tex-textcomp-commands:
The textcomp extension implements the following macros:
\textacutedbl, \textasciiacute, \textasciibreve, \textasciicaron, \textasciicircum, \textasciidieresis, \textasciimacron, \textasciitilde, \textasteriskcentered, \textbackslash, \textbaht, \textbar, \textbardbl, \textbigcircle, \textblank, \textborn, \textbraceleft, \textbraceright, \textbrokenbar, \textbullet, \textcelsius, \textcent, \textcentoldstyle, \textcircledP, \textcolonmonetary, \textcompwordmark, \textcopyleft, \textcopyright, \textcurrency, \textdagger, \textdaggerdbl, \textdegree, \textdied, \textdiscount, \textdiv, \textdivorced, \textdollar, \textdollaroldstyle, \textdong, \textdownarrow, \texteightoldstyle, \textellipsis, \textemdash, \textendash, \textestimated, \texteuro, \textexclamdown, \textfiveoldstyle, \textflorin, \textfouroldstyle, \textfractionsolidus, \textgravedbl, \textgreater, \textguarani, \textinterrobang, \textinterrobangdown, \textlangle, \textlbrackdbl, \textleftarrow, \textless, \textlira, \textlnot, \textlquill, \textmarried, \textmho, \textminus, \textmu, \textmusicalnote, \textnaira, \textnineoldstyle, \textnumero, \textohm, \textonehalf, \textoneoldstyle, \textonequarter, \textonesuperior, \textopenbullet, \textordfeminine, \textordmasculine, \textparagraph, \textperiodcentered, \textpertenthousand, \textperthousand, \textpeso, \textpm, \textquestiondown, \textquotedblleft, \textquotedblright, \textquoteleft, \textquoteright, \textrangle, \textrbrackdbl, \textrecipe, \textreferencemark, \textregistered, \textrightarrow, \textrquill, \textsection, \textservicemark, \textsevenoldstyle, \textsixoldstyle, \textsterling, \textsurd, \textthreeoldstyle, \textthreequarters, \textthreesuperior, \texttildelow, \texttimes, \texttrademark, \texttwooldstyle, \texttwosuperior, \textunderscore, \textuparrow, \textvisiblespace, \textwon, \textyen, \textzerooldstyle
|-----|