Closed chharvey closed 10 years ago
Commit 0767861f19ff42c24909ad88127d2ffed60cc4d3 fixes the var
issue; all that is left to do is take care of the LaTeX things.
<span>
Elements.<span>
, even though it will be displayed like a block (see classes below). It goes inside the <p>
(or whatever container).<li>
, <dd>
, <td>
, <p>
, etc. where necessary..M
styles the math with CSS and also serves as a hook for the processClass
function in the mathjax-localconfig.js
file..M.I
. This can be applied to any Element. In CSS, display: inline;
is added, and in jQuery, \(
and \)
are prepended/appended..M.B
. This can be applied to any Element. In CSS, display: block;
is added, and in jQuery, \[
and \]
are prepended/appended.\[
and \]
, it automatically adds <div>
Elements inside, no matter what the containing element is. For example: <span class="M B">x+2</span>
is in the source code. jQuery will act first, adding the delimiters, making it <span class="M B">\[x+2\]</span>
. Then when MathJax acts, it nests <div>
s inside the <span>
. Unfortunately the only solution is fixing the MathJax. They don't need to use <div>
; they can use <span>
with display: block;
.\(
and \)
or \[
and \]
with templates. See issue #9 for more information.
.Math
, not.latex
or.tex
\(
and\)
for inline (spans);\[
and\]
for block (divs)var
Element to be used only in inline text, not math.