Configuration Objects

The various components of 金宝搏188MathJax,including its input and outputprocessors,its preprocessors,its extensions,and the 金宝搏188MathJax core,all can be configured through theconfig/default.jsfile,or via a金宝搏188MathJax.Hub.Config()call (indeed,if you look closely,youwill see thatconfig/default.jsis itself one big call to金宝搏188MathJax.Hub.Config()).Anything that is inconfig/default.jscan be included in-line to configure 金宝搏188MathJax.

The structure that you pass to金宝搏188MathJax.Hub.Config()is aJavaScript object that includesname:valuepairs giving the names ofparameters and their values,with pairs separated by commas.Becareful not to include a comma after the last value,however,as somebrowsers (namely Internet Explorer) will fail to process theconfiguration if you do.

The 金宝搏188MathJax components,like the TeX input processor,have their ownsections in the configuration object labeled by the component name,and using an object as its value.That object is itselfa configuration object made up ofname:valuepairs that give theconfiguration options for the component.

For example,

  showProcessingMessages: false,
  jax: ["input/TeX", "output/HTML-CSS"],
  TeX: {
    TagSide: "left",
    Macros: {
      RR: '{\\bf R}',
      bold: ['{\\bf #1}',1]

is a configuration that includes two settings for the 金宝搏188MathJax Hub (oneforshowProcessingMessagesand one for thejaxarray),and aconfiguration object for the TeX input processor.The latter includesa setting for the TeX input processor'sTagSideoption (to set tagson the left rather than the right) and a setting forMacros,whichdefines new TeX macros (in this case,two macros,one called\RRthat produces a bold "R",and one called\boldthat puts isargument in bold face).

Theconfig/default.jsfile is another example that shows nearlyall the configuration options for all of 金宝搏188MathJax's components.