Advent has chosen TeX as the basis for math in 3B2. TeX is the worldwide de-facto standard for Maths typesetting and is commonly used in the production of technical and scientific documentation.
TeX is a mathematic markup system written by Donald E. Knuth which is designed for the production of technical and scientific documentation.
In the words of the author of TeX (Donald E. Knuth), "TeX is a typesetting system intended for the creation of beautiful books, especially for books that contain a lot of mathematics. TeX is designed to handle complex mathematical expressions in such a way that most of them are easy to input."
TeX and its documents are highly portable and because TeX is a macro processor, it offers users a powerful programming capability.
LaTeX is also a high-quality mathematic typesetting method with features designed for the production of technical and scientific documents. It is most often used for medium and large technical or scientific documents, but it can also be used for other forms of publishing.
Originally written by Leslie Lamport, LaTeX is a TeX macro package that provides a document processing system. LaTeX allows markup to describe the structure of a document, so that the user need not think about presentation. The same document can then be produced in a variety of different layouts.
3B2 uses a slightly modified form of TeX code. It includes a substantial number of the math commands of TeX to enable the user to set equations as desired, as well as a few extra features which are more 3B2 like, including the use of normal 3B2 fonts within math equations.
The math itself can either be inline as in the case of or it can be in display style like the following:
This causes the math to be centered and the correct space is automatically skipped to avoid the math, while remaining in the same paragraph.
3B2 built in Maths functionality also allows for matrices, aligning multiple equations, over/under-lining, accents, fractions, line numbering, arrows, limits and lots more.
TeX in 3B2 is a WYSIWYG implementation and interpretation of the TeX maths macros and formatting rules. The user can key mathematical formulae directly onto the page using the TeX structure and see the equations generated on screen as you type and this formulae can be edited at any time. Existing equations in TeX can be imported and cut and pasted within your documents.
Below are some of 3B2's Math related features:
Note:
The above is a factual list of some Math related features in 3B2, it is by no means a comprehensive list, and should therefore not be used for comparative purposes.
Many of the features used in plain TeX assume maths setting practice as used in the USA. 3B2 allows you to tailor almost all of the parameters of TeX to conform to your own style of math setting. For example, it is possible to use different fonts within equations for numbers, letters and text, and change the relative position of the sub and superscripts.
Below is a list of some of the additional features for 3B2 Math:
You can find out more about Maths in 3B2 by visiting the 3B2 Documentation Downloads web page and downloading the Maths Manual:
You can find out more about TeX by visiting:
The TeX Users Group Home Page
See also