commit 467e59a484a58386d43cd91943a798b09801be64
parent 1aa86d7cf6e493bd748b92c19f5e176334cacb20
Author: Davide P. Cervone <dpvc@union.edu>
Date: Thu, 28 Aug 2014 19:00:30 -0400
Change default for noReflows to true, and add it to default.js
Diffstat:
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/unpacked/config/default.js b/unpacked/config/default.js
@@ -734,11 +734,26 @@ 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
// linebreak="newline" attributes on <mo> and <mspace> elements). To
diff --git a/unpacked/jax/output/HTML-CSS/config.js b/unpacked/jax/output/HTML-CSS/config.js
@@ -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