Jump to content

Extension:Math/TeX-header

From mediawiki.org
\documentclass{standalone} %standalone doesn't support aling environment, but that is redefined anyway \usepackage{amsmath,amsfonts,amssymb} %standard \usepackage{cancel} %already in use, however in MathJax \cancel \cancelto get more spacing than in LaTeX \usepackage{color} \usepackage{eurosym} %already in use, for \euro\geneuro\geneuronarrow\geneurowide\officialeuro, in MathJax they look the same \usepackage[greek,english]{babel} %needed for teubner \usepackage[version=4]{mhchem} %already in use, for chemistry \usepackage{teubner} %already in use, for \copper\Copper\Digamma etc. %%% redefining align environments for use in inline equations \renewenvironment{align}{\begin{aligned}}{\end{aligned}\ignorespacesafterend} \renewenvironment{alignat}{\begin{alignedat}}{\end{alignedat}\ignorespacesafterend} %%% problematic texvc definitions %redefining % -> \% and $ -> \$ would involve changing the character code of these characters \renewcommand{\and}{\land} %redefining a basic TeX primitive like this is a bad idea, this redefinition would cause the normal align environment to fail %\renewcommand{\or}{\lor} %see above, when uncommented, this redefinition causes teubner to fail \renewcommand{\part}{\partial} \providecommand{\ang}{\angle} %this conflicts with siunitx \providecommand{\C}{\mathbb{C}} %this conflicts with puenc.def from hyperref package \renewcommand{\H}{\mathbb{H}} %this conflicts with text command \H{0} which is ő \renewcommand{\pagecolor}[1]{\iffalse just ignore #1 \fi} %%% make Angström command \AA upright \let\oldAA\AA \renewcommand{\AA}{\ifmmode\mbox{\normalfont\oldAA}\else\oldAA\fi} %%% prevent warning of \Bbb, \bold (amsfonts required) \renewcommand{\Bbb}{\mathbb} \renewcommand{\bold}{\mathbf} %%% make \LaTeX and \TeX \officialeuro usable in math mode \let\oldLaTeX\LaTeX \renewcommand{\LaTeX}{\ifmmode\text{\oldLaTeX}\else\oldLaTeX\fi} \let\oldTeX\TeX \renewcommand{\TeX}{\ifmmode\text{\oldTeX}\else\oldTeX\fi} \let\oldofficialeuro\officialeuro \renewcommand{\officialeuro}{\ifmmode\mbox{\oldofficialeuro}\else\oldofficialeuro\fi} %%% prevent warning when using \O, \textvisiblespace math mode \let\oldO\O \renewcommand{\O}{\ifmmode\emptyset\else\oldO\fi} \let\oldtextvisiblespace\textvisiblespace \renewcommand{\textvisiblespace}{\ifmmode{\mbox{\textvisiblespace}}\else\oldtextvisiblespace\fi} %%% Greek letters identical to Latin  \newcommand\Alpha{\mathrm{A}} \newcommand\Beta{\mathrm{B}} \newcommand\Epsilon{\mathrm{E}} \newcommand\Zeta{\mathrm{Z}} \newcommand\Eta{\mathrm{H}} \newcommand\Iota{\mathrm{I}} \newcommand\Kappa{\mathrm{K}} \newcommand\Mu{\mathrm{M}} \newcommand\Nu{\mathrm{N}} \newcommand\Rho{\mathrm{P}} \newcommand\Tau{\mathrm{T}} \newcommand\Chi{\mathrm{X}} \newcommand\omicron{\mathrm{ο}} %this is defined upright in texvc, but should be italic \newcommand\Omicron{\mathrm{O}} %%% make teubner usable in math mode \let\oldcoppa\coppa \renewcommand{\coppa}{\mbox{\oldcoppa}} \let\oldCoppa\Coppa \renewcommand{\Coppa}{\mbox{\oldCoppa}} \let\oldDigamma\Digamma \renewcommand{\Digamma}{\mbox{\oldDigamma}} \let\oldkoppa\koppa \renewcommand{\koppa}{\mbox{\oldkoppa}} \let\oldKoppa\Koppa \renewcommand{\Koppa}{\mbox{\oldKoppa}} \let\oldsampi\sampi \renewcommand{\sampi}{\mbox{\oldsampi}} \let\oldSampi\Sampi \renewcommand{\Sampi}{\mbox{\oldSampi}} \let\oldstigma\stigma \renewcommand{\stigma}{\mbox{\oldstigma}} \let\oldSampi\Stigma \renewcommand{\Stigma}{\mbox{\oldStigma}} \newcommand\varcoppa{\mbox{\textbackslash coppa}} %wtf? \let\oldvarstigma\varstigma \renewcommand{\varstigma}{\mbox{\oldvarstigma}} %%% cards shortcuts \newcommand\clubs\clubsuit \newcommand\diamonds\diamondsuit \newcommand\hearts\heartsuit \newcommand\spades\spadesuit %%% custom texvc definitions \newcommand\alef\aleph \newcommand\bull\bullet \newcommand\cnums{\mathbb{C}} \newcommand\Complex{\mathbb{C}} \newcommand\Dagger\ddagger \newcommand\Darr\Downarrow \newcommand\exist\exists \newcommand\hArr\Leftrightarrow \newcommand\harr\leftrightarrow \newcommand\Harr\Leftrightarrow \newcommand\image\Im \newcommand\infin\infty \newcommand\isin\in \newcommand\lang\langle \newcommand\larr\leftarrow \newcommand\Larr\Leftarrow \newcommand\lArr\Leftarrow \newcommand\lrarr\leftrightarrow \newcommand\Lrarr\Leftrightarrow \newcommand\lrArr\Leftrightarrow \newcommand\N{\mathbb{N}} \newcommand\natnums{\mathbb{N}} \newcommand\plusmn\pm \newcommand\Q{\mathbb{Q}} \newcommand\R{\mathbb{R}} \newcommand\rang\rangle \newcommand\rarr\rightarrow \newcommand\Rarr\Rightarrow \newcommand\rArr\Rightarrow \newcommand\real\Re \newcommand\Reals{\mathbb{R}} \newcommand\reals{\mathbb{R}} \newcommand\sect\S \newcommand\sdot\cdot \newcommand\sub\subset \newcommand\sube\subseteq \newcommand\supe\supseteq \newcommand\thetasym\vartheta \newcommand\uarr\uparrow \newcommand\uArr\Uparrow \newcommand\Uarr\Uparrow \newcommand\weierp\wp \newcommand\Z{\mathbb{Z}}