You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.js 42 kB

11 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093
  1. /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
  2. /* vim: set ts=2 et sw=2 tw=80: */
  3. /*************************************************************
  4. *
  5. * MathJax/config/default.js
  6. *
  7. * This configuration file is loaded when you load MathJax
  8. * via <script src="MathJax.js?config=default"></script>
  9. *
  10. * Use it to customize the MathJax settings. See comments below.
  11. *
  12. * ---------------------------------------------------------------------
  13. *
  14. * Copyright (c) 2009-2014 The MathJax Consortium
  15. *
  16. * Licensed under the Apache License, Version 2.0 (the "License");
  17. * you may not use this file except in compliance with the License.
  18. * You may obtain a copy of the License at
  19. *
  20. * http://www.apache.org/licenses/LICENSE-2.0
  21. *
  22. * Unless required by applicable law or agreed to in writing, software
  23. * distributed under the License is distributed on an "AS IS" BASIS,
  24. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  25. * See the License for the specific language governing permissions and
  26. * limitations under the License.
  27. */
  28. /*
  29. * This file lists most, but not all, of the options that can be set for
  30. * MathJax and its various components. Some additional options are
  31. * available, however, and are listed in the various links at:
  32. *
  33. * http://www.mathjax.org/resources/docs/?configuration.html#configuration-options-by-component
  34. *
  35. * You can add these to the configuration object below if you
  36. * want to change them from their default values.
  37. */
  38. MathJax.Hub.Config({
  39. //
  40. // A comma-separated list of configuration files to load
  41. // when MathJax starts up. E.g., to define local macros, etc.
  42. // The default directory is the MathJax/config directory.
  43. //
  44. // Example: config: ["local/local.js"],
  45. // Example: config: ["local/local.js","MMLtoHTML.js"],
  46. //
  47. config: [],
  48. //
  49. // A comma-separated list of CSS stylesheet files to be loaded
  50. // when MathJax starts up. The default directory is the
  51. // MathJax/config directory.
  52. //
  53. // Example: styleSheets: ["MathJax.css"],
  54. //
  55. styleSheets: [],
  56. //
  57. // Styles to be defined dynamically at startup time.
  58. //
  59. // Example:
  60. // styles: {
  61. // ".MathJax_Preview": {
  62. // color: "#888"
  63. // }
  64. // },
  65. //
  66. styles: {},
  67. //
  68. // A comma-separated list of input and output jax to initialize at startup.
  69. // Their main code is loaded only when they are actually used, so it is not
  70. // inefficient to include jax that may not actually be used on the page. These
  71. // are found in the MathJax/jax directory. The choices include
  72. //
  73. // input/TeX
  74. // input/MathML
  75. // input/AsciiMath
  76. //
  77. // output/HTML-CSS
  78. // output/NativeMML
  79. // output/SVG
  80. //
  81. // If you change the input jax, you may need to include the appropriate
  82. // preprocessor in the extensions array below.
  83. //
  84. jax: ["input/TeX", "output/HTML-CSS"],
  85. //
  86. // A comma-separated list of extensions to load at startup. The default
  87. // directory is MathJax/extensions.
  88. //
  89. // Example: extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
  90. //
  91. // You may wish to include "mml2jax.js" if you are using "input/MathML" in the
  92. // jax array above, and "asciimath2jax.js" if you using "input/AsciiMath".
  93. // Include "jsmath2jax.js" if you are converting from using jsMath to MathJax.
  94. //
  95. extensions: ["tex2jax.js"],
  96. //
  97. // Patterns to remove from before and after math script tags. If you are not
  98. // using one of the preprocessors (e.g., tex2jax), you need to insert something
  99. // extra into your HTML file in order to avoid a bug in Internet Explorer. IE
  100. // removes spaces from the DOM that it thinks are redundent, and since a SCRIPT
  101. // tag usually doesn't add content to the page, if there is a space before and after
  102. // a MathJax SCRIPT tag, IE will remove the first space. When MathJax inserts
  103. // the typeset mathematics, this means there will be no space before it and the
  104. // preceeding text. In order to avoid this, you should include some "guard characters"
  105. // before or after the math SCRIPT tag; define the patterns you want to use below.
  106. // Note that these are used as regular expressions, so you will need to quote
  107. // special characters. Furthermore, since they are javascript strings, you must
  108. // quote javascript special characters as well. So to obtain a backslash, you must
  109. // use \\ (doubled for javascript). For example, "\\[" is the pattern \[ in the
  110. // regular expression. That means that if you want an actual backslash in your
  111. // guard characters, you need to use "\\\\" in order to get \\ in the regular
  112. // expression, and \ in the actual text. If both preJax and postJax are defined,
  113. // both must be present in order to be removed.
  114. //
  115. // See also the preRemoveClass comments below.
  116. //
  117. // Example:
  118. // preJax: "\\\\\\\\", // makes a double backslash the preJax text
  119. // or
  120. // preJax: "\\[\\[", // jax scripts must be enclosed in double brackets
  121. // postJax: "\\]\\]",
  122. //
  123. preJax: null,
  124. postJax: null,
  125. //
  126. // The CSS class for a math preview to be removed preceeding a MathJax
  127. // SCRIPT tag. If the tag just before the MathJax SCRIPT tag is of this
  128. // class, its contents are removed when MathJax processes the SCRIPT
  129. // tag. This allows you to include a math preview in a form that will
  130. // be displayed prior to MathJax performing its typesetting. It also
  131. // avoids the Internet Explorer space-removal bug, and can be used in
  132. // place of preJax and postJax if that is more convenient.
  133. //
  134. // For example
  135. //
  136. // <span class="MathJax_Preview">[math]</span><script type="math/tex">...</script>
  137. //
  138. // would display "[math]" in place of the math until MathJax is able to typeset it.
  139. //
  140. preRemoveClass: "MathJax_Preview",
  141. //
  142. // This value controls whether the "Processing Math: nn%" message are displayed
  143. // in the lower left-hand corner. Set to "false" to prevent those messages (though
  144. // file loading and other messages will still be shown).
  145. //
  146. showProcessingMessages: true,
  147. //
  148. // This value controls the verbosity of the messages in the lower left-hand corner.
  149. // Set it to "none" to eliminate all messages, or set it to "simple" to show
  150. // "Loading..." and "Processing..." rather than showing the full file name and the
  151. // percentage of the mathematics processed.
  152. //
  153. messageStyle: "normal",
  154. //
  155. // These two parameters control the alignment and shifting of displayed equations.
  156. // The first can be "left", "center", or "right", and determines the alignment of
  157. // displayed equations. When the alignment is not "center", the second determines
  158. // an indentation from the left or right side for the displayed equations.
  159. //
  160. displayAlign: "center",
  161. displayIndent: "0em",
  162. //
  163. // Normally MathJax will perform its starup commands (loading of
  164. // configuration, styles, jax, and so on) as soon as it can. If you
  165. // expect to be doing additional configuration on the page, however, you
  166. // may want to have it wait until the page's onload hander is called. If so,
  167. // set this to "onload".
  168. //
  169. delayStartupUntil: "none",
  170. //
  171. // Normally MathJax will typeset the mathematics on the page as soon as
  172. // the page is loaded. If you want to delay that process, in which case
  173. // you will need to call MathJax.Hub.Typeset() yourself by hand, set
  174. // this value to true.
  175. //
  176. skipStartupTypeset: false,
  177. //
  178. // A list of element ID's that are the ones to process for mathematics
  179. // when any of the Hub typesetting calls (Typeset, Process, Update, etc)
  180. // are called with no element specified. This lets you restrict the
  181. // processing to particular containers rather than scanning the entire
  182. // document for mathematics. If none are supplied, the entire document
  183. // is processed.
  184. //
  185. elements: [],
  186. //
  187. // Since typesetting usually changes the vertical dimensions of the
  188. // page, if the URL contains an anchor position you may no longer be
  189. // positioned at the correct position on the page, so MathJax can
  190. // reposition to that location after it completes its initial
  191. // typesetting of the page. This value controls whether MathJax will
  192. // reposition the browser to the #hash location from the page URL after
  193. // typesetting for the page.
  194. //
  195. positionToHash: true,
  196. //
  197. // These control whether to attach the MathJax contextual menu to the
  198. // expressions typeset by MathJax. Since the code for handling
  199. // MathPlayer in Internet Explorer is somewhat delicate, it is
  200. // controlled separately via (showMathMenuMSIE). The latter is now
  201. // deprecated in favor of the MathJax contextual menu settings for
  202. // MathPlayer.
  203. //
  204. // These values used to be listed in the separate output jax, but
  205. // have been moved to this more central location since they are shared
  206. // by all output jax.
  207. //
  208. showMathMenu: true,
  209. showMathMenuMSIE: true,
  210. //
  211. // The default settings for the MathJax contextual menu (overridden by
  212. // the MathJax cookie when users change the menu settings).
  213. //
  214. menuSettings: {
  215. zoom: "None", // when to do MathZoom
  216. CTRL: false, // require CTRL for MathZoom?
  217. ALT: false, // require Alt or Option?
  218. CMD: false, // require CMD?
  219. Shift: false, // require Shift?
  220. zscale: "200%", // the scaling factor for MathZoom
  221. font: "Auto", // what font HTML-CSS should use
  222. context: "MathJax", // or "Browser" for pass-through to browser menu
  223. mpContext: false, // true means pass menu events to MathPlayer in IE
  224. mpMouse: false, // true means pass mouse events to MathPlayer in IE
  225. texHints: true, // include class names for TeXAtom elements
  226. semantics: false // add semantics tag with original form in MathML output
  227. },
  228. //
  229. // The message and style for when there is a processing error handling
  230. // the mathematics (something has gone wrong with the input or output
  231. // jax that prevents it from operating properly).
  232. //
  233. errorSettings: {
  234. message: ["[",["MathProcessingError","Math Processing Error"],"]"],
  235. style: {color: "#CC0000", "font-style":"italic"} // style for message
  236. },
  237. //============================================================================
  238. //
  239. // These parameters control the tex2jax preprocessor (when you have included
  240. // "tex2jax.js" in the extensions list above).
  241. //
  242. tex2jax: {
  243. //
  244. // The delimiters that surround in-line math expressions. The first in each
  245. // pair is the initial delimiter and the second is the terminal delimiter.
  246. // Comment out any that you don't want, but be sure there is no extra
  247. // comma at the end of the last item in the list -- some browsers won't
  248. // be able to handle that.
  249. //
  250. inlineMath: [
  251. // ['$','$'], // uncomment this for standard TeX math delimiters
  252. ['\\(','\\)']
  253. ],
  254. //
  255. // The delimiters that surround displayed math expressions. The first in each
  256. // pair is the initial delimiter and the second is the terminal delimiter.
  257. // Comment out any that you don't want, but be sure there is no extra
  258. // comma at the end of the last item in the list -- some browsers won't
  259. // be able to handle that.
  260. //
  261. displayMath: [
  262. ['$$','$$'],
  263. ['\\[','\\]']
  264. ],
  265. //
  266. // This value determines whether tex2jax requires braces to be
  267. // balanced within math delimiters (which allows for nested dollar
  268. // signs). Set to false to get pre-v2.0 compatibility. When true,
  269. //
  270. // $y = x^2 \hbox{ when $x > 2$}$.
  271. //
  272. // will be properly handled as a single expression. When false, it
  273. // would be interpreted as two searpate expressions, each with
  274. // improperly balanced braces.
  275. //
  276. balanceBraces: true,
  277. //
  278. // This array lists the names of the tags whose contents should not be
  279. // processed by tex2jax (other than to look for ignore/process classes
  280. // as listed below). You can add to (or remove from) this list to prevent
  281. // MathJax from processing mathematics in specific contexts.
  282. //
  283. skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
  284. //
  285. // This is the class name used to mark elements whose contents should
  286. // not be processed by tex2jax (other than to look for the
  287. // processClass pattern below). Note that this is a regular
  288. // expression, and so you need to be sure to quote any regexp special
  289. // characters. The pattern is automatically preceeded by '(^| )(' and
  290. // followed by ')( |$)', so your pattern will have to match full words
  291. // in the class name. Assigning an element this class name will
  292. // prevent `tex2jax` from processing its contents.
  293. //
  294. ignoreClass: "tex2jax_ignore",
  295. //
  296. // This is the class name used to mark elements whose contents SHOULD
  297. // be processed by tex2jax. This is used to turn on processing within
  298. // tags that have been marked as ignored or skipped above. Note that
  299. // this is a regular expression, and so you need to be sure to quote
  300. // any regexp special characters. The pattern is automatically
  301. // preceeded by '(^| )(' and followed by ')( |$)', so your pattern
  302. // will have to match full words in the class name. Use this to
  303. // restart processing within an element that has been marked as
  304. // ignored above.
  305. //
  306. processClass: "tex2jax_process",
  307. //
  308. // Set to "true" to allow \$ to produce a dollar without starting in-line
  309. // math mode. If you uncomment the ['$','$'] line above, you should change
  310. // this to true so that you can insert plain dollar signs into your documents
  311. //
  312. processEscapes: false,
  313. //
  314. // Controls whether tex2jax processes LaTeX environments outside of math
  315. // mode. Set to "false" to prevent processing of environments except within
  316. // math mode.
  317. //
  318. processEnvironments: true,
  319. //
  320. // Controls whether tex2jax processes \ref{...} commands outside
  321. // of math mode. Set to "false" to prevent processing of \ref
  322. // except within math mode.
  323. //
  324. processRefs: true,
  325. //
  326. // Controls whether tex2jax inserts MathJax_Preview spans to make a
  327. // preview available, and what preview to use, when it locates in-line
  328. // and display mathetics on the page. The default is "TeX", which
  329. // means use the TeX code as the preview (until it is processed by
  330. // MathJax). Set to "none" to prevent the previews from being
  331. // inserted (the math will simply disappear until it is typeset). Set
  332. // to an array containing the description of an HTML snippet in order
  333. // to use the same preview for all equations on the page (e.g., you
  334. // could have it say "[math]" or load an image).
  335. //
  336. // E.g., preview: ["[math]"],
  337. // or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
  338. //
  339. preview: "TeX"
  340. },
  341. //============================================================================
  342. //
  343. // These parameters control the asciimath2jax preprocessor (when you have included
  344. // "asciimath2jax.js" in the extensions list above).
  345. //
  346. asciimath2jax: {
  347. //
  348. // The delimiters that surround asciimath expressions. The first in each
  349. // pair is the initial delimiter and the second is the terminal delimiter.
  350. //
  351. delimiters: [
  352. ['`','`']
  353. ],
  354. //
  355. // This array lists the names of the tags whose contents should not be
  356. // processed by asciimath2jax (other than to look for ignore/process classes
  357. // as listed below). You can add to (or remove from) this list to prevent
  358. // MathJax from processing mathematics in specific contexts.
  359. //
  360. skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
  361. //
  362. // This is the class name used to mark elements whose contents should
  363. // not be processed by asciimath2jax (other than to look for the
  364. // processClass pattern below). Note that this is a regular
  365. // expression, and so you need to be sure to quote any regexp special
  366. // characters. The pattern is automatically preceeded by '(^| )(' and
  367. // followed by ')( |$)', so your pattern will have to match full words
  368. // in the class name. Assigning an element this class name will
  369. // prevent `asciimath2jax` from processing its contents.
  370. //
  371. ignoreClass: "asciimath2jax_ignore",
  372. //
  373. // This is the class name used to mark elements whose contents SHOULD
  374. // be processed by asciimath2jax. This is used to turn on processing
  375. // within tags that have been marked as ignored or skipped above.
  376. // Note that this is a regular expression, and so you need to be sure
  377. // to quote any regexp special characters. The pattern is
  378. // automatically preceeded by '(^| )(' and followed by ')( |$)', so
  379. // your pattern will have to match full words in the class name. Use
  380. // this to restart processing within an element that has been marked
  381. // as ignored above.
  382. //
  383. processClass: "asciimath2jax_process",
  384. // Controls whether asciimath2jax inserts MathJax_Preview spans to make a
  385. // preview available, and what preview to use, when it locates in-line
  386. // and display mathetics on the page. The default is "AsciiMath", which
  387. // means use the AsciiMath code as the preview (until it is processed by
  388. // MathJax). Set to "none" to prevent the previews from being
  389. // inserted (the math will simply disappear until it is typeset). Set
  390. // to an array containing the description of an HTML snippet in order
  391. // to use the same preview for all equations on the page (e.g., you
  392. // could have it say "[math]" or load an image).
  393. //
  394. // E.g., preview: ["[math]"],
  395. // or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
  396. //
  397. preview: "AsciiMath"
  398. },
  399. //============================================================================
  400. //
  401. // These parameters control the mml2jax preprocessor (when you have included
  402. // "mml2jax.js" in the extensions list above).
  403. //
  404. mml2jax: {
  405. //
  406. // Controls whether mml2jax inserts MathJax_Preview spans to make a
  407. // preview available, and what preview to use, when it locates
  408. // mathematics on the page. The default is "mathml" which means use
  409. // the <math> tag as the preview (until it is processed by MathJax).
  410. // Set to "alttext", to use the <math> tag's alttext attribute as the
  411. // preview, if the tag has one. Set to "none" to
  412. // prevent the previews from being inserted (the math will simply
  413. // disappear until it is typeset). Set to "altimg" to use an image
  414. // described by the altimg* attributes of the <math> element.
  415. // Set to an array containing the
  416. // description of an HTML snippet in order to use the same preview for
  417. // all equations on the page (e.g., you could have it say "[math]" or
  418. // load an image).
  419. //
  420. // E.g., preview: ["[math]"],
  421. // or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
  422. //
  423. preview: "mathml"
  424. },
  425. //============================================================================
  426. //
  427. // These parameters control the jsMath2jax preprocessor (when you have included
  428. // "jsMath2jax.js" in the extensions list above).
  429. //
  430. jsMath2jax: {
  431. //
  432. // Controls whether jsMath2jax inserts MathJax_Preview spans to make a
  433. // preview available, and what preview to use, when it locates
  434. // mathematics on the page. The default is "TeX", which means use the
  435. // TeX code as the preview (until it is processed by MathJax). Set to
  436. // "none" to prevent the previews from being inserted (the math will
  437. // simply disappear until it is typeset). Set to an array containing
  438. // the description of an HTML snippet in order to use the same preview
  439. // for all equations on the page (e.g., you could have it say "[math]"
  440. // or load an image).
  441. //
  442. // E.g., preview: ["[math]"],
  443. // or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
  444. //
  445. preview: "TeX"
  446. },
  447. //============================================================================
  448. //
  449. // These parameters control the TeX input jax.
  450. //
  451. TeX: {
  452. //
  453. // This specifies the side on which \tag{} macros will place the tags.
  454. // Set to "left" to place on the left-hand side.
  455. //
  456. TagSide: "right",
  457. //
  458. // This is the amound of indentation (from right or left) for the tags.
  459. //
  460. TagIndent: ".8em",
  461. //
  462. // This is the width to use for the multline environment
  463. //
  464. MultLineWidth: "85%",
  465. //
  466. // List of macros to define. These are of the form
  467. // name: value
  468. // where 'value' is the replacement text for the macro \name.
  469. // The 'value' can also be [value,n] where 'value' is the replacement
  470. // text and 'n' is the number of parameters for the macro.
  471. // Note that backslashes must be doubled in the replacement string.
  472. //
  473. // E.g.,
  474. //
  475. // Macros: {
  476. // RR: '{\\bf R}',
  477. // bold: ['{\\bf #1}', 1]
  478. // }
  479. //
  480. Macros: {},
  481. //
  482. // Equation numbering parameters.
  483. //
  484. equationNumbers: {
  485. autoNumber: "none", // "AMS" for standard AMS environment numbering,
  486. // or "all" to number all displayed equations
  487. // formatNumber: function (n) {return n}, // format for equation number n
  488. // formatTag: function (n) {return '('+n+')'}, // format for \tag and \eqref
  489. // formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/[:'"<>&]/g,"")},
  490. // // element ID to use for reference
  491. // formatURL: function (id) {return '#'+escape(id)}, // URL to use for references
  492. useLabelIds: true // make element ID's use \label name rather than equation number
  493. },
  494. //
  495. // Controls the TeX/noErrors extension
  496. //
  497. noErrors: {
  498. disabled: false, // set to true to return to original error messages
  499. multiLine: true, // false to not include original line breaks
  500. inlineDelimiters: ["",""], // or use ["$","$"] or ["\\(","\\)"] to put back delimiters
  501. style: {
  502. "font-size": "90%",
  503. "text-align": "left",
  504. "color": "black",
  505. "padding": "1px 3px",
  506. "border": "1px solid"
  507. }
  508. },
  509. //
  510. // Controls the TeX/noUndefined extension
  511. //
  512. noUndefined: {
  513. disabled: false, // set to true to return to original error messages
  514. attributes: { // attributes to set for the undefined control sequence
  515. mathcolor: "red"
  516. }
  517. },
  518. //
  519. // Controls the TeX/unicode extension
  520. unicode: {
  521. fonts: "STIXGeneral,'Arial Unicode MS'" // the default font list for unknown characters
  522. }
  523. },
  524. //============================================================================
  525. //
  526. // These parameters control the AsciiMath input jax.
  527. //
  528. AsciiMath: {
  529. //
  530. // Determines whether the unicode positions for phi and varphi are
  531. // to be swapped or not. (Unicode originally had these reversed, and
  532. // many fonts have them reversed as well.) When set to true, phi
  533. // and varphi will correspond to the LaTeX macros of the same name.
  534. //
  535. fixphi: true,
  536. //
  537. // Determines whether the MathML should be marked so that the HTML-CSS
  538. // and SVG output jax will use MathML spacing rules rather than TeX
  539. // spacing rules. Since AsciiMath was designed for MathML output, the
  540. // MathML rules are used by default.
  541. //
  542. useMathMLspacing: true,
  543. //
  544. // Determines whether limits are placed above and below operators,
  545. // or next to them. (AsciiMath doesn't have separate in-line and
  546. // display modes like TeX and MathML do, so this is the only control
  547. // you have over its output)
  548. //
  549. displaystyle: true,
  550. //
  551. // The character to use for decimal places when scanning for a number.
  552. // If you change it to ",", beware of things like "(1,2)" which would need
  553. // to be changed to "(1, 2)" to be parsed correctly.
  554. //
  555. decimal: "."
  556. },
  557. //============================================================================
  558. //
  559. // These parameters control the MathML input jax.
  560. //
  561. MathML: {
  562. //
  563. // This specifies whether to use TeX spacing or MathML spacing when the
  564. // HTML-CSS output jax is used.
  565. //
  566. useMathMLspacing: false
  567. },
  568. //============================================================================
  569. //
  570. // These parameters control the HTML-CSS output jax.
  571. //
  572. "HTML-CSS": {
  573. //
  574. // This controls the global scaling of mathematics as compared to the
  575. // surrounding text. Values between 100 and 133 are usually good choices.
  576. //
  577. scale: 100,
  578. //
  579. // Don't allow the matching of math text to surrounding text to use a scaling
  580. // factor smaller than this.
  581. //
  582. minScaleAdjust: 50,
  583. //
  584. // This is a list of the fonts to look for on a user's computer in
  585. // preference to using MathJax's web-based fonts. These must
  586. // correspond to directories available in the jax/output/HTML-CSS/fonts
  587. // directory, where MathJax stores data about the characters available
  588. // in the fonts. Set this to ["TeX"], for example, to prevent the
  589. // use of the STIX fonts, or set it to an empty list, [], if
  590. // you want to force MathJax to use web-based or image fonts.
  591. //
  592. availableFonts: ["STIX","TeX"],
  593. //
  594. // This is the preferred font to use when more than one of those
  595. // listed above is available.
  596. //
  597. preferredFont: "TeX",
  598. //
  599. // This is the web-based font to use when none of the fonts listed
  600. // above are available on the user's computer. Note that currently
  601. // only the TeX font is available in a web-based form. Set this to
  602. //
  603. // webFont: null,
  604. //
  605. // if you want to prevent the use of web-based fonts.
  606. //
  607. webFont: "TeX",
  608. //
  609. // This is the font to use for image fallback mode (when none of the
  610. // fonts listed above are available and the browser doesn't support
  611. // web-fonts via the @font-face CSS directive). Note that currently
  612. // only the TeX font is available as an image font. Set this to
  613. //
  614. // imageFont: null,
  615. //
  616. // if you want to prevent the use of image fonts (e.g., you have not
  617. // installed the image fonts on your server). In this case, only
  618. // browsers that support web-based fonts will be able to view your pages
  619. // without having the fonts installed on the client computer. The browsers
  620. // that support web-based fonts include: IE6 and later, Chrome, Safari3.1
  621. // and above, Firefox3.5 and later, and Opera10 and later. Note that
  622. // Firefox3.0 is NOT on this list, so without image fonts, FF3.0 users
  623. // will be required to to download and install either the STIX fonts or the
  624. // MathJax TeX fonts.
  625. //
  626. imageFont: "TeX",
  627. //
  628. // This is the font-family CSS value used for characters that are not
  629. // in the selected font (e.g., for web-based fonts, this is where to
  630. // look for characters not included in the MathJax_* fonts). IE will
  631. // stop looking after the first font that exists on the system (even
  632. // if it doesn't contain the needed character), so order these carefully.
  633. //
  634. undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
  635. //
  636. // This setting controls whether <mtext> elements will be typeset
  637. // using the math fonts or the font of the surrounding text. When
  638. // false, the mathvariant="normal" font will be used; when true,
  639. // the font will be inherited from the surrounding paragraph.
  640. //
  641. mtextFontInherit: false,
  642. //
  643. // These values control how "chunky" the display of mathematical
  644. // expressions will be.
  645. //
  646. // EqnChunk is the number of equations that will be typeset before
  647. // they appear on screen. Larger values make for less visual flicker
  648. // as the equations are drawn, but also mean longer delays before the
  649. // reader sees anything.
  650. //
  651. // EqChunkFactor is the factor by which the EqnChunk will grow after each
  652. // chunk is displayed.
  653. //
  654. // EqChunkDelay is the time (in milliseconds) to delay between chunks
  655. // (to allow the browser to respond to other user interaction).
  656. //
  657. // Set EqnChunk to 1, EqnChunkFactor to 1, and EqnChunkDelay to 10 to get
  658. // the behavior from MathJax v1.1 and below.
  659. //
  660. EqnChunk: 50,
  661. EqnChunkFactor: 1.5,
  662. EqnChunkDelay: 100,
  663. // This option indicates whether MathJax should try to correct the
  664. // x-height of equations to match the size of the surrounding text.
  665. matchFontHeight: true,
  666. //
  667. // These settings control automatic line breaking. It is off by
  668. // default, so only explicit line breaks are performed (via
  669. // linebreak="newline" attributes on <mo> and <mspace> elements). To
  670. // perform automatic line breaking on line expressions, set
  671. // 'automatic' to 'true' below. The line breaks will be applied via a
  672. // penalty-based heuristic, which does well, but isn't perfect. You
  673. // might need to use linebreak="goodbreak" or linebreak="badbreak" by
  674. // hand in order to get better effects. It is also possible to modify
  675. // the penalty values; contact the MathJax user's forum for details.
  676. //
  677. linebreaks: {
  678. //
  679. // This controls the automatic breaking of expressions:
  680. // when false, only process linebreak="newline",
  681. // when true, line breaks are inserted automatically in long expressions.
  682. //
  683. automatic: false,
  684. //
  685. // This controls how wide the lines of mathematics can be
  686. //
  687. // Use an explicit width like "30em" for a fixed width.
  688. // Use "container" to compute the size from the containing element.
  689. // Use "nn% container" for a portion of the container.
  690. // Use "nn%" for a portion of the window size.
  691. //
  692. // The container-based widths may be slower, and may not produce the
  693. // expected results if the layout width changes due to the removal
  694. // of previews or inclusion of mathematics during typesetting.
  695. //
  696. width: "container"
  697. },
  698. //
  699. // This allows you to define or modify the styles used to display
  700. // various math elements created by MathJax.
  701. //
  702. // Example:
  703. // styles: {
  704. // ".MathJax .merror": {
  705. // color: "#CC0000",
  706. // border: "1px solid #CC0000"
  707. // }
  708. // }
  709. //
  710. styles: {},
  711. //
  712. // Configuration for <maction> tooltips
  713. // (see also the #MathJax_Tooltip CSS in MathJax/jax/output/HTML-CSS/config.js,
  714. // which can be overriden using the styles values above).
  715. //
  716. tooltip: {
  717. delayPost: 600, // milliseconds delay before tooltip is posted after mouseover
  718. delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout
  719. offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position
  720. }
  721. },
  722. //============================================================================
  723. //
  724. // These parameters control the NativeMML output jax.
  725. //
  726. NativeMML: {
  727. //
  728. // This controls the global scaling of mathematics as compared to the
  729. // surrounding text. Values between 100 and 133 are usually good choices.
  730. //
  731. scale: 100,
  732. //
  733. // Don't allow the matching of math text to surrounding text to use a scaling
  734. // factor smaller than this.
  735. //
  736. minScaleAdjust: 50,
  737. // This option indicates whether MathJax should try to correct the
  738. // x-height of equations to match the size of the surrounding text.
  739. matchFontHeight: true,
  740. //
  741. // This allows you to define or modify the styles used to display
  742. // various math elements created by MathJax.
  743. //
  744. // Example:
  745. // styles: {
  746. // ".MathJax_MathML": {
  747. // color: "red" // MathML is in red
  748. // }
  749. // }
  750. //
  751. styles: {}
  752. },
  753. //============================================================================
  754. //
  755. // These parameters control the SVG output jax.
  756. //
  757. "SVG": {
  758. //
  759. // This controls the global scaling of mathematics as compared to the
  760. // surrounding text. Values between 100 and 133 are usually good choices.
  761. //
  762. scale: 100,
  763. //
  764. // Don't allow the matching of math text to surrounding text to use a scaling
  765. // factor smaller than this.
  766. //
  767. minScaleAdjust: 50,
  768. //
  769. // This specifies the font to use for SVG output (currently the only
  770. // one available)
  771. //
  772. font: "TeX",
  773. //
  774. // This is the stroke width to use for all character paths (1em = 1000
  775. // units). This is a cheap way of getting slightly lighter or darker
  776. // characters
  777. //
  778. blacker: 10,
  779. //
  780. // This is the font-family CSS value used for characters that are not
  781. // in the selected font. IE will stop looking after the first font
  782. // that exists on the system (even if it doesn't contain the needed
  783. // character), so order these carefully.
  784. //
  785. undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
  786. //
  787. // This setting controls whether <mtext> elements will be typeset
  788. // using the math fonts or the font of the surrounding text. When
  789. // false, the mathvariant="normal" font will be used; when true,
  790. // the font will be inherited from the surrounding paragraph.
  791. //
  792. mtextFontInherit: false,
  793. //
  794. // This controls whether the MathML structure is retained and CSS
  795. // classes are added to mark the original MathML elements (as in the
  796. // HTML-CSS output). By default, the SVG output jax removes unneeded
  797. // nesting in order to produce a more efficient markup, but if you
  798. // want to use CSS to style the elements as if they were MathML, you
  799. // might need to set this to true.
  800. //
  801. addMMLclasses: false,
  802. //
  803. // These values control how "chunky" the display of mathematical
  804. // expressions will be.
  805. //
  806. // EqnChunk is the number of equations that will be typeset before
  807. // they appear on screen. Larger values make for less visual flicker
  808. // as the equations are drawn, but also mean longer delays before the
  809. // reader sees anything.
  810. //
  811. // EqChunkFactor is the factor by which the EqnChunk will grow after each
  812. // chunk is displayed.
  813. //
  814. // EqChunkDelay is the time (in milliseconds) to delay between chunks
  815. // (to allow the browser to respond to other user interaction).
  816. //
  817. // Set EqnChunk to 1, EqnChunkFactor to 1, and EwnChunkDelay to 10 to get
  818. // the behavior from MathJax v1.1 and below.
  819. //
  820. EqnChunk: 50,
  821. EqnChunkFactor: 1.5,
  822. EqnChunkDelay: 100,
  823. // This option indicates whether MathJax should try to correct the
  824. // x-height of equations to match the size of the surrounding text.
  825. matchFontHeight: true,
  826. //
  827. // These settings control automatic line breaking. It is off by
  828. // default, so only explicit line breaks are performed (via
  829. // linebreak="newline" attributes on <mo> and <mspace> elements). To
  830. // perform automatic line breaking on line expressions, set
  831. // 'automatic' to 'true' below. The line breaks will be applied via a
  832. // penalty-based heuristic, which does well, but isn't perfect. You
  833. // might need to use linebreak="goodbreak" or linebreak="badbreak" by
  834. // hand in order to get better effects. It is also possible to modify
  835. // the penalty values; contact the MathJax user's forum for details.
  836. //
  837. linebreaks: {
  838. //
  839. // This controls the automatic breaking of expressions:
  840. // when false, only process linebreak="newline",
  841. // when true, line breaks are inserted automatically in long expressions.
  842. //
  843. automatic: false,
  844. //
  845. // This controls how wide the lines of mathematics can be
  846. //
  847. // Use an explicit width like "30em" for a fixed width.
  848. // Use "container" to compute the size from the containing element.
  849. // Use "nn% container" for a portion of the container.
  850. // Use "nn%" for a portion of the window size.
  851. //
  852. // The container-based widths may be slower, and may not produce the
  853. // expected results if the layout width changes due to the removal
  854. // of previews or inclusion of mathematics during typesetting.
  855. //
  856. width: "container"
  857. },
  858. //
  859. // These are the styles used for merror elements in SVG output. Note
  860. // that only a limited number of style attributes are supported by
  861. // SVG, but you can at least change the colors and borders.
  862. //
  863. //
  864. merrorStyle: {
  865. fontSize:"90%", color:"#C00", background:"#FF8",
  866. border: "1px solid #C00", padding:"3px"
  867. },
  868. //
  869. // This allows you to define or modify the styles used to display
  870. // various math elements created by MathJax.
  871. //
  872. // Example:
  873. // styles: {
  874. // ".MathJax .merror": {
  875. // color: "#CC0000",
  876. // border: "1px solid #CC0000"
  877. // }
  878. // }
  879. //
  880. styles: {},
  881. //
  882. // Configuration for <maction> tooltips
  883. // (see also the #MathJax_Tooltip CSS in MathJax/jax/output/SVG/config.js,
  884. // which can be overriden using the styles values above).
  885. //
  886. tooltip: {
  887. delayPost: 600, // milliseconds delay before tooltip is posted after mouseover
  888. delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout
  889. offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position
  890. }
  891. },
  892. //============================================================================
  893. //
  894. // These parameters control the contextual menus that are available on the
  895. // mathematics within the page (provided the showMathMenu value is true above).
  896. //
  897. MathMenu: {
  898. //
  899. // This is the hover delay for the display of submenus in the
  900. // contextual menu. When the mouse is still over a submenu label for
  901. // this long, the menu will appear. (The menu also will appear if you
  902. // click on the label.) It is in milliseconds.
  903. //
  904. delay: 150,
  905. //
  906. // This is the URL for the MathJax Help menu item.
  907. //
  908. helpURL: "http://www.mathjax.org/help-v2/user/",
  909. //
  910. // These control whether the "Math Renderer", "MathPlayer", "Font
  911. // Preferences", "Contextual Menu", and "Discoverable" menu items will
  912. // be displayed or not.
  913. //
  914. showRenderer: true,
  915. showMathPlayer: true,
  916. showFontMenu: false,
  917. showContext: false,
  918. showDiscoverable: false,
  919. //
  920. // These are the settings for the Annotation menu. If the <math> root has
  921. // a <semantics> child that contains one of the following annotation
  922. // formats, the source will be available via the "Show Math As" menu.
  923. // Each format has a list of possible encodings.
  924. //
  925. semanticsAnnotations: {
  926. "TeX": ["TeX", "LaTeX", "application/x-tex"],
  927. "StarMath": ["StarMath 5.0"],
  928. "Maple": ["Maple"],
  929. "ContentMathML": ["MathML-Content", "application/mathml-content+xml"],
  930. "OpenMath": ["OpenMath"]
  931. },
  932. //
  933. // These are the settings for the Show Source window. The initial
  934. // width and height will be reset after the source is shown in an
  935. // attempt to make the window fit the output better.
  936. //
  937. windowSettings: {
  938. status: "no", toolbar: "no", locationbar: "no", menubar: "no",
  939. directories: "no", personalbar: "no", resizable: "yes", scrollbars: "yes",
  940. width: 100, height: 50
  941. },
  942. //
  943. // This allows you to change the CSS that controls the menu
  944. // appearance. See the extensions/MathMenu.js file for details
  945. // of the default settings.
  946. //
  947. styles: {}
  948. },
  949. //============================================================================
  950. //
  951. // These parameters control the contextual menus that are available on the
  952. // mathematics within the page (provided the showMathMenu value is true above).
  953. //
  954. MathEvents: {
  955. //
  956. // This is the time required for the mouse to be held still over a
  957. // typeset equation in order for it to count as a hover (used when the
  958. // zoom trigger is "Hover"). It is in milliseconds.
  959. //
  960. hover: 500
  961. },
  962. //============================================================================
  963. //
  964. // These parameters control the MMLorHTML configuration file.
  965. // NOTE: if you add MMLorHTML.js to the config array above,
  966. // you must REMOVE the output jax from the jax array.
  967. //
  968. MMLorHTML: {
  969. //
  970. // The output jax that is to be preferred when both are possible
  971. // (set to "MML" for native MathML, "HTML" for MathJax's HTML-CSS output jax).
  972. //
  973. prefer: {
  974. MSIE: "MML",
  975. Firefox: "HTML",
  976. Opera: "HTML",
  977. Safari: "HTML",
  978. Chrome: "HTML",
  979. other: "HTML"
  980. }
  981. }
  982. });
  983. MathJax.Ajax.loadComplete("[MathJax]/config/default.js");

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...