Mixing Body and Math Fonts
I normally use \setupbodyfont[lucida] to use Lucida as my body AND math font. I also use \usemodule[simplefonts] \setmainfont[Myriad Pro] to use Myriad Pro as my body font (when no math is used). I would like to, however, now mix these so that I can use Lucida for my math and Myriad Pro everywhere else. What is the best way to accomplish this? Thanks, Troy Henderson
Am 17.01.2013 um 22:35 schrieb Troy Henderson
I normally use
\setupbodyfont[lucida]
to use Lucida as my body AND math font. I also use
\usemodule[simplefonts] \setmainfont[Myriad Pro]
to use Myriad Pro as my body font (when no math is used). I would like to, however, now mix these so that I can use Lucida for my math and Myriad Pro everywhere else. What is the best way to accomplish this?
\usemodule[simplefonts] \setmainfont[Myriad Pro] \setmathfont[lucida] % use “lucidaot” for the opentype version of the font Wolfgang
\startformula {\mathss F(x) = \int_a^x f(t)\,dt} \stopformula is about as good as I could expect since (to my knowledge) Lucida does not contain a complete sans math set. Is there a way to get the affect above by default without having to enclose every formula in {\mathss ... }? Troy
On Thu, 17 Jan 2013, Troy Henderson wrote:
\startformula {\mathss F(x) = \int_a^x f(t)\,dt} \stopformula
is about as good as I could expect since (to my knowledge) Lucida does not contain a complete sans math set. Is there a way to get the affect above by default without having to enclose every formula in {\mathss ... }?
(Untested) \appendtoks \mathss \to \everymathematics Aditya
\appendtoks \mathss \to \everymathematics
That appears to work. Thanks. Perhaps I should, instead, try to use a sans math font such as Computer Modern Bright. I know it's not complete (as far as sans math is concerned), but it's probably better than forcing all math to be sans. \setmathfont[Computer Modern Bright] does not work. Troy
Am 18.01.2013 um 12:58 schrieb Troy Henderson
\appendtoks \mathss \to \everymathematics
That appears to work. Thanks. Perhaps I should, instead, try to use a sans math font such as Computer Modern Bright. I know it's not complete (as far as sans math is concerned), but it's probably better than forcing all math to be sans.
\setmathfont[Computer Modern Bright]
does not work.
The \setmathfont accepts only names of predefined math fonts (e.g. “lucida”, "modern” or “palatino"), it doesn’t create the necessary tables which are needed for math in mkiv. Wolfgang
participants (3)
-
Aditya Mahajan
-
Troy Henderson
-
Wolfgang Schuster