Skip to content

Commit

Permalink
first round of updates for #78
Browse files Browse the repository at this point in the history
  • Loading branch information
pkra committed Jan 9, 2015
1 parent b741d53 commit 5f81a22
Show file tree
Hide file tree
Showing 4 changed files with 270 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,14 @@ MathJax Configuration Options
The TeX input processor options <options/TeX>
The MathML input processor options <options/MathML>
The AsciiMath input processor options <options/AsciiMath>

.. toctree::
:maxdepth: 1

The HTML-CSS output processor options <options/HTML-CSS>
The NativeMML output processor options <options/NativeMML>
The SVG output processor options <options/SVG>
The CommonHTML output processor options <options/CommonHTML>
The MMLorHTML configuration options <options/MMLorHTML>

.. toctree::
Expand All @@ -81,6 +86,7 @@ MathJax Configuration Options
The FontWarnings options <options/FontWarnings>
The Safe options <options/Safe>
The MatchWebFonts options <options/MatchWebFonts>
The CHTML-preview options <options/CHTML-preview>

.. toctree::
:maxdepth: 1
Expand Down Expand Up @@ -131,6 +137,7 @@ Upgrading MathJax
.. toctree::
:maxdepth: 1

What's New in MathJax v2.5 <whats-new-2.5>
What's New in MathJax v2.4 <whats-new-2.4>
What's New in MathJax v2.3 <whats-new-2.3>
What's New in MathJax v2.2 <whats-new-2.2>
Expand Down
69 changes: 69 additions & 0 deletions options/CHTML-preview.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.. _configure-CHTML-preview:

*****************************
The CHTMLpreview extension
*****************************

The options below control the operation of the `CHTML-preview`
extension that is run when you include ``"CHTML-preview.js"`` in the
`extensions` array of your configuration. They are listed with their
default values. To set any of these options, include a
``CHTML-preview`` section in your :meth:`MathJax.Hub.Config()` call.
For example

.. code-block:: javascript
MathJax.Hub.Config({
CHTML-preview: {

This comment has been minimized.

Copy link
@dpvc

dpvc Jan 14, 2015

Member

This needs quotation marks around the CHTML-preview, since the dash would otherwise be illegal as a hash key.

Chunks: {EqnChunk: 10000, EqnChunkFactor: 1, EqnChunkDelay: 0},
color: "inherit!important",
updateTime: 30, updateDelay: 6,
messageStyle: "none",
disabled: false
}
});
would ask for the CommonHTML output to run as a preview (`disabled: false`),
force inheritance of the surrounding text color, and set the `updateTime` and
`updateDelay` to low values (30ms / 6ms) to speed up
the preview pass. Furthermore, it configures the second pass to set the
chunking (`Chunks`) to a reflow every 10,000 equations and disable the progress

This comment has been minimized.

Copy link
@dpvc

dpvc Jan 14, 2015

Member

"disables" rather than "disable".

messages (`messageStyle`).

This extension provides two-pass rendering mode. A **first**, fast-but-rough

This comment has been minimized.

Copy link
@dpvc

dpvc Jan 14, 2015

Member

"a two-pass rendering mode" (missing "a")?

rendering is genereated as a preview, using the
:ref:`configure-CommonHTML`, then a **second** pass using the
configured output jax runs to update the preview output.

This two-pass mode will provide the reader with a quick, decent rendering to
start reading immediately, while silently updating that rendering with the
high quality layout later.


.. describe:: EqnChunk: 10000
EqnChunkFactor: 1
EqnChunkDelay: 0

These values control how "chunky" the **second** pass will be. For more
information see :ref:`configure-HTML-CSS` and :ref:`configure-SVG`.

.. describe:: color: "inherit!important"

This value allow you to choose a text color for the **first** passs.

This comment has been minimized.

Copy link
@dpvc

dpvc Jan 14, 2015

Member

"allows" rather than "allow".


.. describe:: updateTime: 30
updateDelay: 6

These values control how often the **first** pass will pause to allow user

This comment has been minimized.

Copy link
@dpvc

dpvc Jan 14, 2015

Member

This is actually for the second pass that goes on behind the scenes.

interaction (e.g., scrolling).

.. describe:: messageStyle: "none"

This value controls the verbosity of the processing messages; see
:ref:`configure-hub` for more information.

This comment has been minimized.

Copy link
@dpvc

