ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* rscale (only for integers?)
@ 2011-03-31 15:22 Steffen Wolfrum
  2011-03-31 22:09 ` Thomas A. Schmitz
  0 siblings, 1 reply; 9+ messages in thread
From: Steffen Wolfrum @ 2011-03-31 15:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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] 9+ messages in thread

* Re: rscale (only for integers?)
  2011-03-31 15:22 rscale (only for integers?) Steffen Wolfrum
@ 2011-03-31 22:09 ` Thomas A. Schmitz
  2011-04-01  9:00   ` Steffen Wolfrum
  2011-04-01  9:36   ` Wolfgang Schuster
  0 siblings, 2 replies; 9+ messages in thread
From: Thomas A. Schmitz @ 2011-03-31 22:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


___________________________________________________________________________________
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] 9+ messages in thread

* Re: rscale (only for integers?)
  2011-03-31 22:09 ` Thomas A. Schmitz
@ 2011-04-01  9:00   ` Steffen Wolfrum
  2011-04-01  9:18     ` Thomas A. Schmitz
  2011-04-01  9:36   ` Wolfgang Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Steffen Wolfrum @ 2011-04-01  9:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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











___________________________________________________________________________________
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] 9+ messages in thread

* Re: rscale (only for integers?)
  2011-04-01  9:00   ` Steffen Wolfrum
@ 2011-04-01  9:18     ` Thomas A. Schmitz
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas A. Schmitz @ 2011-04-01  9:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________
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] 9+ messages in thread

* Re: rscale (only for integers?)
  2011-03-31 22:09 ` Thomas A. Schmitz
  2011-04-01  9:00   ` Steffen Wolfrum
@ 2011-04-01  9:36   ` Wolfgang Schuster
  2011-04-01 10:15     ` Steffen Wolfrum
  1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2011-04-01  9:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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] 9+ messages in thread

* Re: rscale (only for integers?)
  2011-04-01  9:36   ` Wolfgang Schuster
@ 2011-04-01 10:15     ` Steffen Wolfrum
  2011-04-01 17:23       ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Steffen Wolfrum @ 2011-04-01 10:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________
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] 9+ messages in thread

* Re: rscale (only for integers?)
  2011-04-01 10:15     ` Steffen Wolfrum
@ 2011-04-01 17:23       ` Wolfgang Schuster
  2011-04-01 17:28         ` Steffen Wolfrum
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2011-04-01 17:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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] 9+ messages in thread

* Re: rscale (only for integers?)
  2011-04-01 17:23       ` Wolfgang Schuster
@ 2011-04-01 17:28         ` Steffen Wolfrum
  2011-04-01 17:46           ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Steffen Wolfrum @ 2011-04-01 17:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________
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] 9+ messages in thread

* Re: rscale (only for integers?)
  2011-04-01 17:28         ` Steffen Wolfrum
@ 2011-04-01 17:46           ` Wolfgang Schuster
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2011-04-01 17:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2011-04-01 17:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31 15:22 rscale (only for integers?) Steffen Wolfrum
2011-03-31 22:09 ` Thomas A. Schmitz
2011-04-01  9:00   ` Steffen Wolfrum
2011-04-01  9:18     ` Thomas A. Schmitz
2011-04-01  9:36   ` Wolfgang Schuster
2011-04-01 10:15     ` Steffen Wolfrum
2011-04-01 17:23       ` Wolfgang Schuster
2011-04-01 17:28         ` Steffen Wolfrum
2011-04-01 17:46           ` 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).