Considering one uses math symbols in a document, it is desirable to have them all displayed in the serif font one is using for text, or in basically any font x one would like to use for this sort of thing.
So for one who just started looking into using LuaLaTeX, the amount of information on how to properly typeset a document with only one font (or good combination of at least 2 fonts) is a bit overwhelming. There are easily hundreds of questions on fontspec, Lua(La)TeX, mathspec and the resulting options to use a font, some of which are 4 years old.
Maybe some of the more experienced (and especially more successful) users, who have done this kind of thing before, could share their code for some of the most popular fonts (or their clones and variants)?
-
Times New Roman
-
Helvetica/Arial
-
Palatino
-
Minion Pro
-
Garamond
-
Georgia
… and more
Best Answer
I'm not sure I qualify as experienced and/or more successful :-). But here's an example of the setup I used for my thesis. Adobe Garamond Pro was used as the text font. Sadly, I needed bold to appease the thesis arbiters at my university, so I used
BoldFont=AGaramondPro-Semibold
as it looks slightly less out of place than the standard bold weight.For mathematics, I used the
mathdesign
package with optionadobe-garamond
. This provided all math symbols I needed for my document, with glyph shapes appropriate for Garamond as a text font. For this to be successful, you must copy the.otf
font files to a specific TDS directory, as detailed in themathdesign
README
file.I also have shown some additional typographical enhancements in my sample below, which you may be interested in.
microtype
allows for more pleasing color on the page. Theselnolig
package breaks ligatures which would otherwise span morpheme boundaries. Of course, only German and English are supported out of the box, so it won't do much for the Latin text in my example below.Here's an example using the
blindtext
package to produce a sample mathematics paper, with explanations in the comments for each font option. I've set this in a two-column layout just so that all the math samples fit on one page for the screenshot.Sample Code
Sample Output
Close-up