Add new parameters to default.js, and fix a few typos in config files comments

This commit is contained in:
Davide P. Cervone 2012-01-26 15:51:46 -05:00
parent 145f5b17c5
commit bb3b451b06
7 changed files with 564 additions and 78 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -182,6 +182,62 @@ MathJax.Hub.Config({
// is processed.
//
elements: [],
//
// Since typesetting usually changes the vertical dimensions of the
// page, if the URL contains an anchor position you may no longer be
// positioned at the correct position on the page, so MathJax can
// reposition to that location after it completes its initial
// typesetting of the page. This value controls whether MathJax will
// reposition the browser to the #hash location from the page URL after
// typesetting for the page.
//
positionToHash: true,
//
// These control whether to attach the MathJax contextual menu to the
// expressions typeset by MathJax. Since the code for handling
// MathPlayer in Internet Explorer is somewhat delicate, it is
// controlled separately via (showMathMenuMSIE). The latter is now
// deprecated in favor of the MathJax contextual menu settings for
// MathPlayer.
//
// These values used to be listed in the separate output jax, but
// have been moved to this more central location since they are shared
// by all output jax.
//
showMathMenu: true,
showMathMenuMSIE: true,
//
// The default settings for the MathJax contextual menu (overridden by
// the MathJax cookie when users change the menu settings).
//
menuSettings: {
zoom: "None", // when to do MathZoom
CTRL: false, // require CTRL for MathZoom?
ALT: false, // require Alt or Option?
CMD: false, // require CMD?
Shift: false, // require Shift?
zscale: "200%", // the scaling factor for MathZoom
font: "Auto", // what font HTML-CSS should use
context: "MathJax", // or "Browser" for pass-through to browser menu
mpContext: false, // true means pass menu events to MathPlayer in IE
mpMouse: false, // true means pass mouse events to MathPlayer in IE
texHints: true // include class names for TeXAtom elements
},
//
// The message and style for when there is a processing error handling
// the mathematics (something has gone wrong with the input or output
// jax that prevents it from operating properly).
//
errorSettings: {
message: ["[Math Processing Error]"], // HTML snippet structure for message to use
style: {color: "#CC0000", "font-style":"italic"} // style for message
},
//============================================================================
//
@ -466,6 +522,38 @@ MathJax.Hub.Config({
// // element ID to use for reference
// formatURL: function (id) {return '#'+escape(id)}, // URL to use for references
useLabelIds: true // make element ID's use \label name rather than equation number
},
//
// Controls the TeX/noErrors extension
//
noErrors: {
disabled: false, // set to true to return to original error messages
multiLine: true, // false to not include original line breaks
inlineDelimiters: ["",""], // or use ["$","$"] or ["\\(","\\)"] to put back delimiters
style: {
"font-size": "90%",
"text-align": "left",
"color": "black",
"padding": "1px 3px",
"border": "1px solid"
}
},
//
// Controls the TeX/noUndefined extension
//
noUndefined: {
disabled: false, // set to true to return to original error messages
attributes: { // attributes to set for the undefined control sequence
mathcolor: "red"
}
},
//
// Controls the TeX/unicode extension
unicode: {
fonts: "STIXGeneral,'Arial Unicode MS'" // the default font list for unknown characters
}
},
@ -515,6 +603,12 @@ MathJax.Hub.Config({
//
scale: 100,
//
// Don't allow the matching of math text to surrounding text to use a scaling
// factor smaller than this.
//
minScaleAdjust: 50,
//
// This is a list of the fonts to look for on a user's computer in
// preference to using MathJax's web-based fonts. These must
@ -572,6 +666,36 @@ MathJax.Hub.Config({
//
undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
//
// This setting controls whether <mtext> elements will be typeset
// using the math fonts or the font of the surrounding text. When
// false, the mathvariant="normal" font will be used; when true,
// the font will be inherited from the surrounding paragraph.
//
mtextFontInherit: false,
//
// These values control how "chunky" the display of mathematical
// expressions will be.
//
// EqnChunk is the number of equations that will be typeset before
// they appear on screen. Larger values make for less visual flicker
// as the equations are drawn, but also mean longer delays before the
// reader sees anything.
//
// EqChunkFactor is the factor by which the EqnChunk will grow after each
// chunk is displayed.
//
// EqChunkDelay is the time (in milliseconds) to delay between chunks
// (to allow the browser to respond to other user interaction).
//
// Set EqnChunk to 1, EqnChunkFactor to 1, and EwnChunkDelay to 10 to get
// the behavior from MathJax v1.1 and below.
//
EqnChunk: 50,
EqnChunkFactor: 1.5,
EqChunkDelay: 100,
//
// These settings control automatic line breaking. It is off by
// default, so only explicit line breaks are performed (via
@ -595,8 +719,8 @@ MathJax.Hub.Config({
//
// This controls how wide the lines of mathematics can be
//
// Use an explicit with like "30em" for a fixed width.
// Use "container" to compute size from containing element.
// Use an explicit width like "30em" for a fixed width.
// Use "container" to compute the size from the containing element.
// Use "nn% container" for a portion of the container.
// Use "nn%" for a portion of the window size.
//
@ -607,20 +731,6 @@ MathJax.Hub.Config({
width: "container"
},
//
// This controls whether the MathJax contextual menu will be available
// on the mathematics in the page. If true, then right-clicking (on
// the PC) or control-clicking (on the Mac) will produce a MathJax
// menu that allows you to get the source of the mathematics in
// various formats, change the size of the mathematics relative to the
// surrounding text, and get information about MathJax.
//
// Set this to false to disable the menu. When true, the MathMenu
// items below configure the actions of the menu.
//
showMathMenu: true,
//
// This allows you to define or modify the styles used to display
// various math elements created by MathJax.
@ -660,23 +770,11 @@ MathJax.Hub.Config({
scale: 100,
//
// This controls whether the MathJax contextual menu will be available
// on the mathematics in the page. If true, then right-clicking (on
// the PC) or control-clicking (on the Mac) will produce a MathJax
// menu that allows you to get the source of the mathematics in
// various formats, change the size of the mathematics relative to the
// surrounding text, and get information about MathJax.
//
// Set this to false to disable the menu. When true, the MathMenu
// items below configure the actions of the menu.
//
// There is a separate setting for MSIE, since the code to handle that
// is a bit delicate; if it turns out to have unexpected consequences,
// you can turn it off without turing off other browser support.
//
showMathMenu: true,
showMathMenuMSIE: true,
// Don't allow the matching of math text to surrounding text to use a scaling
// factor smaller than this.
//
minScaleAdjust: 50,
//
// This allows you to define or modify the styles used to display
// various math elements created by MathJax.
@ -691,6 +789,146 @@ MathJax.Hub.Config({
styles: {}
},
//============================================================================
//
// These parameters control the SVG output jax.
//
"SVG": {
//
// This controls the global scaling of mathematics as compared to the
// surrounding text. Values between 100 and 133 are usually good choices.
//
scale: 100,
//
// Don't allow the matching of math text to surrounding text to use a scaling
// factor smaller than this.
//
minScaleAdjust: 50,
//
// This specifies the font to use for SVG output (currently the only
// one available)
//
font: "TeX",
//
// This is the stroke width to use for all character paths (1em = 1000
// units). This is a cheap way of getting slightly lighter or darker
// characters
//
blacker: 10,
//
// This is the font-family CSS value used for characters that are not
// in the selected font. IE will stop looking after the first font
// that exists on the system (even if it doesn't contain the needed
// character), so order these carefully.
//
MISSINGFONT: "STIXGeneral,'Arial Unicode MS',serif",
//
// This setting controls whether <mtext> elements will be typeset
// using the math fonts or the font of the surrounding text. When
// false, the mathvariant="normal" font will be used; when true,
// the font will be inherited from the surrounding paragraph.
//
mtextFontInherit: false,
//
// This controls whether the MathML structure is retained and CSS
// classes are used to mark the original MathML elements (as in the
// HTML-CSS output). By default, the SVG output jax removes unneeded
// nesting in order to produce a more efficient markup, but if you
// want to use CSS to style the elements as if they were MathML, you
// might need to set this to true.
//
addMMLclasses: false,
//
// These values control how "chunky" the display of mathematical
// expressions will be.
//
// EqnChunk is the number of equations that will be typeset before
// they appear on screen. Larger values make for less visual flicker
// as the equations are drawn, but also mean longer delays before the
// reader sees anything.
//
// EqChunkFactor is the factor by which the EqnChunk will grow after each
// chunk is displayed.
//
// EqChunkDelay is the time (in milliseconds) to delay between chunks
// (to allow the browser to respond to other user interaction).
//
// Set EqnChunk to 1, EqnChunkFactor to 1, and EwnChunkDelay to 10 to get
// the behavior from MathJax v1.1 and below.
//
EqnChunk: 50,
EqnChunkFactor: 1.5,
EqChunkDelay: 100,
//
// These settings control automatic line breaking. It is off by
// default, so only explicit line breaks are performed (via
// linebreak="newline" attributes on <mo> and <mspace> elements). To
// perform automatic line breaking on line expressions, set
// 'automatic' to 'true' below. The line breaks will be applied via a
// penalty-based heuristic, which does well, but isn't perfect. You
// might need to use linebreak="goodbreak" or linebreak="badbreak" by
// hand in order to get better effects. It is also possible to modify
// the penalty values; contact the MathJax user's forum for details.
//
linebreaks: {
//
// This controls the automatic breaking of expressions:
// when false, only process linebreak="newline",
// when true, line breaks are inserted automatically in long expressions.
//
automatic: false,
//
// This controls how wide the lines of mathematics can be
//
// Use an explicit width like "30em" for a fixed width.
// Use "container" to compute the size from the containing element.
// Use "nn% container" for a portion of the container.
// Use "nn%" for a portion of the window size.
//
// The container-based widths may be slower, and may not produce the
// expected results if the layout width changes due to the removal
// of previews or inclusion of mathematics during typesetting.
//
width: "container"
},
//
// This allows you to define or modify the styles used to display
// various math elements created by MathJax.
//
// Example:
// styles: {
// ".MathJax .merror": {
// color: "#CC0000",
// border: "1px solid #CC0000"
// }
// }
//
styles: {},
//
// Configuration for <maction> tooltips
// (see also the #MathJax_Tooltip CSS in MathJax/jax/output/SVG/config.js,
// which can be overriden using the styles values above).
//
tooltip: {
delayPost: 600, // milliseconds delay before tooltip is posted after mouseover
delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout
offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position
}
},
//============================================================================
//
// These parameters control the contextual menus that are available on the
@ -711,12 +949,15 @@ MathJax.Hub.Config({
helpURL: "http://www.mathjax.org/help/user/",
//
// These control whether the "Math Renderer", "Font Preferences",
// and "Contextual Menu" submenus will be displayed or not.
// These control whether the "Math Renderer", "MathPlayer", "Font
// Preferences", "Contextual Menu", and "Discoverable" menu items will
// be displayed or not.
//
showRenderer: true,
showMathPlayer: true,
showFontMenu: false,
showContext: false,
showDiscoverable: false,
//
// These are the settings for the Show Source window. The initial
@ -751,8 +992,10 @@ MathJax.Hub.Config({
//
prefer: {
MSIE: "MML",
Firefox: "MML",
Firefox: "HTML",
Opera: "HTML",
Safari: "HTML",
Chrome: "HTML",
other: "HTML"
}
}

View File

@ -12,5 +12,5 @@
* http://www.apache.org/licenses/LICENSE-2.0
*/
MathJax.OutputJax.SVG=MathJax.OutputJax({id:"SVG",version:"2.0",directory:MathJax.OutputJax.directory+"/SVG",extensionDir:MathJax.OutputJax.extensionDir+"/SVG",autoloadDir:MathJax.OutputJax.directory+"/SVG/autoload",fontDir:MathJax.OutputJax.directory+"/SVG/fonts",config:{scale:100,minScaleAdjust:50,font:"TeX",blacker:10,mtextFontInherit:false,MISSINGFONT:"STIXGeneral,'Arial Unicode MS'",addMMLclasses:false,EqnChunk:50,EqnChunkFactor:1.5,EqChunkDelay:100,linebreaks:{automatic:false,width:"container"},styles:{".MathJax_SVG_Display":{"text-align":"center",margin:"1em 0em"},"#MathJax_SVG_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",padding:"3px 4px"}}}});if(!MathJax.Hub.config.delayJaxRegistration){MathJax.OutputJax.SVG.Register("jax/mml")}MathJax.OutputJax.SVG.loadComplete("config.js");
MathJax.OutputJax.SVG=MathJax.OutputJax({id:"SVG",version:"2.0",directory:MathJax.OutputJax.directory+"/SVG",extensionDir:MathJax.OutputJax.extensionDir+"/SVG",autoloadDir:MathJax.OutputJax.directory+"/SVG/autoload",fontDir:MathJax.OutputJax.directory+"/SVG/fonts",config:{scale:100,minScaleAdjust:50,font:"TeX",blacker:10,mtextFontInherit:false,MISSINGFONT:"STIXGeneral,'Arial Unicode MS',serif",addMMLclasses:false,EqnChunk:50,EqnChunkFactor:1.5,EqChunkDelay:100,linebreaks:{automatic:false,width:"container"},styles:{".MathJax_SVG_Display":{"text-align":"center",margin:"1em 0em"},"#MathJax_SVG_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",padding:"3px 4px"}}}});if(!MathJax.Hub.config.delayJaxRegistration){MathJax.OutputJax.SVG.Register("jax/mml")}MathJax.OutputJax.SVG.loadComplete("config.js");

View File

@ -1236,7 +1236,7 @@ MathJax.Hub = {
elements: [], // array of elements to process when none is given explicitly
positionToHash: true, // after initial typeset pass, position to #hash location?
showMathMenu: true, // attach math context menu to mathml?
showMathMenu: true, // attach math context menu to typeset math?
showMathMenuMSIE: true, // separtely determine if MSIE should have math menu
// (since the code for that is a bit delicate)
@ -1253,7 +1253,7 @@ MathJax.Hub = {
context: "MathJax", // or "Browser" for pass-through to browser menu
mpContext: false, // true means pass menu events to MathPlayer in IE
mpMouse: false, // true means pass mouse events to MathPlayer in IE
texHints: true // includes class names for TeXAtom elements
texHints: true // include class names for TeXAtom elements
},
errorSettings: {

View File

@ -182,6 +182,62 @@ MathJax.Hub.Config({
// is processed.
//
elements: [],
//
// Since typesetting usually changes the vertical dimensions of the
// page, if the URL contains an anchor position you may no longer be
// positioned at the correct position on the page, so MathJax can
// reposition to that location after it completes its initial
// typesetting of the page. This value controls whether MathJax will
// reposition the browser to the #hash location from the page URL after
// typesetting for the page.
//
positionToHash: true,
//
// These control whether to attach the MathJax contextual menu to the
// expressions typeset by MathJax. Since the code for handling
// MathPlayer in Internet Explorer is somewhat delicate, it is
// controlled separately via (showMathMenuMSIE). The latter is now
// deprecated in favor of the MathJax contextual menu settings for
// MathPlayer.
//
// These values used to be listed in the separate output jax, but
// have been moved to this more central location since they are shared
// by all output jax.
//
showMathMenu: true,
showMathMenuMSIE: true,
//
// The default settings for the MathJax contextual menu (overridden by
// the MathJax cookie when users change the menu settings).
//
menuSettings: {
zoom: "None", // when to do MathZoom
CTRL: false, // require CTRL for MathZoom?
ALT: false, // require Alt or Option?
CMD: false, // require CMD?
Shift: false, // require Shift?
zscale: "200%", // the scaling factor for MathZoom
font: "Auto", // what font HTML-CSS should use
context: "MathJax", // or "Browser" for pass-through to browser menu
mpContext: false, // true means pass menu events to MathPlayer in IE
mpMouse: false, // true means pass mouse events to MathPlayer in IE
texHints: true // include class names for TeXAtom elements
},
//
// The message and style for when there is a processing error handling
// the mathematics (something has gone wrong with the input or output
// jax that prevents it from operating properly).
//
errorSettings: {
message: ["[Math Processing Error]"], // HTML snippet structure for message to use
style: {color: "#CC0000", "font-style":"italic"} // style for message
},
//============================================================================
//
@ -466,6 +522,38 @@ MathJax.Hub.Config({
// // element ID to use for reference
// formatURL: function (id) {return '#'+escape(id)}, // URL to use for references
useLabelIds: true // make element ID's use \label name rather than equation number
},
//
// Controls the TeX/noErrors extension
//
noErrors: {
disabled: false, // set to true to return to original error messages
multiLine: true, // false to not include original line breaks
inlineDelimiters: ["",""], // or use ["$","$"] or ["\\(","\\)"] to put back delimiters
style: {
"font-size": "90%",
"text-align": "left",
"color": "black",
"padding": "1px 3px",
"border": "1px solid"
}
},
//
// Controls the TeX/noUndefined extension
//
noUndefined: {
disabled: false, // set to true to return to original error messages
attributes: { // attributes to set for the undefined control sequence
mathcolor: "red"
}
},
//
// Controls the TeX/unicode extension
unicode: {
fonts: "STIXGeneral,'Arial Unicode MS'" // the default font list for unknown characters
}
},
@ -515,6 +603,12 @@ MathJax.Hub.Config({
//
scale: 100,
//
// Don't allow the matching of math text to surrounding text to use a scaling
// factor smaller than this.
//
minScaleAdjust: 50,
//
// This is a list of the fonts to look for on a user's computer in
// preference to using MathJax's web-based fonts. These must
@ -572,6 +666,36 @@ MathJax.Hub.Config({
//
undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
//
// This setting controls whether <mtext> elements will be typeset
// using the math fonts or the font of the surrounding text. When
// false, the mathvariant="normal" font will be used; when true,
// the font will be inherited from the surrounding paragraph.
//
mtextFontInherit: false,
//
// These values control how "chunky" the display of mathematical
// expressions will be.
//
// EqnChunk is the number of equations that will be typeset before
// they appear on screen. Larger values make for less visual flicker
// as the equations are drawn, but also mean longer delays before the
// reader sees anything.
//
// EqChunkFactor is the factor by which the EqnChunk will grow after each
// chunk is displayed.
//
// EqChunkDelay is the time (in milliseconds) to delay between chunks
// (to allow the browser to respond to other user interaction).
//
// Set EqnChunk to 1, EqnChunkFactor to 1, and EwnChunkDelay to 10 to get
// the behavior from MathJax v1.1 and below.
//
EqnChunk: 50,
EqnChunkFactor: 1.5,
EqChunkDelay: 100,
//
// These settings control automatic line breaking. It is off by
// default, so only explicit line breaks are performed (via
@ -595,8 +719,8 @@ MathJax.Hub.Config({
//
// This controls how wide the lines of mathematics can be
//
// Use an explicit with like "30em" for a fixed width.
// Use "container" to compute size from containing element.
// Use an explicit width like "30em" for a fixed width.
// Use "container" to compute the size from the containing element.
// Use "nn% container" for a portion of the container.
// Use "nn%" for a portion of the window size.
//
@ -607,20 +731,6 @@ MathJax.Hub.Config({
width: "container"
},
//
// This controls whether the MathJax contextual menu will be available
// on the mathematics in the page. If true, then right-clicking (on
// the PC) or control-clicking (on the Mac) will produce a MathJax
// menu that allows you to get the source of the mathematics in
// various formats, change the size of the mathematics relative to the
// surrounding text, and get information about MathJax.
//
// Set this to false to disable the menu. When true, the MathMenu
// items below configure the actions of the menu.
//
showMathMenu: true,
//
// This allows you to define or modify the styles used to display
// various math elements created by MathJax.
@ -660,23 +770,11 @@ MathJax.Hub.Config({
scale: 100,
//
// This controls whether the MathJax contextual menu will be available
// on the mathematics in the page. If true, then right-clicking (on
// the PC) or control-clicking (on the Mac) will produce a MathJax
// menu that allows you to get the source of the mathematics in
// various formats, change the size of the mathematics relative to the
// surrounding text, and get information about MathJax.
//
// Set this to false to disable the menu. When true, the MathMenu
// items below configure the actions of the menu.
//
// There is a separate setting for MSIE, since the code to handle that
// is a bit delicate; if it turns out to have unexpected consequences,
// you can turn it off without turing off other browser support.
//
showMathMenu: true,
showMathMenuMSIE: true,
// Don't allow the matching of math text to surrounding text to use a scaling
// factor smaller than this.
//
minScaleAdjust: 50,
//
// This allows you to define or modify the styles used to display
// various math elements created by MathJax.
@ -691,6 +789,146 @@ MathJax.Hub.Config({
styles: {}
},
//============================================================================
//
// These parameters control the SVG output jax.
//
"SVG": {
//
// This controls the global scaling of mathematics as compared to the
// surrounding text. Values between 100 and 133 are usually good choices.
//
scale: 100,
//
// Don't allow the matching of math text to surrounding text to use a scaling
// factor smaller than this.
//
minScaleAdjust: 50,
//
// This specifies the font to use for SVG output (currently the only
// one available)
//
font: "TeX",
//
// This is the stroke width to use for all character paths (1em = 1000
// units). This is a cheap way of getting slightly lighter or darker
// characters
//
blacker: 10,
//
// This is the font-family CSS value used for characters that are not
// in the selected font. IE will stop looking after the first font
// that exists on the system (even if it doesn't contain the needed
// character), so order these carefully.
//
MISSINGFONT: "STIXGeneral,'Arial Unicode MS',serif",
//
// This setting controls whether <mtext> elements will be typeset
// using the math fonts or the font of the surrounding text. When
// false, the mathvariant="normal" font will be used; when true,
// the font will be inherited from the surrounding paragraph.
//
mtextFontInherit: false,
//
// This controls whether the MathML structure is retained and CSS
// classes are used to mark the original MathML elements (as in the
// HTML-CSS output). By default, the SVG output jax removes unneeded
// nesting in order to produce a more efficient markup, but if you
// want to use CSS to style the elements as if they were MathML, you
// might need to set this to true.
//
addMMLclasses: false,
//
// These values control how "chunky" the display of mathematical
// expressions will be.
//
// EqnChunk is the number of equations that will be typeset before
// they appear on screen. Larger values make for less visual flicker
// as the equations are drawn, but also mean longer delays before the
// reader sees anything.
//
// EqChunkFactor is the factor by which the EqnChunk will grow after each
// chunk is displayed.
//
// EqChunkDelay is the time (in milliseconds) to delay between chunks
// (to allow the browser to respond to other user interaction).
//
// Set EqnChunk to 1, EqnChunkFactor to 1, and EwnChunkDelay to 10 to get
// the behavior from MathJax v1.1 and below.
//
EqnChunk: 50,
EqnChunkFactor: 1.5,
EqChunkDelay: 100,
//
// These settings control automatic line breaking. It is off by
// default, so only explicit line breaks are performed (via
// linebreak="newline" attributes on <mo> and <mspace> elements). To
// perform automatic line breaking on line expressions, set
// 'automatic' to 'true' below. The line breaks will be applied via a
// penalty-based heuristic, which does well, but isn't perfect. You
// might need to use linebreak="goodbreak" or linebreak="badbreak" by
// hand in order to get better effects. It is also possible to modify
// the penalty values; contact the MathJax user's forum for details.
//
linebreaks: {
//
// This controls the automatic breaking of expressions:
// when false, only process linebreak="newline",
// when true, line breaks are inserted automatically in long expressions.
//
automatic: false,
//
// This controls how wide the lines of mathematics can be
//
// Use an explicit width like "30em" for a fixed width.
// Use "container" to compute the size from the containing element.
// Use "nn% container" for a portion of the container.
// Use "nn%" for a portion of the window size.
//
// The container-based widths may be slower, and may not produce the
// expected results if the layout width changes due to the removal
// of previews or inclusion of mathematics during typesetting.
//
width: "container"
},
//
// This allows you to define or modify the styles used to display
// various math elements created by MathJax.
//
// Example:
// styles: {
// ".MathJax .merror": {
// color: "#CC0000",
// border: "1px solid #CC0000"
// }
// }
//
styles: {},
//
// Configuration for <maction> tooltips
// (see also the #MathJax_Tooltip CSS in MathJax/jax/output/SVG/config.js,
// which can be overriden using the styles values above).
//
tooltip: {
delayPost: 600, // milliseconds delay before tooltip is posted after mouseover
delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout
offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position
}
},
//============================================================================
//
// These parameters control the contextual menus that are available on the
@ -711,12 +949,15 @@ MathJax.Hub.Config({
helpURL: "http://www.mathjax.org/help/user/",
//
// These control whether the "Math Renderer", "Font Preferences",
// and "Contextual Menu" submenus will be displayed or not.
// These control whether the "Math Renderer", "MathPlayer", "Font
// Preferences", "Contextual Menu", and "Discoverable" menu items will
// be displayed or not.
//
showRenderer: true,
showMathPlayer: true,
showFontMenu: false,
showContext: false,
showDiscoverable: false,
//
// These are the settings for the Show Source window. The initial
@ -751,8 +992,10 @@ MathJax.Hub.Config({
//
prefer: {
MSIE: "MML",
Firefox: "MML",
Firefox: "HTML",
Opera: "HTML",
Safari: "HTML",
Chrome: "HTML",
other: "HTML"
}
}

View File

@ -35,7 +35,7 @@ MathJax.OutputJax.SVG = MathJax.OutputJax({
font: "TeX", // currently the only font available
blacker: 10, // stroke-width to make fonts blacker
mtextFontInherit: false, // to make <mtext> be in page font rather than MathJax font
MISSINGFONT: "STIXGeneral,'Arial Unicode MS'", // fonts to use for missing characters
MISSINGFONT: "STIXGeneral,'Arial Unicode MS',serif", // fonts to use for missing characters
addMMLclasses: false, // keep MathML structure and use CSS classes to mark elements