rscale (only for integers?)
Hi, in a typescript I need to set sansserif font proportional bigger than serif font. Using "rscale"? As far as I have seen this only works when integers are used for bodyfont: \starttypescript [times] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=10.2] \stoptypescript \usetypescript[times] %\setupbodyfont[times,10pt] % <- try this ... \setupbodyfont[times,10.1pt] % <- ... and then this \starttext Test \ss{text} \stoptext Unfortunately the sizes for bodyfont and footnotes are specified by publisher (10.1pt and 8.5pt). Is there a chance to get rscale working even for theses decimal fractions? Steffen
On Mar 31, 2011, at 5:22 PM, Steffen Wolfrum wrote:
Hi,
in a typescript I need to set sansserif font proportional bigger than serif font. Using "rscale"? As far as I have seen this only works when integers are used for bodyfont:
\starttypescript [times] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=10.2] \stoptypescript
\usetypescript[times] %\setupbodyfont[times,10pt] % <- try this ... \setupbodyfont[times,10.1pt] % <- ... and then this
\starttext
Test \ss{text}
\stoptext
Unfortunately the sizes for bodyfont and footnotes are specified by publisher (10.1pt and 8.5pt).
Is there a chance to get rscale working even for theses decimal fractions?
Steffen
You need: \starttypescript [serif] [default] [size] \definebodyfont [10.1pt] [rm] [default] \stoptypescript \definebodyfontenvironment[10.1pt] But I doubt that there is any visible difference between 10pt and 10.1pt (and due to rounding errors, there may be no difference at all). Thomas
Am 01.04.2011 um 00:09 schrieb Thomas A. Schmitz:
On Mar 31, 2011, at 5:22 PM, Steffen Wolfrum wrote:
Hi,
in a typescript I need to set sansserif font proportional bigger than serif font. Using "rscale"? As far as I have seen this only works when integers are used for bodyfont:
\starttypescript [times] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=10.2] \stoptypescript
\usetypescript[times] %\setupbodyfont[times,10pt] % <- try this ... \setupbodyfont[times,10.5pt] % <- ... and then this
\starttext
Test \ss{text}
\stoptext
Unfortunately the sizes for bodyfont and footnotes are specified by publisher (10.5pt and 8.5pt).
Is there a chance to get rscale working even for theses decimal fractions?
Steffen
You need:
\starttypescript [serif] [default] [size] \definebodyfont [10.5pt] [rm] [default] \stoptypescript
\definebodyfontenvironment[10.5pt]
Ok, but something still is missing .... The bodyfont doesn't get bigger here: \starttypescript [times] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=10.2] \stoptypescript \starttypescript [serif] [default] [size] \definebodyfont [10.5pt] [rm] [default] \stoptypescript \definebodyfontenvironment[10.5pt] \usetypescript[times] \setupbodyfont[times,10.5pt] \setupfootnotes[bodyfont={rm,8.5pt}] \definestartstop[quote] [before={\setupnarrower[left=10pt,right=0pt]\startnarrower[left,right]\switchtobodyfont[8.5pt]\setupinterlinespace[line=10.5pt]},after={\stopnarrower}] \starttext Test {\ss text} test\footnote{text {\ss text} test} test. \startquote test {\ss text} \input ward \par \stopquote \stoptext ------- Steffen
On Apr 1, 2011, at 11:00 AM, Steffen Wolfrum wrote:
Ok, but something still is missing .... The bodyfont doesn't get bigger here:
\starttypescript [times] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=10.2] \stoptypescript
\starttypescript [serif] [default] [size] \definebodyfont [10.5pt] [rm] [default] \stoptypescript
\definebodyfontenvironment[10.5pt]
\usetypescript[times] \setupbodyfont[times,10.5pt]
\setupfootnotes[bodyfont={rm,8.5pt}]
\definestartstop[quote] [before={\setupnarrower[left=10pt,right=0pt]\startnarrower[left,right]\switchtobodyfont[8.5pt]\setupinterlinespace[line=10.5pt]},after={\stopnarrower}]
\starttext
Test {\ss text} test\footnote{text {\ss text} test} test.
\startquote test {\ss text} \input ward \par \stopquote
\stoptext
That's because you defined your bodyfont only for serif, so simply add \starttypescript [sans] [default] [size] \definebodyfont [10.5pt] [ss] [default] \stoptypescript Thomas
Am 01.04.2011 um 00:09 schrieb Thomas A. Schmitz:
On Mar 31, 2011, at 5:22 PM, Steffen Wolfrum wrote:
Hi,
in a typescript I need to set sansserif font proportional bigger than serif font. Using "rscale"? As far as I have seen this only works when integers are used for bodyfont:
\starttypescript [times] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=10.2] \stoptypescript
\usetypescript[times] %\setupbodyfont[times,10pt] % <- try this ... \setupbodyfont[times,10.1pt] % <- ... and then this
\starttext
Test \ss{text}
\stoptext
Unfortunately the sizes for bodyfont and footnotes are specified by publisher (10.1pt and 8.5pt).
Is there a chance to get rscale working even for theses decimal fractions?
Steffen
You need:
\starttypescript [serif] [default] [size] \definebodyfont [10.1pt] [rm] [default] \stoptypescript
\definebodyfontenvironment[10.1pt]
But I doubt that there is any visible difference between 10pt and 10.1pt (and due to rounding errors, there may be no difference at all).
It does also work when you switch to the “times” typeface *before* \starttext and change the size *after* \starttext: \definetypeface [times] [rm] [serif] [times] [default] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=2] \setupbodyfont[times] %\setupbodyfont[times,10.5pt] % fails \starttext %text {\ss text} \setupbodyfont[10.5pt] text {\ss text} \switchtobodyfont[8.5pt] text {\ss text} \stoptext Wolfgang
Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:
It does also work when you switch to the “times” typeface *before* \starttext and change the size *after* \starttext: ...
\setupbodyfont[times] ... \starttext ... \setupbodyfont[10.5pt]
An interesting distinction! Only, where is the corresponding point in context's project(-product/component)- structure? Probably not in included environment files. Maybe in the project file? Like this: \startproject MyProject % Here ? \product MyProduct % Or here ? \stopproject Steffen
Am 01.04.2011 um 12:15 schrieb Steffen Wolfrum:
Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:
It does also work when you switch to the “times” typeface *before* \starttext and change the size *after* \starttext: ...
\setupbodyfont[times] ... \starttext ... \setupbodyfont[10.5pt]
An interesting distinction!
Only, where is the corresponding point in context's project(-product/component)- structure? Probably not in included environment files.
Maybe in the project file? Like this:
\startproject MyProject
% Here ?
\product MyProduct
% Or here ?
\stopproject
As you process only the product or component the project file is wrong. When you process the product \startproduct is your \starttext and when you process only a single component \startcomponent is your \starttext. Wolfgang
Am 01.04.2011 um 19:23 schrieb Wolfgang Schuster:
Am 01.04.2011 um 12:15 schrieb Steffen Wolfrum:
Am 01.04.2011 um 11:36 schrieb Wolfgang Schuster:
It does also work when you switch to the “times” typeface *before* \starttext and change the size *after* \starttext: ...
\setupbodyfont[times] ... \starttext ... \setupbodyfont[10.5pt]
An interesting distinction!
Only, where is the corresponding point in context's project(-product/component)- structure? Probably not in included environment files.
Maybe in the project file? Like this:
\startproject MyProject
% Here ?
\product MyProduct
% Or here ?
\stopproject
As you process only the product or component the project file is wrong.
When you process the product \startproduct is your \starttext and when you process only a single component \startcomponent is your \starttext.
My aim was to find one solution that fits in both cases (once running only a component, then running the entire product). That's why I assumed the project file could serve for both. If this is not true: do I have to write your distinction into the product AND in each componend file?! Steffen
Am 01.04.2011 um 19:28 schrieb Steffen Wolfrum:
My aim was to find one solution that fits in both cases (once running only a component, then running the entire product).
You can set the font before \starttext where the typeface and the size are set with two separate \setupbodyfont commands: \definetypeface [times] [rm] [serif] [times] [default] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=2] \setupbodyfont[times] \setupbodyfont[10.1pt] \starttext text {\ss text} \stoptext or you use Thomas solution which works even when you set the font after \starttext (which is the case with products/components): \definetypeface [times] [rm] [serif] [times] [default] \definetypeface [times] [ss] [sans] [helvetica] [default] [rscale=2] \setupbodyfont[times] \setupbodyfont[10.1pt] \starttext text {\ss text} \stoptext
That's why I assumed the project file could serve for both.
No because the project is loaded too late. Wolfgang
participants (3)
-
Steffen Wolfrum
-
Thomas A. Schmitz
-
Wolfgang Schuster