AllPackages.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*************************************************************
  2. *
  3. * Copyright (c) 2018-2022 The MathJax Consortium
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /**
  18. * @fileoverview Loads all the TeX extensions
  19. *
  20. * @author dpvc@mathjax.org (Davide Cervone)
  21. */
  22. import './base/BaseConfiguration.js';
  23. import './action/ActionConfiguration.js';
  24. import './ams/AmsConfiguration.js';
  25. import './amscd/AmsCdConfiguration.js';
  26. import './bbox/BboxConfiguration.js';
  27. import './boldsymbol/BoldsymbolConfiguration.js';
  28. import './braket/BraketConfiguration.js';
  29. import './bussproofs/BussproofsConfiguration.js';
  30. import './cancel/CancelConfiguration.js';
  31. import './cases/CasesConfiguration.js';
  32. import './centernot/CenternotConfiguration.js';
  33. import './color/ColorConfiguration.js';
  34. import './colorv2/ColorV2Configuration.js';
  35. import './colortbl/ColortblConfiguration.js';
  36. import './configmacros/ConfigMacrosConfiguration.js';
  37. import './empheq/EmpheqConfiguration.js';
  38. import './enclose/EncloseConfiguration.js';
  39. import './extpfeil/ExtpfeilConfiguration.js';
  40. import './gensymb/GensymbConfiguration.js';
  41. import './html/HtmlConfiguration.js';
  42. import './mathtools/MathtoolsConfiguration.js';
  43. import './mhchem/MhchemConfiguration.js';
  44. import './newcommand/NewcommandConfiguration.js';
  45. import './noerrors/NoErrorsConfiguration.js';
  46. import './noundefined/NoUndefinedConfiguration.js';
  47. import './physics/PhysicsConfiguration.js';
  48. import './setoptions/SetOptionsConfiguration.js';
  49. import './tagformat/TagFormatConfiguration.js';
  50. import './textcomp/TextcompConfiguration.js';
  51. import './textmacros/TextMacrosConfiguration.js';
  52. import './upgreek/UpgreekConfiguration.js';
  53. import './unicode/UnicodeConfiguration.js';
  54. import './verb/VerbConfiguration.js';
  55. declare const MathJax: any;
  56. if (typeof MathJax !== 'undefined' && MathJax.loader) {
  57. MathJax.loader.preLoad(
  58. '[tex]/action',
  59. '[tex]/ams',
  60. '[tex]/amscd',
  61. '[tex]/bbox',
  62. '[tex]/boldsymbol',
  63. '[tex]/braket',
  64. '[tex]/bussproofs',
  65. '[tex]/cancel',
  66. '[tex]/cases',
  67. '[tex]/centernot',
  68. '[tex]/color',
  69. '[tex]/colorv2',
  70. '[tex]/colortbl',
  71. '[tex]/empheq',
  72. '[tex]/enclose',
  73. '[tex]/extpfeil',
  74. '[tex]/gensymb',
  75. '[tex]/html',
  76. '[tex]/mathtools',
  77. '[tex]/mhchem',
  78. '[tex]/newcommand',
  79. '[tex]/noerrors',
  80. '[tex]/noundefined',
  81. '[tex]/physics',
  82. '[tex]/upgreek',
  83. '[tex]/unicode',
  84. '[tex]/verb',
  85. '[tex]/configmacros',
  86. '[tex]/tagformat',
  87. '[tex]/textcomp',
  88. '[tex]/textmacros',
  89. '[tex]/setoptions',
  90. );
  91. }
  92. export const AllPackages: string[] = [
  93. 'base',
  94. 'action',
  95. 'ams',
  96. 'amscd',
  97. 'bbox',
  98. 'boldsymbol',
  99. 'braket',
  100. 'bussproofs',
  101. 'cancel',
  102. 'cases',
  103. 'centernot',
  104. 'color',
  105. 'colortbl',
  106. 'empheq',
  107. 'enclose',
  108. 'extpfeil',
  109. 'gensymb',
  110. 'html',
  111. 'mathtools',
  112. 'mhchem',
  113. 'newcommand',
  114. 'noerrors',
  115. 'noundefined',
  116. 'upgreek',
  117. 'unicode',
  118. 'verb',
  119. 'configmacros',
  120. 'tagformat',
  121. 'textcomp',
  122. 'textmacros'
  123. ];