Re: [NTG-context] bug in font size switches?

2016-10-20 Thread Csikos Bela
Pablo Rodriguez írta:
>Dear list,
>
>from the previous message from Csikos, I have generated the following
>sample:
>
>\setupbodyfontenvironment[default][a=5, x=8, xx=6]
>\starttext
>Default {\tfa Larger} {\tfx Smaller1} {\tfxx Smaller1} \\
>Default \tfa Larger \tfx Smaller2 \tfxx Smaller2
>\stoptext
>
>I can set a different value for a, but not for x or xx. The values for x
>and xx seem to be hardcoded.

Just for clarity, my problem was not that I couldn't change the value of x and 
xx.
My problem was that \tfx and \tfxx behave differently than \tfa \tfb etc.
I expected that \tfx and \tfxx change the font size to x and xx size compared to
the default/normal size and not compared to the currently used/environment
font size. According to the reference manual that would be the expected 
behavior. 
The reference manual [pages 106-107 (108-109 pdf pages)] writes:

"Besides these two-letter commands, there is a series of font selector commands 
with a
size suffix attached. Some examples of that are:
\tfx \bfx \slx \itx
\tfa \tfb \tfc \tfd \tfxx
The a suffix selects a somewhat larger font size than the default. Each of the 
ordered
alphabetic suffixes a, b, … select a somewhat larger actual font than the 
previous suffix. The x and xx suffixes select smaller and yet smaller versions. 
Note that these commands select font sizes relative to the default, not 
relative to whatever font size is currently in effect."

I don't see how the fixed values for x and xx is related to this.

Best regards,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in font size switches?

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 08:33 PM, Hans Hagen wrote:
>> [...]
>> If this isn’t a bug, what am I missing here?
> 
> that the x/xx sized are automatic adaptions of tf bf sl it ..., so: \bf 
> \tx is the same as \bfx:
> 
>  test {\bf \tx test} test {\bfx test}
> 
> but using \tx is more flexible (as it adapts)

Many thanks for the tip, Hans.


Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in font size switches?

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 08:30 PM, Hans Hagen wrote:
> On 10/17/2016 8:24 PM, Pablo Rodriguez wrote:
>> [...]
>> I know that a simple workaround would be to set the font size another
>> value, but why do x and xx fixed values and not a, b, c and d?
>>
>> I mean (I’m only trying to understand), why are only those two values
>> (form the letter series) fixed?
> 
> because they are the text counterparts of the smaller math sizes (those 
> are fixed too) ... think of \high and \low usage

Many thanks for your reply, Hans.

Now I understand why it happens.


Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in font size switches?

2016-10-17 Thread Hans Hagen

On 10/17/2016 8:07 PM, Pablo Rodriguez wrote:

Dear list,

from the previous message from Csikos, I have generated the following
sample:

\setupbodyfontenvironment[default][a=5, x=8, xx=6]
\starttext
Default {\tfa Larger} {\tfx Smaller1} {\tfxx Smaller1} \\
Default \tfa Larger \tfx Smaller2 \tfxx Smaller2
\stoptext

I can set a different value for a, but not for x or xx. The values for x
and xx seem to be hardcoded.

If this isn’t a bug, what am I missing here?


that the x/xx sized are automatic adaptions of tf bf sl it ..., so: \bf 
\tx is the same as \bfx:


test {\bf \tx test} test {\bfx test}

but using \tx is more flexible (as it adapts)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in font size switches?

2016-10-17 Thread Hans Hagen

On 10/17/2016 8:24 PM, Pablo Rodriguez wrote:

On 10/17/2016 08:10 PM, Wolfgang Schuster wrote:

Pablo Rodriguez 17. Oktober 2016 um 20:07
[...]
If this isn’t a bug, what am I missing here?


The default sizes (12pt, 11pt etc.) have fixed values for x and xx, you
can see them in font-pre.mkiv:

\definebodyfontenvironment
  [\!!twelvepoint]
  [\s!text=\!!twelvepoint,
 \s!script=\!!ninepoint,
   \s!scriptscript=\!!sevenpoint,
  \s!x=\!!tenpoint,
 \s!xx=\!!eightpoint,
\v!big=\!!fourteenpointfour,
  \v!small=\!!tenpoint]


Wolfgang,

many thanks for your help. I was reading that file.

I know that a simple workaround would be to set the font size another
value, but why do x and xx fixed values and not a, b, c and d?

I mean (I’m only trying to understand), why are only those two values
(form the letter series) fixed?


because they are the text counterparts of the smaller math sizes (those 
are fixed too) ... think of \high and \low usage


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in font size switches?

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 08:10 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 17. Oktober 2016 um 20:07
>> [...]
>> If this isn’t a bug, what am I missing here?
> 
> The default sizes (12pt, 11pt etc.) have fixed values for x and xx, you
> can see them in font-pre.mkiv:
> 
> \definebodyfontenvironment
>   [\!!twelvepoint]
>   [\s!text=\!!twelvepoint,
>  \s!script=\!!ninepoint,
>\s!scriptscript=\!!sevenpoint,
>   \s!x=\!!tenpoint,
>  \s!xx=\!!eightpoint,
> \v!big=\!!fourteenpointfour,
>   \v!small=\!!tenpoint]

Wolfgang,

many thanks for your help. I was reading that file.

I know that a simple workaround would be to set the font size another
value, but why do x and xx fixed values and not a, b, c and d?

I mean (I’m only trying to understand), why are only those two values
(form the letter series) fixed?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in font size switches?

2016-10-17 Thread Wolfgang Schuster

Pablo Rodriguez 
17. Oktober 2016 um 20:07
Dear list,

from the previous message from Csikos, I have generated the following
sample:

\setupbodyfontenvironment[default][a=5, x=8, xx=6]
\starttext
Default {\tfa Larger} {\tfx Smaller1} {\tfxx Smaller1} \\
Default \tfa Larger \tfx Smaller2 \tfxx Smaller2
\stoptext

I can set a different value for a, but not for x or xx. The values for x
and xx seem to be hardcoded.

If this isn’t a bug, what am I missing here?
The default sizes (12pt, 11pt etc.) have fixed values for x and xx, you 
can see them in font-pre.mkiv:


\definebodyfontenvironment
  [\!!twelvepoint]
  [\s!text=\!!twelvepoint,
 \s!script=\!!ninepoint,
   \s!scriptscript=\!!sevenpoint,
  \s!x=\!!tenpoint,
 \s!xx=\!!eightpoint,
\v!big=\!!fourteenpointfour,
  \v!small=\!!tenpoint]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___