// See load.js.orig
// Comments have largely been removed from this version.
// See #PEAK for changes by peak@princeton.edu. See also Help:jsMath

if (!window.jsMath) {window.jsMath = {}}

jsMath.Easy = {
  //
  //  The URL of the root jsMath directory on your server
  root: "/extensions/jsMath", // #PEAK
  
  scale: 120,
  
  //
  //  1 means use the autoload plug-in to decide if jsMath should be loaded
  //  0 means always load jsMath
  //
  autoload: 1,

  //
  //  Setting any of these will cause the tex2math plugin to be used
  //  to add the <DIV> and <SPAN> tags that jsMath needs.  See the
  //  documentation for the tex2math plugin for more information.

  // #PEAK Turn off jsMath's special interpretation of \(, \[, $ and $$ as math mode delimiters.
  processSlashParens: 0,       // process \(...\) in text?
  processSlashBrackets: 0,     // process \[...\] in text?
  processDoubleDollars: 0,     // process $$...$$ in text?
  processSingleDollars: 0,     // process $...$ in text?
  processLaTeXenvironments: 0, // process \begin{xxx}...\end{xxx} outside math mode?
  fixEscapedDollars: 0,        // convert \$ to $ outside of math mode?
  doubleDollarsAreInLine: 0,   // make $$...$$ be in-line math?
  allowDisableTag: 1,          // allow ID="tex2math_off" to disable tex2math?

  safeHBoxes: 1,
  allowDoubleClicks: 1,
  showFontWarnings: 1,
  
  method: "Process",

  //
  //  List of plug-ins and extensions that you want to be
  //  loaded automatically.  E.g.
  //      ["plugins/mimeTeX.js","extensions/AMSsymbols.js"]
  //  #PEAK (note: these files are all part of the standard distribution):
  loadFiles: ["extensions/AMSmath.js", "extensions/AMSsymbols.js",
              "extensions/boldsymbol.js", "extensions/moreArrows.js"],

  //
  //  List of fonts to load automatically.  E.g.
  //      ["cmmib10"]
  //  #PEAK
  loadFonts: ["cmmib10", "cmbsy10",
              "msam10",  "msbm10"
              ],
  
  macros: {},
  
  //
  //  Allow jsMath to enter global mode?
  //  (Uses frames, so may not always work with complex web sites)
  //
  allowGlobal: 1,
  
  //
  //  Disable image fonts?  (In case you don't load them on your server.)
  //
  noImageFonts: 0
  
};

/****************************************************************/
/****************************************************************/
//
//            DO NOT MAKE CHANGES BELOW THIS
//
/****************************************************************/
/****************************************************************/

if (jsMath.Easy.root == "") {
  jsMath.Easy.root = document.getElementsByTagName("script");
  jsMath.Easy.root = jsMath.Easy.root[jsMath.Easy.root.length-1].src
  if (jsMath.Easy.root.match(/\/easy\/[^\/]*$/)) {
    jsMath.Easy.root = jsMath.Easy.root.replace(/\/easy\/[^\/]*$/,"");
  } else {
    jsMath.Easy.root = jsMath.Easy.root.replace(/\/(jsMath\/(easy\/)?)?[^\/]*$/,"/jsMath");
  }
}
jsMath.Easy.root = jsMath.Easy.root.replace(/\/$/,""); // trim trailing "/" if any

document.write('<SCRIPT SRC="'+jsMath.Easy.root+'/jsMath-easy-load.js"><'+'/SCRIPT>');

