Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Wolfgang Schuster

Willi Egger 
29. März 2016 um 15:11
Hi,

hm, I am a little puzzled…

If I am correct then one should be able to enable the font feature 
tnum for the page-numbers with “pagecommand=“.


I have

\setuphead
[section]
[aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, 
after={\godown[-1\lineheight]}, number=no]


\setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}]

However if I do this then I get the pagenumber prefixed with ‘section’ 
e.g.


bbb bar buch bühne section3

What am I doing in the wrong way?

\setuplist[chapter][pagestyle={\feature[=][tabularnumbers]}]

\definefontfeature[default][default][onum=yes]

\setupbodyfont[pagella]

\starttext

\setcounter[userpage][100]

\completecontent

\dorecurse{20}{\expanded{\chapter{Chapter \recurselevel}}}

\stoptext

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

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
Wolfgang!

Many thanks for this! - I get the result I wanted to.

Kind regards

Willi
> On 29 mrt. 2016, at 17:33, Wolfgang Schuster  
> wrote:
> 
>> Willi Egger  29. März 2016 um 15:11
>> Hi,
>> 
>> hm, I am a little puzzled…
>> 
>> If I am correct then one should be able to enable the font feature tnum for 
>> the page-numbers with “pagecommand=“.
>> 
>> I have 
>> 
>> \setuphead
>> [section]
>> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, 
>> after={\godown[-1\lineheight]}, number=no]
>> 
>> \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}]
>> 
>> However if I do this then I get the pagenumber prefixed with ‘section’ e.g. 
>> 
>> bbb bar buch bühne section3
>> 
>> What am I doing in the wrong way?
> \setuplist[chapter][pagestyle={\feature[=][tabularnumbers]}]
> 
> \definefontfeature[default][default][onum=yes]
> 
> \setupbodyfont[pagella]
> 
> \starttext
> 
> \setcounter[userpage][100]
> 
> \completecontent
> 
> \dorecurse{20}{\expanded{\chapter{Chapter \recurselevel}}}
> 
> \stoptext
> 
> ___
> 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
> ___

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

Re: [NTG-context] Bug/change in fillinrules

2016-03-29 Thread Wolfgang Schuster

Mari Voipio 
29. März 2016 um 14:13
Hello,

after I updated to about newest ConTeXt, I found out that \fillinrules
doesn't work any more as expected, i.e. instead of filling the rest of
the first line, the rule now starts on the second line, below the text
that precedes \fillinrules. This doesn't match the behaviour indicated
in http://wiki.contextgarden.net/Command/fillinrules . Is this a bug
or should I change something in my code? Now I have


\setupfillinrules
[n=1, %one rule per command \fillinrules
width=broad] %leaves some space between the text and the line

\starttext

\fillinrules{Refractometer serial no:}
\fillinrules{Customer:}
\fillinrules{Address:}
\fillinrules{Fax:}
\fillinrules{Email:}
\fillinrules{Sample description:}
\fillinrules{Solvent (water/other):}
\fillinrules{Laboratory method:}
\fillinrules{Date:}
\fillinrules{Data collected by:}

\stoptext
It’s a \thinrules bug which inserts a line break when you have only a 
single line.


\starttext

Left \thinrules[n=1] Right

\blank

Left \thinrules[n=2] Right

\blank

Left \thinrules[n=3] Right

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

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
Hello Wolfgang,

I used your solution. However I think instead of an “=“ it should be “+”.

I wikified this issue.

Kind regards

