File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
components/src/input/tex/extensions/all-packages Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11import './lib/all-packages.js' ;
22
33import { AllPackages } from '../../../../../../mathjax3/input/tex/AllPackages.js' ;
4+ import '../../../../../../mathjax3/input/tex/autoload/AutoloadConfiguration.js' ;
45import '../../../../../../mathjax3/input/tex/require/RequireConfiguration.js' ;
56import { insert } from '../../../../../../mathjax3/util/Options.js' ;
67
8+ if ( MathJax . loader ) {
9+ MathJax . loader . preLoad ( '[tex]/autoload' , '[tex]/require' ) ;
10+ }
711if ( MathJax . startup ) {
812 if ( ! MathJax . config . tex ) {
913 MathJax . config . tex = { } ;
1014 }
1115 let packages = MathJax . config . tex . packages ;
12- MathJax . config . tex . packages = [ 'require' , ...AllPackages ] ;
16+ MathJax . config . tex . packages = [ 'autoload' , ' require', ...AllPackages ] ;
1317 if ( packages ) {
1418 insert ( MathJax . config . tex , { packages} ) ;
1519 }
Original file line number Diff line number Diff line change 11{
22 "component" : " input/tex/extensions/all-packages" ,
3- "targets" : [" input/tex/AllPackages.ts" ]
3+ "targets" : [
4+ " input/tex/AllPackages.ts" ,
5+ " input/tex/autoload" ,
6+ " input/tex/require"
7+ ]
48}
59
You can’t perform that action at this time.
0 commit comments