[OS X TeX] Fine point of mathematical typing?
David Watson
dewatson at mac.com
Mon May 12 19:56:08 EDT 2008
Couldn't one simply use a "verbatim" environment?
-David Watson
On May 12, 2008, at 6:51 PM, Bruno Voisin wrote:
> Le 12 mai 08 à 23:12, Ross Moore a écrit :
>
>> (The '1' being narrower than other digits makes a tiny difference;
>> but hardly noticeable at all.)
>
> In order to alleviate for this, and use the Monospaced "option" of
> OpenType fonts, I tried, with Roberto's example, to replace pdfLaTeX
> by XeLaTeX and adding in the preamble:
>
> \DeclareFontFamily{U}{monolmr}{}
> \DeclareFontShape{U}{monolmr}{m}{n}
> {<-> "LMRoman12\space Regular:
> Number\space Spacing=Monospaced\space Numbers"}{}
> \DeclareSymbolFont{mononumbers}{U}{monolmr}{m}{n}
> \DeclareMathSymbol{0}{\mathalpha}{mononumbers}{`0}
> \DeclareMathSymbol{1}{\mathalpha}{mononumbers}{`1}
> \DeclareMathSymbol{2}{\mathalpha}{mononumbers}{`2}
> \DeclareMathSymbol{3}{\mathalpha}{mononumbers}{`3}
> \DeclareMathSymbol{4}{\mathalpha}{mononumbers}{`4}
> \DeclareMathSymbol{5}{\mathalpha}{mononumbers}{`5}
> \DeclareMathSymbol{6}{\mathalpha}{mononumbers}{`6}
> \DeclareMathSymbol{7}{\mathalpha}{mononumbers}{`7}
> \DeclareMathSymbol{8}{\mathalpha}{mononumbers}{`8}
> \DeclareMathSymbol{9}{\mathalpha}{mononumbers}{`9}
>
> That doesn't seem to make much of a difference, if any. I tried also
> to use TeX Gyre Termes instead of LMRoman12 Regular, with no luck.
>
> It may be possible to take advantage of fontspec's much easier
> syntax, like
>
> \setmathrm[Numbers={Monospaced,Lining}]{TeX Gyre Termes}
>
> but I couldn't figure out how to make this work.
>
> Bruno
More information about the MacOSX-TeX
mailing list