Willi
> On 29 mrt. 2016, at 17:48, Willi Egger  wrote:
> 
> Wolfgang!
> 
> Many thanks for this! - I get the result I wanted to.
> 
> Kind regards
> 
> Willi
>> On 29 mrt. 2016, at 17:33, Wolfgang Schuster  
>> wrote:
>> 
>>> Willi Egger  29. März 2016 um 15:11
>>> Hi,
>>> 
>>> hm, I am a little puzzled…
>>> 
>>> If I am correct then one should be able to enable the font feature tnum for 
>>> the page-numbers with “pagecommand=“.
>>> 
>>> I have 
>>> 
>>> \setuphead
>>> [section]
>>> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, 
>>> after={\godown[-1\lineheight]}, number=no]
>>> 
>>> \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}]
>>> 
>>> However if I do this then I get the pagenumber prefixed with ‘section’ e.g. 
>>> 
>>> bbb bar buch bühne section3
>>> 
>>> What am I doing in the wrong way?
>> \setuplist[chapter][pagestyle={\feature[=][tabularnumbers]}]
>> 
>> \definefontfeature[default][default][onum=yes]
>> 
>> \setupbodyfont[pagella]
>> 
>> \starttext
>> 
>> \setcounter[userpage][100]
>> 
>> \completecontent
>> 
>> \dorecurse{20}{\expanded{\chapter{Chapter \recurselevel}}}
>> 
>> \stoptext
>> 
>> ___
>> 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
>> ___
> 
> ___
> 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
> ___

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

Re: [NTG-context] Hanging punctuation misalignment in footnotes

2016-03-29 Thread Jan Tosovsky
On 2014-02-23 Wolfgang Schuster wrote:
> On 2014-02-22 Jan Tosovsky wrote: 
> > On 2014-02-22 Jan Tosovsky wrote:
> >>
> >> when hanging in footnotes is enabled and the starting character 
> >> is a punctuation, it is not protruded. However, the same character 
> >> in the footnote body works fine. When both cases are close each 
> >> other, it looks weird, see the screenshot:
> >>
> >> http://drifted.in/other/footnote_alignment.png
> >
> > A minimal example is available at
> > http://drifted.in/other/sample.tex
> 
> One problem is the way how context places the footnote number in 
> front of the text, by default context uses the \llap command to move 
> the number into the left margin but this prevents also the protrusion
> of the opening quote. You can avoid this problem when you change the
> footnote setup to \setupnotation[footnote][alternative=margin].
> 

Placing labels into margin seems to be a default settings. 

> 
> The second problem which prevents the opening quote to protrude are
> the struts which are added by context at the begin and end of the 
> footnote content and there is no way to disable them because they are 
> needed to have proper spacing between the individual footnote texts 
> on the same page.
> 

Hans quote from another thread:
>
> for the footnote case there is no real solution as the heuristics of
> finding a protrusion character cannot be tricked too much without
> breaking it in other cases
> 
> but ... i think i can cook up something extra in the engine to drive
> the process

I can't reproduce the original issue in the latest beta (0.90). Was there
something improved in this regard?

It looks really great!

Many thanks, 

Jan


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

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Wolfgang Schuster

Willi Egger 
29. März 2016 um 20:29
Hello Wolfgang,

I used your solution. However I think instead of an “=“ it should be “+”.

No, the = was intentional because I had to get rid of the onum setting.

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
___

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
I underrstand this, however then I do not get tabular figures…

Willi
> On 29 mrt. 2016, at 20:36, Wolfgang Schuster  
> wrote:
> 
>> Willi Egger 29. März 2016 um 20:29
>> Hello Wolfgang,
>> 
>> I used your solution. However I think instead of an “=“ it should be “+”.
> No, the = was intentional because I had to get rid of the onum setting.
> 
> 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
> ___

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

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Wolfgang Schuster

Willi Egger 
29. März 2016 um 20:38
I underrstand this, however then I do not get tabular figures…

Do you want them for oldstyle figures or lining figures.

\definefontfeature [onum+pnum] [onum=yes,lnum=no,pnum=yes,tnum=no]
\definefontfeature [onum+tnum] [onum=yes,lnum=no,pnum=no,tnum=yes]
\definefontfeature [lnum+pnum] [onum=no,lnum=yes,pnum=yes,tnum=no]
\definefontfeature [lnum+tnum] [onum=no,lnum=yes,pnum=no,tnum=yes]

\setupbodyfont[pagella]

\starttext

\starttabulate[|f{\addfeature{onum+pnum}}r|f{\addfeature{onum+tnum}}r|f{\addfeature{lnum+pnum}}r|f{\addfeature{lnum+tnum}}r|]
\dorecurse{100}{\NC \vrule\threedigits{##1}\vrule \NC 
\vrule\threedigits{##1}\vrule \NC \vrule\threedigits{##1}\vrule \NC 
\vrule\threedigits{##1}\vrule \NC\NR}

\stoptabulate

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

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
Hello Wolfgang,

indeed if one uses pagella it is true what you say.
If I use Seravek, which has oldstuyle figures also, then it does not work in 
the same way.

I tested with \addfeature[oldstyle] which is defined as 
\definefontfeature[oldstyle][default][sript=latn,onum=yes]

With this feature enabled I get oldstyle figures in the text but proportional 
numbers in de TOC, not oldstyle.

Normally I have oldstyle not enabled. So when i use the + instead of the = then 
I get tabular figures.

May be that there is something organized differently in the two fonts?

Thank you for your solution.

Willi

> On 29 mrt. 2016, at 20:36, Wolfgang Schuster  
> wrote:
> 
>> Willi Egger 29. März 2016 um 20:29
>> Hello Wolfgang,
>> 
>> I used your solution. However I think instead of an “=“ it should be “+”.
> No, the = was intentional because I had to get rid of the onum setting.
> 
> 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
> ___

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

[NTG-context] Bug/change in fillinrules

2016-03-29 Thread Mari Voipio
Hello,

after I updated to about newest ConTeXt, I found out that \fillinrules
doesn't work any more as expected, i.e. instead of filling the rest of
the first line, the rule now starts on the second line, below the text
that precedes \fillinrules. This doesn't match the behaviour indicated
in http://wiki.contextgarden.net/Command/fillinrules . Is this a bug
or should I change something in my code? Now I have


\setupfillinrules
[n=1, %one rule per command \fillinrules
width=broad] %leaves some space between the text and the line

\starttext

\fillinrules{Refractometer serial no:}
\fillinrules{Customer:}
\fillinrules{Address:}
\fillinrules{Fax:}
\fillinrules{Email:}
\fillinrules{Sample description:}
\fillinrules{Solvent (water/other):}
\fillinrules{Laboratory method:}
\fillinrules{Date:}
\fillinrules{Data collected by:}

\stoptext


The resulting pdf is attached.


Thank you for your help,

Mari


fillinrules.pdf
Description: Adobe PDF document
___
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
___

[NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
Hi,

hm, I am a little puzzled…

If I am correct then one should be able to enable the font feature tnum for the 
page-numbers with “pagecommand=“.

I have 

\setuphead
[section]
[aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, 
after={\godown[-1\lineheight]}, number=no]

\setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}]

However if I do this then I get the pagenumber prefixed with ‘section’ e.g. 

bbb bar buch bühne  section3

What am I doing in the wrong way?


Kind regards

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

[NTG-context] Luatex 0.90.0 announcement

2016-03-29 Thread luigi scarso
==
LuaTeX Release 0.90.0 was released 2016032512
==

This is the version that will go on TeX Live 2016

- mostly small bug fixes
- a few setters/getters added to the pdf namespace (were in the tex one
before)
- a few patches to the lua interface macros
- a bit more control over protrusion edges
- no fundamental changes


As usual,
the archives can be downloaded from supelec:

https://foundry.supelec.fr/projects/luatex/

You could also check out the sources via anonymous svn:
 svn co --username anonsvn --password anonsvn
https://foundry.supelec.fr/svn/luatex/tags/beta-0.90.0

Bugs and feature requests can be added to the issue tracker at

   http://tracker.luatex.org



Have fun,
Hans, Luigi, Taco
___
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
___