ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* BUGS with \setupbodyfontenvironment
@ 2015-05-22 11:07 david.boerschlein
  2015-05-22 11:19 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: david.boerschlein @ 2015-05-22 11:07 UTC (permalink / raw)
  To: ntg-context

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:
\setupbodyfontenvironment[default][em=italic,x=0.9,xx=0.8,a=1.2,b=1.4,c=1.6,d=2.4,e=3.0,f=4.0,small=0.8]

then the .tex compiles and runs and generates PDF output.

Also, \tfe is documented to work but it is being flagged as a undefined control sequence error whereas \tfd works.   We are using context current version: 2014.01.03 00:40

David Boerschlein
(214) 412-3275 home office land
(585) 278-4687 cell
www.linkedin.com/in/davidboerschlein 
____________________________________________________________
Heavy rains mean flooding
Anywhere it rains it can flood. Learn your risk. Get flood insurance.
http://thirdpartyoffers.juno.com/TGL3141/555f0e2e7d243e2e5e2dst04duc
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUGS with \setupbodyfontenvironment
  2015-05-22 11:07 BUGS with \setupbodyfontenvironment david.boerschlein
@ 2015-05-22 11:19 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2015-05-22 11:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 22.05.2015 um 13:07 schrieb david.boerschlein@juno.com:
> 
> 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:
> \setupbodyfontenvironment[default][em=italic,x=0.9,xx=0.8,a=1.2,b=1.4,c=1.6,d=2.4,e=3.0,f=4.0,small=0.8]
> 
> then the .tex compiles and runs and generates PDF output.
> 
> Also, \tfe is documented to work but it is being flagged as a undefined control sequence error whereas \tfd works.   We are using context current version: 2014.01.03 00:40


Only the a–d sizes are predefined, to get the e you have to add

    \definefontsize[e]

to your document.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-22 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 11:07 BUGS with \setupbodyfontenvironment david.boerschlein
2015-05-22 11:19 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).