@@ -333,7 +333,9 @@ <h2>TeX and LaTeX in HTML documents<a class="headerlink" href="#tex-and-latex-in
333
333
this may be better than loading the extension explicitly, since it
334
334
avoids loading the extra file on pages where these macros are < em > not</ em >
335
335
used. The < a class ="reference external " href ="http://cdn.mathjax.org/mathjax/latest/test/sample-autoload.html "> sample autoloading macros</ a >
336
- example page shows this in action.</ p >
336
+ example page shows this in action. The < cite > autoload-all</ cite > extension below
337
+ defines such macros for < em > all</ em > the extensions so that if you include
338
+ it, MathJax will have access to all the macros it knows about.</ p >
337
339
< p > The main extensions are described below.</ p >
338
340
< div class ="section " id ="action ">
339
341
< h3 > Action< a class ="headerlink " href ="#action " title ="Permalink to this headline "> ¶</ a > </ h3 >
@@ -551,7 +553,7 @@ <h3>Enclose<a class="headerlink" href="#enclose" title="Permalink to this headli
551
553
< p > To use this extension in your own configurations, add it to the
552
554
< cite > extensions</ cite > array in the TeX block.</ p >
553
555
< div class ="highlight-javascript "> < div class ="highlight "> < pre > < span class ="nx "> TeX</ span > < span class ="o "> :</ span > < span class ="p "> {</ span >
554
- < span class ="nx "> extensions</ span > < span class ="o "> :</ span > < span class ="p "> [</ span > < span class ="s2 "> "action .js"</ span > < span class ="p "> ]</ span >
556
+ < span class ="nx "> extensions</ span > < span class ="o "> :</ span > < span class ="p "> [</ span > < span class ="s2 "> "enclose .js"</ span > < span class ="p "> ]</ span >
555
557
< span class ="p "> }</ span >
556
558
</ pre > </ div >
557
559
</ div >
@@ -804,6 +806,45 @@ <h3>Unicode support<a class="headerlink" href="#unicode-support" title="Permalin
804
806
</ pre > </ div >
805
807
</ div >
806
808
</ div >
809
+ < div class ="section " id ="autoload-all ">
810
+ < h3 > Autoload-all< a class ="headerlink " href ="#autoload-all " title ="Permalink to this headline "> ¶</ a > </ h3 >
811
+ < p > The < cite > autoload-all</ cite > extension predefines all the macros from the
812
+ extensions above so that they autoload the extensions when first
813
+ used. A number of macros already do this, e.g., < tt class ="docutils literal "> < span class ="pre "> \unicode</ span > </ tt > , but
814
+ this extension defines the others to do the same. That way MathJax
815
+ will have access to all the macros that it knows about.</ p >
816
+ < p > To use this extension in your own configurations, add it to the
817
+ < cite > extensions</ cite > array in the TeX block.</ p >
818
+ < div class ="highlight-javascript "> < div class ="highlight "> < pre > < span class ="nx "> TeX</ span > < span class ="o "> :</ span > < span class ="p "> {</ span >
819
+ < span class ="nx "> extensions</ span > < span class ="o "> :</ span > < span class ="p "> [</ span > < span class ="s2 "> "autoload-all.js"</ span > < span class ="p "> ]</ span >
820
+ < span class ="p "> }</ span >
821
+ </ pre > </ div >
822
+ </ div >
823
+ < p > This extension is < strong > not</ strong > included in any of the combined configurations,
824
+ and will not be loaded automatically, so you must include it
825
+ explicitly in your configuration if you wish to use these commands.</ p >
826
+ < p > Note that < cite > autoload-all</ cite > redefines < tt class ="docutils literal "> < span class ="pre "> \color</ span > </ tt > to be the one from the
827
+ < cite > color</ cite > extension (the LaTeX-compatible one rather than the
828
+ non-standard MathJax version). This is because < tt class ="docutils literal "> < span class ="pre "> \colorbox</ span > </ tt > and
829
+ < tt class ="docutils literal "> < span class ="pre "> \fcolorbox</ span > </ tt > autoload the < cite > color</ cite > extension, which will cause
830
+ < tt class ="docutils literal "> < span class ="pre "> \color</ span > </ tt > to be redefined, and so for consistency, < tt class ="docutils literal "> < span class ="pre "> \color</ span > </ tt > is
831
+ redefined immediately.</ p >
832
+ < p > If you wish to retain the original definition of < tt class ="docutils literal "> < span class ="pre "> \color</ span > </ tt > , then use
833
+ the following</ p >
834
+ < div class ="highlight-html "> < div class ="highlight "> < pre > < span class ="nt "> <script </ span > < span class ="na "> type=</ span > < span class ="s "> "text/x-mathjax-config"</ span > < span class ="nt "> ></ span >
835
+ < span class ="nx "> MathJax</ span > < span class ="p "> .</ span > < span class ="nx "> Hub</ span > < span class ="p "> .</ span > < span class ="nx "> Config</ span > < span class ="p "> ({</ span >
836
+ < span class ="nx "> TeX</ span > < span class ="o "> :</ span > < span class ="p "> {</ span > < span class ="nx "> extensions</ span > < span class ="o "> :</ span > < span class ="p "> [</ span > < span class ="s2 "> "autoload-all.js"</ span > < span class ="p "> ]</ span > < span class ="p "> }</ span >
837
+ < span class ="p "> });</ span >
838
+ < span class ="nx "> MathJax</ span > < span class ="p "> .</ span > < span class ="nx "> Hub</ span > < span class ="p "> .</ span > < span class ="nx "> Register</ span > < span class ="p "> .</ span > < span class ="nx "> StartupHook</ span > < span class ="p "> (</ span > < span class ="s2 "> "TeX autoload-all Ready"</ span > < span class ="p "> ,</ span > < span class ="kd "> function</ span > < span class ="p "> ()</ span > < span class ="p "> {</ span >
839
+ < span class ="kd "> var</ span > < span class ="nx "> MACROS</ span > < span class ="o "> =</ span > < span class ="nx "> MathJax</ span > < span class ="p "> .</ span > < span class ="nx "> InputJax</ span > < span class ="p "> .</ span > < span class ="nx "> TeX</ span > < span class ="p "> .</ span > < span class ="nx "> Definitions</ span > < span class ="p "> .</ span > < span class ="nx "> macros</ span > < span class ="p "> ;</ span >
840
+ < span class ="nx "> MACROS</ span > < span class ="p "> .</ span > < span class ="nx "> color</ span > < span class ="o "> =</ span > < span class ="s2 "> "Color"</ span > < span class ="p "> ;</ span >
841
+ < span class ="k "> delete</ span > < span class ="nx "> MACROS</ span > < span class ="p "> .</ span > < span class ="nx "> colorbox</ span > < span class ="p "> ;</ span >
842
+ < span class ="k "> delete</ span > < span class ="nx "> MACROS</ span > < span class ="p "> .</ span > < span class ="nx "> fcolorbox</ span > < span class ="p "> ;</ span >
843
+ < span class ="p "> });</ span >
844
+ < span class ="nt "> </script></ span >
845
+ </ pre > </ div >
846
+ </ div >
847
+ </ div >
807
848
</ div >
808
849
< div class ="section " id ="supported-latex-commands ">
809
850
< span id ="tex-commands "> </ span > < h2 > Supported LaTeX commands< a class ="headerlink " href ="#supported-latex-commands " title ="Permalink to this headline "> ¶</ a > </ h2 >
@@ -1191,7 +1232,8 @@ <h3>K<a class="headerlink" href="#k" title="Permalink to this headline">¶</a></
1191
1232
</ div >
1192
1233
< div class ="section " id ="l ">
1193
1234
< h3 > L< a class ="headerlink " href ="#l " title ="Permalink to this headline "> ¶</ a > </ h3 >
1194
- < div class ="highlight-latex "> < div class ="highlight "> < pre > < span class ="k "> \Lambda</ span >
1235
+ < div class ="highlight-latex "> < div class ="highlight "> < pre > < span class ="k "> \label</ span > [AMSmath]
1236
+ < span class ="k "> \Lambda</ span >
1195
1237
< span class ="k "> \lambda</ span >
1196
1238
< span class ="k "> \land</ span >
1197
1239
< span class ="k "> \langle</ span >
@@ -1797,6 +1839,7 @@ <h3><a href="index.html">Table Of Contents</a></h3>
1797
1839
< li > < a class ="reference internal " href ="#noerrors "> noErrors</ a > </ li >
1798
1840
< li > < a class ="reference internal " href ="#noundefined "> noUndefined</ a > </ li >
1799
1841
< li > < a class ="reference internal " href ="#unicode-support "> Unicode support</ a > </ li >
1842
+ < li > < a class ="reference internal " href ="#autoload-all "> Autoload-all</ a > </ li >
1800
1843
</ ul >
1801
1844
</ li >
1802
1845
< li > < a class ="reference internal " href ="#supported-latex-commands "> Supported LaTeX commands</ a > < ul >
0 commit comments