Update for itex2MML 1.3.13
Implements \mathrlap{}, \mathllap{}, and \mathclap{}. Deprecates the use of \rlap{} (use \mathrlap{}, instead: the latter works in math-mode in the LaTeX export, whereas TeX's \rlap{} did not).
This commit is contained in:
parent
41274d64d0
commit
d89769fe81
3 changed files with 19 additions and 2 deletions
|
@ -1007,6 +1007,11 @@ class WikiControllerTest < ActionController::TestCase
|
|||
\def\slash{\protect\itex@pslash}
|
||||
\makeatother
|
||||
|
||||
% math-mode versions of \rlap, etc
|
||||
% from Alexander Perlis, "A complement to \smash, \llap, and lap"
|
||||
% http://math.arizona.edu/~aprl/publications/mathclap/
|
||||
\def\clap#1{\hbox to 0pt{\hss#1\hss}}
\def\mathllap{\mathpalette\mathllapinternal}
\def\mathrlap{\mathpalette\mathrlapinternal}
\def\mathclap{\mathpalette\mathclapinternal}
\def\mathllapinternal#1#2{\llap{$\mathsurround=0pt#1{#2}$}}
\def\mathrlapinternal#1#2{\rlap{$\mathsurround=0pt#1{#2}$}}
\def\mathclapinternal#1#2{\clap{$\mathsurround=0pt#1{#2}$}}
|
||||
|
||||
% Renames \sqrt as \oldsqrt and redefine root to result in \sqrt[#1]{#2}
|
||||
\let\oldroot\root
|
||||
\def\root#1#2{\oldroot #1 \of{#2}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue