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] font size switching

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 08:28 PM, Hans Hagen wrote:
> On 10/17/2016 8:14 PM, Pablo Rodriguez wrote:
>> [...]
>> I must confess, I haven’t checked the manual. But why doesn’t it happen
>> the same with other commands?
>>
>> \starttext
>> \startTEXpage[offset=1em]
>> Default {\tfb Larger} {\tfd Larger 1} \\
>> Default \tfb Larger \tfd Larger 2
>> \stopTEXpage
>> \stoptext
> 
> looks quite ok to me ... grouping works as expected

Hans,

I totally agree.

The point I was trying to make is that ungrouped font size switches
behave different if when fixed and when not fixed.


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
___

[NTG-context] Hanging hyphen in the left margin in Portuguese

2016-10-17 Thread Marcus Vinicius Mesquita
Dear list,

In Portuguese many times we have words with one or two explicit hyphens;
for example: “tornar-nos-emos” (we shall become). When at the end of a
line, it
is mandatory to repeat the explicit hyphen both at the end and in the
beginning of the next line. I managed to do this using:

\definebreakpoints[portuguese]
\definebreakpoint [portuguese] [-] [type=5,left=-,right=-,middle=-]
\setbreakpoints[portuguese]

If I use
\setupalign[hz,hanging]
I get the first hyphen hanging in the right margin.

My question is: How do I manage to have the second hyphen in the beginning
of the new line also hanging to the left in the left margin?

TIA

Marcus Vinicius
___
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] font size switching

2016-10-17 Thread Hans Hagen

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

On 10/17/2016 07:58 PM, Thomas A. Schmitz wrote:

On 10/17/2016 07:31 PM, Csikos Bela wrote:

[...]
then I have Smaller1 in (x) size and Smaller2 in default size. Why?
I would expect Smaller2 to be in (x) size too (as the manual implies).


I'm not sure where you found the sentence you copied in your first mail.
My copy of contextref.pdf says p. 107: "The various commands will adapt
themselves to the actual setup of font and size." Which is exactly what
you see.


Hi Thomas,

I must confess, I haven’t checked the manual. But why doesn’t it happen
the same with other commands?

\starttext
\startTEXpage[offset=1em]
Default {\tfb Larger} {\tfd Larger 1} \\
Default \tfb Larger \tfd Larger 2
\stopTEXpage
\stoptext


looks quite ok to me ... grouping works as expected

\starttext

\startTEXpage[offset=1em]
Default {\tfb Larger} normal {\tfd Larger 1} \\
Default  \tfb Larger  normal  \tfd Larger 2
\stopTEXpage

\stoptext

-
  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
___

[NTG-context] bug in font size switches?

2016-10-17 Thread Pablo Rodriguez
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?

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] font size switching

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 07:58 PM, Thomas A. Schmitz wrote:
> On 10/17/2016 07:31 PM, Csikos Bela wrote:
>> [...]
>> then I have Smaller1 in (x) size and Smaller2 in default size. Why?
>> I would expect Smaller2 to be in (x) size too (as the manual implies).
>>
> I'm not sure where you found the sentence you copied in your first mail. 
> My copy of contextref.pdf says p. 107: "The various commands will adapt 
> themselves to the actual setup of font and size." Which is exactly what 
> you see.

Hi Thomas,

I must confess, I haven’t checked the manual. But why doesn’t it happen
the same with other commands?

\starttext
\startTEXpage[offset=1em]
Default {\tfb Larger} {\tfd Larger 1} \\
Default \tfb Larger \tfd Larger 2
\stopTEXpage
\stoptext


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
___

Re: [NTG-context] font size switching

2016-10-17 Thread Thomas A. Schmitz

On 10/17/2016 07:31 PM, Csikos Bela wrote:

Do you mean it's better to use e.g. {\bf some text} then \bf{some text}?


The latter is not valid syntax. You want to read the wiki section on 
font switching: http://wiki.contextgarden.net/Font_Switching





>x and xx are different font sizes, not x repeated (it could have been
>named y or w instead). Here you have the difference:
>
>\starttext
>default, {\tfx smaller (x) {\tfx not smaller (x again)}}
>
>default, {\tfx smaller (x) {\tfxx smaller (xx now)}}
>\stoptext

I know this. What I don't understand is that if I have the code:

\starttext
Default {\tfa Larger} {\tfx Smaller1} \\
Default \tfa Larger \tfx Smaller2
\stoptext

then I have Smaller1 in (x) size and Smaller2 in default size. Why?
I would expect Smaller2 to be in (x) size too (as the manual implies).

I'm not sure where you found the sentence you copied in your first mail. 
My copy of contextref.pdf says p. 107: "The various commands will adapt 
themselves to the actual setup of font and size." Which is exactly what 
you see.



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

Re: [NTG-context] Becoming a TeX/ConTeXt poweruser

2016-10-17 Thread Hans Hagen

On 10/17/2016 7:19 PM, Pablo Rodriguez wrote:

On 10/17/2016 05:46 AM, Jamie Macbeth wrote:

Hello,

I was fed up with LaTeX, and became a newbie user of ConTeXt, and I
think it's great and I really agree with the philosophy.


Hi Jamie,

I’m also another newbie (I switched to ConTeXt years ago ;-)), although
I cannot code myself :-(.

One of the features I value most is direct typesetting of XML sources.


I know that \startitemize ...\stopitemize is very customizable, but I
would like to learn ConTeXt by learning how I could, for example, build
the itemize environment myself from scratch.  Can someone give me
pointers on the best place to start?  Then I can learn the code on my
own (and not be a pest on this list :) ).


If you want to go the hard way (it would be the impossible way for me
:-)), tex/texmf-context/tex/context/base/mkiv/strc-itm.mkvi may be the
file you are looking for.

The wiki offers some explanation on the topic
(http://wiki.contextgarden.net/Enumerations). You might be interested in
improving it.

Just in case it helps,


(1) unfortunately the itemize mechanism is one of the oldest mechanisms 
so it has some of the rudiments of small memory, limitations on 
registers and macros etc; i probably have to rewrite it to get it 
cleaner but it then can break compatibility so for now i leave the code 
as it is


(2) watching the code with the same editor lexing as I do helps (one can 
typeset the code with "context --extra=listing --scite --verycompact 
somefile.mkiv" to get an idea



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] font size switching

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 07:31 PM, Csikos Bela wrote:
> Pablo Rodriguez írta:
>> [...]
>> BTW, font (and language) commands are switches, so they don’t require
>> text enclosed in parentheses (such as \emph{} in LaTeX). I would
>> discourage the use of \tfn, but you’re on your own.
> 
> Do you mean it's better to use e.g. {\bf some text} then \bf{some text}?

No, I mean that {\bf text} is the only way of using it (afaIk, this is
TeX). See the code:

\starttext
\bf{text} tesafe
\stoptext

All text in the sample is in bold font.

> [...]
> I know this. What I don't understand is that if I have the code:
> 
> \starttext
> Default {\tfa Larger} {\tfx Smaller1} \\
> Default \tfa Larger \tfx Smaller2
> \stoptext
> 
> then I have Smaller1 in (x) size and Smaller2 in default size. Why?
> I would expect Smaller2 to be in (x) size too (as the manual implies).

As far as I can understand, this might be a bug (or an inconsistency in
font size handling, at least). Isn’t it, Wolfgang?

I hope it helps,

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] font size switching

2016-10-17 Thread Csikos Bela
Pablo Rodriguez írta:
>On 10/17/2016 06:15 PM, Csikos Bela wrote:
>> Dear context users:
>> 
>> It seems to me that some of the the font size switching commands do not work
>> as described in the context reference manual (contextref.pdf, 27/09/2013), 
>> e.g.
>>  \tfx. The manual writes on page 109 that "Note that these commands select
>> font sizes relative to the default, not relative to whatever font size is 
>> currently in
>> effect." But in my case \tfx switches to smaller compared to the size in 
>> effect, and
>> not smaller compared to default size.
>> 
>> In additions I couldn't find command for returning to default size after a 
>> font switching
>> command. How to switch (back) to normal size? 
>
>Hi Csikos,
>
>there is a workaround for that:
>
>\definefontsize[n]
>\setupbodyfontenvironment[default][n=1]
>
>And then use \tfn.

OK, I see. Thanks.

>
>BTW, font (and language) commands are switches, so they don’t require
>text enclosed in parentheses (such as \emph{} in LaTeX). I would
>discourage the use of \tfn, but you’re on your own.

