> Am 14.01.2015 um 18:58 schrieb Wolfgang Schuster 
> <schuster.wolfg...@gmail.com>:
> 
> 
>> Am 14.01.2015 um 17:50 schrieb Pablo Rodriguez <oi...@gmx.es>:
>> 
>> Dear list,
>> 
>> I have the following sample:
>> 
>>   \showframe
>>   \starttext
>>   {\setupbodyfont[120pt]My Title}
>>   \stoptext
>> 
>> Is there a way to make ConTeXt automatically calculate the size of the
>> \setupbodyfont, so that the passage fits exactly to text width?
> 
> \starttext
> 
> \WidthSpanningText{My Title}{\textwidth}{Serif}
> 
> \WidthSpanningText{My Title}{12cm}{MonoBold}
> 
> \WidthSpanningText{My Title}{14cm}{SansItalic}
> 
> \stoptext

Another solution is to use the \scale command:

\starttext
\scale[width=\textwidth]{My Title}
\stoptext

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
___________________________________________________________________________________

Reply via email to