Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread Wolfgang Schuster
The following solution which adds two additional keys (pageleft and pageright) is cleaner because it doesn’t have to overload commands. \unprotect \unexpanded\def\startregisterpages {\begingroup \dostarttagged\t!registerpages\empty \useregisterstyleandcolor\c!pagestyle\c!pagecolor

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread Hans Hagen
On 5/10/2018 12:35 PM, MF wrote: This is a more polite version, that lets you restore the original macros. \let\origstartregisterpages=\startregisterpages% \let\origstopregisterpages=\stopregisterpages% \def\setupregisterpagescommand#1{%

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
This is a more polite version, that lets you restore the original macros. \let\origstartregisterpages=\startregisterpages% \let\origstopregisterpages=\stopregisterpages% \def\setupregisterpagescommand#1{% \unexpanded\def\startregisterpages{\origstartregisterpages#1\bgroup }

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
Thanks Wolfgang and sorry if i reply to my mail, since i've downloaded yours on another PC. I've found these macros in strc-reg.mkiv, that are called right before and after the page numbers: \unexpanded\def\startregisterpages {\begingroup \dostarttagged\t!registerpages\empty

Re: [NTG-context] Vertical alignment in tabulate

2018-05-10 Thread Alexey Kryukov
On Thu, 10 May 2018 14:36:20 +0200 luigi scarso wrote: > > a minimal example could help . OK, it's simple: \starttext \starttabulate[|A{yes,verytolerant}p(4in)|A{flushleft,low}p|] \NC \input{knuth} \NC A small remark\NC\NR \stoptabulate \stoptext Here I would like to get the text in the

Re: [NTG-context] Vertical alignment in tabulate

2018-05-10 Thread luigi scarso
On Thu, May 10, 2018 at 2:30 PM, Alexey Kryukov wrote: > Hi, > > is it possible to specify a verticall alignment for a cell contents in > the tabulate environment? I have experimented with the A key, > but any options related with the vertical alignment seem to be > silently

[NTG-context] Vertical alignment in tabulate

2018-05-10 Thread Alexey Kryukov
Hi, is it possible to specify a verticall alignment for a cell contents in the tabulate environment? I have experimented with the A key, but any options related with the vertical alignment seem to be silently ignored here. -- Regards, Alexey Kryukov Moscow State University Faculty of History

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
\wordright is ok until the numbers don't exceed the text width. It manages these two cases right: Index term, and some text 21, 34, 45, 72 Index term, and some text 21, 34, 45, 72, 89 When the numbers exceed the text width, it fails: Index term, and some text 21, 34, 45, 72, 89, 101, 103,

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
> This would be a solution: > > Index term, and some > text > 21, 34, 45, 72, 89, >101, 103, 109 > > where the rule is: when the numbers exceed the text width, close the > paragraph, then start a new, right aligned one. > > So i wrote this: > >