[NTG-context] size in setuptype

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed Feb 24 13:37:53 CET 2016


> Meer, Hans van der <mailto:H.vanderMeer at uva.nl>
> 24. Februar 2016 um 13:25
> Why does \setuptyping has a parameter bodyfont= and is \setuptype 
> missing it?
> I am asking because in typesetting with
>   \setuptype[style=small]\type{something}
> I get another font and size than with
>   \setuptyping[bodyfont=small]\starttyping ... \stoptyping
> whereas in both the same is wanted in order to keep continuity in size 
> and style.
The bodyfont key for typing is usefull when you need a narrower font 
font for long listings.

\definetypeface[narrowtt][tt][mono][modern-condensed][default]

\starttext

\starttyping
\starttypescript [modern-designsize]
     \definetypeface [\typescriptone] [\s!rm] [\s!serif] 
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
     \definetypeface [\typescriptone] [\s!ss] [\s!sans]  
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
     \definetypeface [\typescriptone] [\s!tt] [\s!mono]  
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
     \definetypeface [\typescriptone] [\s!mm] [\s!math]  
[modern]                  [\s!default]
     \quittypescriptscanning
\stoptypescript
\stoptyping

\starttyping[bodyfont=narrowtt]
\starttypescript [modern-designsize]
     \definetypeface [\typescriptone] [\s!rm] [\s!serif] 
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
     \definetypeface [\typescriptone] [\s!ss] [\s!sans]  
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
     \definetypeface [\typescriptone] [\s!tt] [\s!mono]  
[latin-modern-designsize] [\s!default] [\s!designsize=\s!auto]
     \definetypeface [\typescriptone] [\s!mm] [\s!math]  
[modern]                  [\s!default]
     \quittypescriptscanning
\stoptypescript
\stoptyping

\stoptext

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160224/4e5c1b0a/attachment.html>


More information about the ntg-context mailing list