dpvc Jan 14, 2015

Member

You might want to note that this is for the messages during the second pass.


.. describe:: disabled:false

This value enables or disables the preview mode. In particular,
it allow overriding a combined configuration file, cf.
:ref:`common-configurations`.

This comment has been minimized.

Copy link
@dpvc

dpvc Jan 14, 2015

Member

You might want to note that the user can still enable fast previews via the contextual menu.

75 changes: 75 additions & 0 deletions options/CommonHTML.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
.. _configure-CommonHTML:

*******************************
The CommonHTML output processor
*******************************

The options below control the operation of the CommonHTML output
processor that is run when you include ``"output/CommonHTML"`` in the
`jax` array of your configuration or load a combined configuration
file that includes the CommonHTML output jax. They are listed with their default
values. To set any of these options, include an ``CommonHTML`` section
in your :meth:`MathJax.Hub.Config()` call. For example

.. code-block:: javascript
MathJax.Hub.Config({
CommonHTML: {
scale: 120
}
});
would set the ``scale`` option to 120%.

.. describe:: scale: 100

The scaling factor (as a percentage) of math with respect to the
surrounding text. The `CommonHTML` output processor tries to match
the ex-size of the mathematics with that of the text where it is
placed, but you may want to adjust the results using this scaling
factor. The user can also adjust this value using the contextual
menu item associated with the typeset mathematics.

.. describe:: minScaleAdjust: 50

This gives a minimum scale (as a percent) for the scaling used by
MathJax to match the equation to the surrounding text. This will
prevent MathJax from making the mathematics too small.

.. describe:: mtextFontInherit: false

This setting controls whether ``<mtext>`` elements will be typeset
using the math fonts or the font of the surrounding text. When
``false``, the font for ``mathvariant="normal"`` will be used;
when ``true``, the font will be inherited from the surrounding
paragraph.

.. describe:: linebreaks: {}

This is an object that configures automatic linebreaking in the
CommonHTML output. In order to be backward compatible with earlier
versions of MathJax, only explicit line breaks are performed by
default, so you must enable line breaks if you want automatic
ones. The object contains the following values:

.. describe:: automatic: false

This controls the automatic breaking of expressions: when
``false``, only ``linebreak="newline"`` is processed; when
``true``, line breaks are inserted automatically in long
expressions.

.. describe:: width: "container"

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.
119 changes: 119 additions & 0 deletions whats-new-2.5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
.. _whats-new-2.5:

**************************
What's New in MathJax v2.5
**************************

MathJax v2.5 includes a number of new features, as well a more than 70 important bug fixes. The following are some of the highlights.

Features
--------

* *Speed improvements.* The HTML-CSS output performance was improved by 30-40% (depending on content complexity, with higher gains in more complex content such as very long documents).
* *New output for fast preview.* The new CommonHTML output provides a rough but 10x-faster rendering. The ``CHTML-preview`` extension will use this fast output as a preview mode for HTML-CSS or SVG output.
* *Improved Content MathML support.* Content MathML is now fully supported via a new extension, in particular this allows customization of the conversion process.
* *Improved elementary math support* The experimental support for elementary math elements has been significantly improved special thanks to David Carlisle.
* *NodeJS compatibility*. Enable the implementation of a NodeJS API (released as `MathJax-node <https://github.com/mathjax/MathJax-node>`__).

Numerous display bugs, line-breaking problems, and interface issues have been resolved; for a detailed listing please check the `release milestone <https://github.com/mathjax/MathJax/issues?milestone=2&state=closed>`__.

This comment has been minimized.

Copy link
@mitya57

mitya57 Feb 2, 2015

Contributor

You probably meant milestone=4, not milestone=2.

This comment has been minimized.

Copy link
@pkra

pkra Feb 2, 2015

Author Contributor

Thanks for catching that. Should be fixed now.


Interface
---------