Do you mean it's better to use e.g. {\bf some text} then \bf{some text}?

>x and xx are different font sizes, not x repeated (it could have been
>named y or w instead). Here you have the difference:
>
>\starttext
>default, {\tfx smaller (x) {\tfx not smaller (x again)}}
>
>default, {\tfx smaller (x) {\tfxx smaller (xx now)}}
>\stoptext

I know this. What I don't understand is that if I have the code:

\starttext
Default {\tfa Larger} {\tfx Smaller1} \\
Default \tfa Larger \tfx Smaller2
\stoptext

then I have Smaller1 in (x) size and Smaller2 in default size. Why?
I would expect Smaller2 to be in (x) size too (as the manual implies).

Thank you in advance,

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] Becoming a TeX/ConTeXt poweruser

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 05:46 AM, Jamie Macbeth wrote:
> Hello,
> 
> I was fed up with LaTeX, and became a newbie user of ConTeXt, and I
> think it's great and I really agree with the philosophy.

Hi Jamie,

I’m also another newbie (I switched to ConTeXt years ago ;-)), although
I cannot code myself :-(.

One of the features I value most is direct typesetting of XML sources.

> I know that \startitemize ...\stopitemize is very customizable, but I
> would like to learn ConTeXt by learning how I could, for example, build
> the itemize environment myself from scratch.  Can someone give me
> pointers on the best place to start?  Then I can learn the code on my
> own (and not be a pest on this list :) ).

If you want to go the hard way (it would be the impossible way for me
:-)), tex/texmf-context/tex/context/base/mkiv/strc-itm.mkvi may be the
file you are looking for.

The wiki offers some explanation on the topic
(http://wiki.contextgarden.net/Enumerations). You might be interested in
improving it.

Just in case it helps,


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] font size switching

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 06:15 PM, Csikos Bela wrote:
> Dear context users:
> 
> It seems to me that some of the the font size switching commands do not work
> as described in the context reference manual (contextref.pdf, 27/09/2013), 
> e.g.
>  \tfx. The manual writes on page 109 that "Note that these commands select
> font sizes relative to the default, not relative to whatever font size is 
> currently in
> effect." But in my case \tfx switches to smaller compared to the size in 
> effect, and
> not smaller compared to default size.
> 
> In additions I couldn't find command for returning to default size after a 
> font switching
> command. How to switch (back) to normal size? 

Hi Csikos,

there is a workaround for that:

\definefontsize[n]
\setupbodyfontenvironment[default][n=1]

And then use \tfn.

BTW, font (and language) commands are switches, so they don’t require
text enclosed in parentheses (such as \emph{} in LaTeX). I would
discourage the use of \tfn, but you’re on your own.

x and xx are different font sizes, not x repeated (it could have been
named y or w instead). Here you have the difference:

\starttext
default, {\tfx smaller (x) {\tfx not smaller (x again)}}

default, {\tfx smaller (x) {\tfxx smaller (xx now)}}
\stoptext

BTW, default body font size is 12pt. I realized when I added and
commented the following command in the preamble:

\setupbodyfont[12pt]

Just in case it helps,

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
___

[NTG-context] font size switching

2016-10-17 Thread Csikos Bela
Dear context users:

It seems to me that some of the the font size switching commands do not work
as described in the context reference manual (contextref.pdf, 27/09/2013), e.g.
 \tfx. The manual writes on page 109 that "Note that these commands select
font sizes relative to the default, not relative to whatever font size is 
currently in
effect." But in my case \tfx switches to smaller compared to the size in effect, 
and
not smaller compared to default size.

In additions I couldn't find command for returning to default size after a font 
switching
command. How to switch (back) to normal size? 

Here is an MWE:

\starttext

default, {\tfa larger (a)}, {\tfb larger (b)}, {\tfc larger (c)}, {\tfd larger 
(d)}

default, {\tfx smaller (x)}, {\tfxx smaller (xx)}

This is normal text, (default 10pt).
{\tfa This is larger (a).}
Normal again.
{\tfx This is smaller, (x).}

This is normal size.
\bfa This is larger bold (a).
\tf This is normal larger (a), \backslash tf doesn't change size.

How to switch back to normal size, if there is no suffix for normal size?

\tfx And why isn't this smaller (x) if the suffix changes size relative to 
default size
as the manual states?

\stoptext


Thank you in advance,

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
___