From 467e59a484a58386d43cd91943a798b09801be64 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 28 Aug 2014 19:00:30 -0400 Subject: [PATCH] Change default for noReflows to true, and add it to default.js --- unpacked/config/default.js | 15 +++++++++++++++ unpacked/jax/output/HTML-CSS/config.js | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/unpacked/config/default.js b/unpacked/config/default.js index 38cca24a8..a19722512 100644 --- a/unpacked/config/default.js +++ b/unpacked/config/default.js @@ -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 diff --git a/unpacked/jax/output/HTML-CSS/config.js b/unpacked/jax/output/HTML-CSS/config.js index 79512627a..164ad71b5 100644 --- 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