* `#834 <https://github.com/mathjax/MathJax/issues/834>`__ Fix incorrect line-width when zooming which can cause line-breaking problems.
* `#918 <https://github.com/mathjax/MathJax/issues/918>`__ Fix zoom box size in NativeMML output.
* `#835 <https://github.com/mathjax/MathJax/issues/835>`__ Fix zoom for equations extending beyond their bounding box.
* `#893 <https://github.com/mathjax/MathJax/issues/893>`__ Fix outdated ARIA values for HTML-CSS and SVG output.
* `#860 <https://github.com/mathjax/MathJax/issues/860>`__, `#502 <https://github.com/mathjax/MathJax/issues/502>`__ Preserve RDFa, microdata, aria labels, and other attributes in HTML-CSS and SVG output.
* `#935 <https://github.com/mathjax/MathJax/issues/935>`__ Escape special characters in TeX annotations.
* `#912 <https://github.com/mathjax/MathJax/issues/912>`__ Fix missing ``mstyle`` attributes in ``toMathML`` output.
* `#971 <https://github.com/mathjax/MathJax/issues/971>`__ Fix lost attributes when ``toMathML`` is restarted.

Line-breaking
-------------

* `#949 <https://github.com/mathjax/MathJax/issues/949>`__ Fix processing error due to empty elements.

HTML-CSS/SVG/nativeMML display
------------------------------

* `#863 <https://github.com/mathjax/MathJax/issues/863>`__ Fix broken MathML preview in MathML pre-processor.
* `#891 <https://github.com/mathjax/MathJax/issues/891>`__ Fix deprecated regexp affecting mtable alignment.
* `#323 <https://github.com/mathjax/MathJax/issues/323>`__ Improve MathPlayer compatibility on Internet Explorer 10+.
* `#826 <https://github.com/mathjax/MathJax/issues/826>`__ Scale content in fallback fonts.
* `#898 <https://github.com/mathjax/MathJax/issues/898>`__ Fix invalid SVG output when using fallback characters.
* `#800 <https://github.com/mathjax/MathJax/issues/800>`__ Fix misplaced background color for stretched mphantom elements in SVG output.
* `#490 <https://github.com/mathjax/MathJax/issues/490>`__ Fix ``\overline`` issues in combination with text-style limits.
* `#829 <https://github.com/mathjax/MathJax/issues/829>`__ Implement ``\delimitershortfall``, ``\delimiterfactor``.
* `#775 <https://github.com/mathjax/MathJax/issues/775>`__ Fix lost text content in SVG output.
* `#917 <https://github.com/mathjax/MathJax/issues/>`__ Fix cases of incorrect bounding boxes in HTML-CSS output.
* `#807 <https://github.com/mathjax/MathJax/issues/807>`__ Fix clipping of table columns in HTML-CSS output.
* `#804 <https://github.com/mathjax/MathJax/issues/804>`__ Fix cases of uneven subscripts.
* `#944 <https://github.com/mathjax/MathJax/issues/944>`__ Fix rendering error when scaling-all-math of labeled equations.
* `#930 <https://github.com/mathjax/MathJax/issues/930>`__ Fix SVG output failure when ``<math>`` element has inline styles with border or padding.
* `#931 <https://github.com/mathjax/MathJax/issues/931>`__ Fix baseline alignment in Safari 6.2/7.1/8.0.
* `#937 <https://github.com/mathjax/MathJax/issues/937>`__ Fix incorrect width in MathJax font data affecting underlining.
* `#966 <https://github.com/mathjax/MathJax/issues/966>`__ Fix SVG output overlapping when using prefix notation.

TeX emulation
-------------

* `#881 <https://github.com/mathjax/MathJax/issues/881>`__ Allow ``\newenvironment`` to process optional parameters.
* `#889 <https://github.com/mathjax/MathJax/issues/889>`__ remove extra space around some parenthesis constructs.
* `#856 <https://github.com/mathjax/MathJax/issues/856>`__ Recognize comma as decimal delimiter in units.
* `#877 <https://github.com/mathjax/MathJax/issues/877>`__ Fix bug related to multiple accent having different width.
* `#832 <https://github.com/mathjax/MathJax/issues/832>`__ Fix multline environment not being centered in HTML-CSS output.
* `#776 <https://github.com/mathjax/MathJax/issues/776>`__ Fix stretchy delimiters of ``binom`` and ``choose``.
* `#900 <https://github.com/mathjax/MathJax/issues/900>`__ Fix ``\buildrel`` getting TeX class ORD instead of REL.
* `#890 <https://github.com/mathjax/MathJax/issues/890>`__ Enable px as dimension in ``\\[...]``.
* `#901 <https://github.com/mathjax/MathJax/issues/901>`__ Allow ``\limits`` in more cases and add errors for some cases of multiple subscripts.
* `#903 <https://github.com/mathjax/MathJax/issues/903>`__ Allow ``\hfill`` to set alignment in matrices and arrays (for old fashioned TeX layout).
* `#902 <https://github.com/mathjax/MathJax/issues/902>`__ Convert ``\eqalignno`` and ``\leqalignno`` into ``mlabeledtr``.
* `#906 <https://github.com/mathjax/MathJax/issues/906>`__ Allow comma separated parameters in ``\mmlToken``.
* `#913 <https://github.com/mathjax/MathJax/issues/913>`__ Allow attributes in ``\mmlToken`` whose defaults are false or blank.
* `#972 <https://github.com/mathjax/MathJax/issues/972>`__ Fix autoload of the ``color`` extension.
* `#375 <https://github.com/mathjax/MathJax/issues/475>`__ Add ``\{``, ``\}``, and ``\\`` to macros working within ``\text{}`` etc.
* `#969 <https://github.com/mathjax/MathJax/issues/969>`__ Fix incorrect spacing with some ``\frac`` constructs.
* `#982 <https://github.com/mathjax/MathJax/issues/982>`__ Fix incorrect spacing in ``aligned`` environments.

