Change default for noReflows to true, and add it to default.js

This commit is contained in:
Davide P. Cervone 2014-08-28 19:00:30 -04:00
parent 1aa86d7cf6
commit 467e59a484
2 changed files with 16 additions and 1 deletions

View File

@ -734,10 +734,25 @@ MathJax.Hub.Config({
EqnChunkFactor: 1.5,
EqnChunkDelay: 100,
//
// This option indicates whether MathJax should try to correct the
// x-height of equations to match the size of the surrounding text.
//
matchFontHeight: true,
//
// When true, MathJax will not measure the widths or heights of the
// subexpressions as it creates its output, but instead will rely on
// its internal calculautions based on teh bounding boxes of the
// characters it uses, and will only take measurements when it
// absolutely has to. Since measurements cause display reflows, they
// slows down MathJax considerably, so without them MathJax runs
// faster, but can produce slightly less accurate character placements,
// especially in width fractions or roots.
//
noReflows: true,
//
// These settings control automatic line breaking. It is off by
// default, so only explicit line breaks are performed (via

View File

@ -35,7 +35,7 @@ MathJax.OutputJax["HTML-CSS"] = MathJax.OutputJax({
webfontDir: MathJax.OutputJax.fontDir + "/HTML-CSS", // font name added later
config: {
noReflows: false, // true will use internal measurements and avoid browser reflows
noReflows: true, // true uses internal measurements to avoid browser reflows
matchFontHeight: true, // try to match math font height to surrounding font?
scale: 100, minScaleAdjust: 50, // global math scaling factor, and minimum adjusted scale factor
availableFonts: ["STIX","TeX"], // list of local fonts to check for