Difference between revisions of "Palatino with Euler for Math - Old Content"
Jump to navigation
Jump to search
(created by Sanjoy (not logged in because new-page creation doesn't work for me then)) |
(by Sanjoy (not logged in due to wiki or firefox bug that prevents editing a whole page while logged in)) |
||
Line 1: | Line 1: | ||
− | + | Palatino, designed by Hermann Zapf, is an elegant font. To typeset a document in Palatino: | |
+ | |||
+ | <texcode> | ||
+ | \usetypescript[palatino][ec] | ||
+ | \setupbodyfont[palatino,11pt] | ||
+ | </texcode> | ||
+ | |||
+ | (I use 11pt because I find 12pt slightly too large, but choose your favorite size.) | ||
+ | |||
+ | That setup uses Palatino for text and mathematics. To set the mathematics in Euler (also designed by Hermann Zapf), | ||
+ | |||
+ | <texcode> | ||
+ | \usetypescript[palatino][ec] | ||
+ | \definetypeface [palatino] [mm] [math] [euler] [euler] [rscale=1.03] | ||
+ | \setupbodyfont[palatino,11pt] | ||
+ | </texcode> | ||
+ | |||
+ | (The rscale setting is to match the Euler font height to the Palatino height.) | ||
+ | |||
+ | To get boldface mathematics symbols, | ||
+ | |||
+ | <texcode> | ||
+ | \usetypescript[palatino][ec] | ||
+ | \definetypeface [palatino] [mm] [math] [euler] [euler][rscale=1.03] | ||
+ | \definetypeface [boldmath] [mm] [boldmath][euler][euler][rscale=1.03] | ||
+ | \setupbodyfont[palatino,11pt] | ||
+ | </texcode> | ||
+ | |||
+ | Here is an example: | ||
+ | |||
+ | <context> | ||
+ | \usetypescript[palatino][ec] | ||
+ | \definetypeface [palatino] [mm] [math] [euler] [euler][rscale=1.03] | ||
+ | \definetypeface [boldmath] [mm] [boldmath][euler][euler][rscale=1.03] | ||
+ | \setupbodyfont[palatino,11pt] | ||
+ | |||
+ | \def\thetavec{{\boldsymbol\theta}} | ||
+ | \def\thetahat{\hat\thetavec} | ||
+ | |||
+ | If $\thetavec$ is a vector, $\theta$ is its length, and $\thetahat$ is | ||
+ | a unit vector in the $\thetavec$ direction, | ||
+ | \startformula | ||
+ | \thetavec = \theta\thetahat. | ||
+ | \stopformula | ||
+ | </context> |
Revision as of 15:33, 20 September 2009
Palatino, designed by Hermann Zapf, is an elegant font. To typeset a document in Palatino:
\usetypescript[palatino][ec] \setupbodyfont[palatino,11pt]
(I use 11pt because I find 12pt slightly too large, but choose your favorite size.)
That setup uses Palatino for text and mathematics. To set the mathematics in Euler (also designed by Hermann Zapf),
\usetypescript[palatino][ec] \definetypeface [palatino] [mm] [math] [euler] [euler] [rscale=1.03] \setupbodyfont[palatino,11pt]
(The rscale setting is to match the Euler font height to the Palatino height.)
To get boldface mathematics symbols,
\usetypescript[palatino][ec] \definetypeface [palatino] [mm] [math] [euler] [euler][rscale=1.03] \definetypeface [boldmath] [mm] [boldmath][euler][euler][rscale=1.03] \setupbodyfont[palatino,11pt]
Here is an example: