I am writing a book in the Wolfram CDF format and would like to improve upon the default equation typesetting of Mathematica. To this end I've loaded @Szabolcs' valuable MaTeX, which imports $\LaTeX$ typesetting into the Mathematica document:
Needs["MaTeX`"];
ConfigureMaTeX["pdfLaTeX" -> "/usr/texbin/pdflatex"]
Here's a comparison between $\LaTeX$ at the top, and Mathematica at the bottom. There is no question whatsoever that the aesthetic and legibility difference is profound.
Here is just one small part of an actual equation that will appear in my book:
Again: not the slightest doubt that the $\LaTeX$ version (bottom) is vastly superior to that in Mathematica (top).
When I use DisplayNumberedFormula
and cut and past an input cell into it, I get something that looks like this:
which I find particularly ugly and illegible, at least compared to $\LaTeX$.
Let me stress that I consider myself an expert $\LaTeX$ user (published many books, solution manuals, etc., with sales into the high 10s of thousands) as well as an expert Mathematica programmer. I'm happy to use whichever tool leads to the best result.
Here is a sample of the rendered Mathematica document. (I've left open the equation cell.) Notice how legible is the rendered equation.
A number of problems arise, however:
- The default size of the rendered MaTeX equation is too small, so I have to adjust the output using
ImageSize
, as shown above. However, this option sets the overall size of the rendered equation, of course not the size of individual variables. Some equations have one line, others two or more. Is there a way to automatically set the image size so that the rendered variable (e.g., an $x$-height) is constant? - Of course for the final book, I double-click on the bottom half of the highlighted cell to display only the MaTeX-rendered equation, not its source code. I want to be able to edit the typesetting commands and hit return and get an "output" cell of the type
NumberedEquation
. In short, is there a way to make a special "Equation Input" cell such that its output cell (an equation) is of a typeNumberedEquation
which retains its Tag and other properties as I type in variations of the source MaTeX code?
Any suggestions?
TraditionalForm
looks really traditional (as close to $\LaTeX$ as it ever was). See my question Inconsistent display of TraditionalForm in version 9 for ways to get this older styling back. To enter displayed equations, I follow some variation of this answer. I usually create PDFs of notebooks and distribute them along with the source. However, PDF export is never great (e.g., no reference links). $\endgroup$FontSize
andMagnification
both of which can be used to achieve consistent resizing of text. $\endgroup$MaTeX`Developer`$Version
. $\endgroup$