Re: [NTG-context] simplefonts vs typescripts
I have the following: \setupbodyfontenvironment[default][em=italic,x=9.0pt,xx=8.0pt,a=12.0pt,b=14.0pt,c=16.0pt,d=18.0pt,e=24.0pt,small=8.0pt] Per: http://wiki.contextgarden.net/Font_Switching However ConTeXt has a syntax error. ! Missing \endcsname inserted ! You can't use `\dimexpr' in restricted horizontal mode If I change the above to just: \setupbodyfontenvironment[default][em=italic] then the .tex compiles and runs and generates PDF output, albeit with the wrong point sizes. Please advise! Thanks. David Boerschlein (214) 412-3275 home office land (585) 278-4687 cell www.linkedin.com/in/davidboerschlein ____________________________________________________________ High School Yearbooks View Class Yearbooks Online Free. Reminisce & Buy a Reprint Today! http://thirdpartyoffers.juno.com/TGL3141/555e34d459b534d357cbst01duc
On 05/21/2015 09:40 PM, david.boerschlein@juno.com wrote:
I have the following:
\setupbodyfontenvironment[default][em=italic,x=9.0pt,xx=8.0pt,a=12.0pt,b=14.0pt,c=16.0pt,d=18.0pt,e=24.0pt,small=8.0pt]
Hi David, the numeric values for the options are scaling factors. These are relative sizes to the value set in \setupbodyfont (or 12pt by default, when none is set). So dimension units doesn’t make any sense in these options. Your command should read: \setupbodyfontenvironment [default] [em=italic, x=0.9, xx=0.8, b=1.4, c=1.6, d=1.8, e=2.4, small=0.8] Removed "a" size, since its value isn’t different from the default. I hope iit helps, Pablo -- http://www.ousia.tk
Am 21.05.2015 um 22:14 schrieb Pablo Rodriguez
: On 05/21/2015 09:40 PM, david.boerschlein@juno.com wrote:
I have the following:
\setupbodyfontenvironment[default][em=italic,x=9.0pt,xx=8.0pt,a=12.0pt,b=14.0pt,c=16.0pt,d=18.0pt,e=24.0pt,small=8.0pt]
Hi David,
the numeric values for the options are scaling factors.
These are relative sizes to the value set in \setupbodyfont (or 12pt by default, when none is set).
So dimension units doesn’t make any sense in these options.
Your command should read:
\setupbodyfontenvironment [default] [em=italic, x=0.9, xx=0.8, b=1.4, c=1.6, d=1.8, e=2.4, small=0.8]
Removed "a" size, since its value isn’t different from the default.
When you change the values for a certain font size you can use dimensions. \setupbodyfontenvironment [10pt] [x=8.0pt, a=20.0pt] \setupbodyfont[10pt] \starttext text {\tfa text} {\tfx text} \stoptext Wolfgang
participants (3)
-
david.boerschlein@juno.com
-
Pablo Rodriguez
-
Wolfgang Schuster