From c794e7ce19346ad9b3490bc744bc1c43a251b8b8 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 11 Aug 2011 15:36:17 -0400 Subject: [PATCH] Fixed some typos, and added comments to help clarify the equation numbering parameters --- config/default.js | 14 +++++++++----- unpacked/config/default.js | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/config/default.js b/config/default.js index 2e532ff39..1a07a9084 100644 --- a/config/default.js +++ b/config/default.js @@ -263,7 +263,7 @@ MathJax.Hub.Config({ processEnvironments: true, // - // Conteols whether tex2jax processes \ref{...} commands outside + // Controls whether tex2jax processes \ref{...} commands outside // of math mode. Set to "false" to prevent processing of \ref // except within math mode. // @@ -378,15 +378,19 @@ MathJax.Hub.Config({ Macros: {}, // - // Equation numbering parameters + // Equation numbering parameters. + // + // If you uncomment any of the format parameters, be sure to add + // a comma after autoNumber, and be sure you don't have a comma + // after the last uncommented format. // equationNumbers: { - autoNumber: "none", // "AMS" for standard AMS environment numbering, - // or "all" to number all displayed equations + autoNumber: "none" // "AMS" for standard AMS environment numbering, + // or "all" to number all displayed equations // formatNumber: function (n) {return n}, // format for equation number n // formatTag: function (n) {return '('+n+')'}, // format for \tag and \eqref // formatID: function (n) {return 'mjx-eqn-'+n}, // element ID to use for reference -// formatURL: function (n) {return '#mjx-eqn-'+escape(n)}, // URL to use for references +// formatURL: function (n) {return '#mjx-eqn-'+escape(n)} // URL to use for references } }, diff --git a/unpacked/config/default.js b/unpacked/config/default.js index 2e532ff39..1a07a9084 100644 --- a/unpacked/config/default.js +++ b/unpacked/config/default.js @@ -263,7 +263,7 @@ MathJax.Hub.Config({ processEnvironments: true, // - // Conteols whether tex2jax processes \ref{...} commands outside + // Controls whether tex2jax processes \ref{...} commands outside // of math mode. Set to "false" to prevent processing of \ref // except within math mode. // @@ -378,15 +378,19 @@ MathJax.Hub.Config({ Macros: {}, // - // Equation numbering parameters + // Equation numbering parameters. + // + // If you uncomment any of the format parameters, be sure to add + // a comma after autoNumber, and be sure you don't have a comma + // after the last uncommented format. // equationNumbers: { - autoNumber: "none", // "AMS" for standard AMS environment numbering, - // or "all" to number all displayed equations + autoNumber: "none" // "AMS" for standard AMS environment numbering, + // or "all" to number all displayed equations // formatNumber: function (n) {return n}, // format for equation number n // formatTag: function (n) {return '('+n+')'}, // format for \tag and \eqref // formatID: function (n) {return 'mjx-eqn-'+n}, // element ID to use for reference -// formatURL: function (n) {return '#mjx-eqn-'+escape(n)}, // URL to use for references +// formatURL: function (n) {return '#mjx-eqn-'+escape(n)} // URL to use for references } },