Asciimath
---------

* `#851 <https://github.com/mathjax/MathJax/issues/851>`__ Prevent leading space in quote from causing processing errors.
* `#431 <https://github.com/mathjax/MathJax/issues/431>`__ Fix handling of special characters in exponents.
* `#741 <https://github.com/mathjax/MathJax/issues/741>`__ Add underbrace macro.
* `#857 <https://github.com/mathjax/MathJax/issues/857>`__ Update AsciiMathML to 2.2; changes include `improve entity handling <https://github.com/mathjax/asciimathml/issues/2>`__, `add triangle macro <https://github.com/mathjax/asciimathml/issues/4>`__, `map ast to asterisk <https://github.com/mathjax/asciimathml/issues/6>`__, `allow input of row vectors <https://github.com/mathjax/asciimathml/issues/11>`__, `allow lamda <https://github.com/mathjax/asciimathml/issues/12>`__, `switch phi/varphi mapping <https://github.com/mathjax/asciimathml/issues/14>`__, `add underbrace macro <https://github.com/mathjax/asciimathml/issues/18>`__, `handle empty nodes better <https://github.com/mathjax/asciimathml/issues/24>`__, `add vector norm macro <https://github.com/mathjax/asciimathml/issues/26>`__, `improve @ macro <https://github.com/mathjax/asciimathml/issues/27>`__.

MathML Handling
---------------

* `#847 <https://github.com/mathjax/MathJax/issues/847>`__ Fix line-breaks in annotation elements.
* `#805 <https://github.com/mathjax/MathJax/issues/805>`__ Prevent empty annotation elements from causing math processing errors.
* `#769 <https://github.com/mathjax/MathJax/issues/769>`__ Update ``indentshift`` implementation to meet clarified MathML specification.
* `#768 <https://github.com/mathjax/MathJax/issues/768>`__ Fix processing of percentage values for ``indenshift``.
* `#839 <https://github.com/mathjax/MathJax/issues/839>`__ Update inheritance of ``displaystyle`` in ``mtable`` to meet clarified MathML specification.
* `#695 <https://github.com/mathjax/MathJax/issues/695>`__ Allow Content MathML converion to be customized.
* `#964 <https://github.com/mathjax/MathJax/issues/964>`__ Move experimental support for elementary math and RTL to its own extension.

Fonts
-----

* `#845 <https://github.com/mathjax/MathJax/issues/845>`__ Fix webfont bug in Safari 7.
* `#950 <https://github.com/mathjax/MathJax/issues/950>`__ Fix webfont bug in IE 11.

Localization
------------

* `#979 <https://github.com/mathjax/MathJax/issues/979>`__ Updated locales thanks to Translatewiki.net; activate locales for Scots and Southern Balochi.

APIs
-----

* `#873 <https://github.com/mathjax/MathJax/issues/873>`__ Combine array of elements when typesetting.
* `#693 <https://github.com/mathjax/MathJax/issues/693>`__ Add API to allow listeners to be cleared.


Misc.
-----

* `#872 <https://github.com/mathjax/MathJax/issues/872>`__ Add small delay between input and output phase to prevent performance degredation.

0 comments on commit 5f81a22

Please sign in to comment.