Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Henning Hraban Ramm via ntg-context
t;animals --> dogs" under "a". I’d suggest to cook your own macro, e.g. for a book with a lot of person index entries, I used a lookup table to unify different spellings or name changes (married, titles etc.) like this: """% environment: \loadluafile[lookups] %

Re: [NTG-context] sorting for particular sub entries to register

2022-02-01 Thread jbf via ntg-context
in every instance? \setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD] \defineprocessor[special][style=italic] \starttext P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)} B\index[Plenary+beriti]{Plenary Council+{\it beriti} (experts)} A\index[Plenary+aeriti]{Plenary Council

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread Robert via ntg-context
t; \setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD] >> \defineprocessor[special][style=italic] >> >> \starttext >> P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)} >> B\index[Plenary+beriti]{Plenary Council+{\it beriti} (experts)} >> A\index

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread jbf via ntg-context
Reviczky wrote: Hi Julian, How about using the keys in every instance? \setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD] \defineprocessor[special][style=italic] \starttext P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)} B\index[Plenary+beriti]{Plenary Council+{\it beriti

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread Adam Reviczky via ntg-context
Hi Julian, How about using the keys in every instance? \setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD] \defineprocessor[special][style=italic] \starttext P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)} B\index[Plenary+beriti]{Plenary Council+{\it beriti} (experts

[NTG-context] sorting for particular sub entries to register

2022-01-31 Thread jbf via ntg-context
. The processor is not for the 'periti' case above but I use it for book titles. \setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD] \defineprocessor[special][style=italic] In the periti case it is the \it command that clearly interferes with correct alphabetic positioning in the sub entry

Re: [NTG-context] registers, how to ignore quote marks

2022-01-28 Thread Adam Reviczky via ntg-context
l one? > > My index setup at the moment is as follows: > > \defineregister[index][compress=yes] > > \setupregister[index][n=1] > > \defineprocessor[special][style=italic] > > The only hint I could gain from the wiki was that it might depend on using > a method key in

[NTG-context] registers - only part of an entry to be italics

2022-01-28 Thread jbf via ntg-context
Let me add one more difficulty I have come across with registers. I need the title of a book to be in italics (and know exactly how to do that with \defineprocessor), but the author's name to follow is to be normal, not italic. So I need: /book name/, author name. I tried setting up a second

[NTG-context] registers, how to ignore quote marks

2022-01-28 Thread jbf via ntg-context
] \defineprocessor[special][style=italic] The only hint I could gain from the wiki was that it might depend on using a method key in \setupregister, but I could not see which to use. Tried a few and got weird results. Julian

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-31 Thread Wolfgang Schuster via ntg-context
in the block. Another possible method is to shift the title to the right with the \offset command and increase the distance between the title and the following text. \defineprocessor [upright] [style=normal] \defineconversionset [upright-n] [] [upright->n] \defineenumeration   [rem

Re: [NTG-context] Indexing redux

2021-08-26 Thread Rik Kabel via ntg-context
o turn checking on or off, so that generic directives (in the example, see also specific breeds) will not generate an error, while the Ford Prefect example will generate an error.    \defineprocessor[also][color=blue]    \defineprocessor[under][color=green]    \defineprocessor[alsoun

Re: [NTG-context] TOC labeltext and no partlabel

2021-08-25 Thread Adam Reviczky via ntg-context
conversionset [bodypart:chapternumber] [] [bodypartnumber->n] > \defineconversionset [appendix:chapternumber] [] [appendixnumber->A] > > \setuphead >[chapter] >[sectionconversionset=chapternumber] > > \startsectionblockenvironment [frontpart] > >

Re: [NTG-context] TOC labeltext and no partlabel

2021-08-25 Thread Wolfgang Schuster via ntg-context
number] \startsectionblockenvironment [frontpart] \defineprocessor [bodypartnumber] [left=Chapter~] \defineprocessor [appendixnumber] [left=Appendix~] \stopsectionblockenvironment \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Bodypart} \stopbody

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread jbf
the page number as well? Perhaps not, but worth asking the question anyway! Julian On 8/1/21 9:46 am, Jairo A. del Rio wrote: Hi. In latest LMTX (2021.01.07 16:59), your example works as expected: \defineregister[myindex] \defineprocessor[style][style=italic]%Isn't ano

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread Jairo A. del Rio
:46 am, Jairo A. del Rio wrote: > > Hi. In latest LMTX (2021.01.07 16:59), your example works as expected: > > \defineregister[myindex] > > \defineprocessor[style][style=italic]%Isn't another name available? > > \starttext > > In \myindex{style->Observer, The}{\em The

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread jbf
:59), your example works as expected: \defineregister[myindex] \defineprocessor[style][style=italic]%Isn't another name available? \starttext In \myindex{style->Observer, The}{\em The Observer} of 31 July 2018 \placemyindex% \stoptext Jairo El jue, 7 de ene. de 2021 a la(s) 17:29, jbf (

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread jbf
:59), your example works as expected: \defineregister[myindex] \defineprocessor[style][style=italic]%Isn't another name available? \starttext In \myindex{style->Observer, The}{\em The Observer} of 31 July 2018 \placemyindex% \stoptext Jairo El jue, 7 de ene. de 2021 a la(s) 17:29, jbf (

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread Jairo A. del Rio
Hi. In latest LMTX (2021.01.07 16:59), your example works as expected: \defineregister[myindex] \defineprocessor[style][style=italic]%Isn't another name available? \starttext In \myindex{style->Observer, The}{\em The Observer} of 31 July 2018 \placemyindex% \stoptext Jairo El jue, 7 de

[NTG-context] styling part of an index entry

2021-01-07 Thread jbf
. The Observer MWE \defineregister[myindex] \defineprocessor[style][style=italic] \starttext In \myindex{style->Observer, The} {\em The Observer} of 31 July 2018 \stoptext The only result I am getting is: ->Observer, The   223 But what I want is /Observer, The/ (in other words, in i

Re: [NTG-context] force index entries without page number

2020-11-07 Thread Henning Hraban Ramm
e that? >> I also need to be able to refer to it like >> \seeindex{Hraban}{Ramm, Hraban) > > > You can use this when the entry appears only once which replaces the page > number with "passim". > > \define[1]\Passim > {passim} > > \defineprocessor [pass

[NTG-context] index issues

2020-10-14 Thread Henning Hraban Ramm
suppose you’ll remember; I left out the Lua table lookup for unified entries): \defineprocessor[kursiv][style=italicface] \define[1]\nIndex{\doifmodeelse{*footnote}{% \expanded{\index[kursiv->]{#1}}}% }{% \expanded{\index{#1}}}% }} (2) Can I avoid linebreaking of page ranges in \placein

[NTG-context] Index range with page number suffix

2020-09-24 Thread Duncan Hothersall
I need is: sausage 1-2i Is this possible? MWE \defineprocessor[important][right={\it{i}}] \starttext \samplefile{knuth} \startregister[index][sausage][important->sausage]{sausage} \dorecurse{6}{\samplefile{knuth}} \stopregister[index][sausage]{sausage} \samplefile{knuth} \page \placein

Re: [NTG-context] force index entries without page number

2020-09-04 Thread Wolfgang Schuster
appears only once which replaces the page number with "passim". \define[1]\Passim {passim} \defineprocessor [passim] [command=\Passim] \starttext xxx\index{First} yyy\index[passim->]{Second} zzz\seeindex{Third}{Second} \placeindex \stopt

Re: [NTG-context] force index entries without page number

2020-09-03 Thread mf
Il 03/09/20 11:38, Henning Hraban Ramm ha scritto: Hi Massi, thank you! Am 03.09.2020 um 11:09 schrieb mf : This should be exactly what you asked for: \defineprocessor[passim][right=\quad{\it passim}] I didn’t think to use processors. You need them to get the "passim"; if y

Re: [NTG-context] force index entries without page number

2020-09-03 Thread Henning Hraban Ramm
Hi Massi, thank you! > Am 03.09.2020 um 11:09 schrieb mf : > > This should be exactly what you asked for: > > \defineprocessor[passim][right=\quad{\it passim}] I didn’t think to use processors. > \seeindex{passim->Ramm, Hraban}{} No, this results in "Ramm

Re: [NTG-context] force index entries without page number

2020-09-03 Thread mf
This should be exactly what you asked for: \defineprocessor[passim][right=\quad{\it passim}] \starttext \samplefile{ward}\index{Ward, Peter} \samplefile{sapolsky}\index{Sapolsky, Robert} \seeindex{passim->Ramm, Hraban}{} \seeindex{Hraban}{Ramm, Hraban} \page \placeindex[check=yes] \p

Re: [NTG-context] check if inside footnote

2020-08-04 Thread Hans Hagen
footnotes), and I could avoid manually analyzing the structure if my macro could determine on its own if it’s called from a footnote. Not-working example: \setupinteraction[state=start] \defineprocessor[kursiv][style=italicface] \define[1]\Idx{\doifmodeelse{*footnote}{\index{#1}}{\index[kursiv

Re: [NTG-context] check if inside footnote

2020-08-04 Thread Henning Hraban Ramm
>> footnotes, or footnotes within footnotes), and I could avoid manually >> analyzing the structure if my macro could determine on its own if it’s >> called from a footnote. >> Not-working example: >> \setupinteraction[state=start] >> \defineprocessor[k

Re: [NTG-context] check if inside footnote

2020-08-04 Thread Hans Hagen
own if it’s called from a footnote. Not-working example: \setupinteraction[state=start] \defineprocessor[kursiv][style=italicface] \define[1]\Idx{\doifmodeelse{*footnote}{\index{#1}}{\index[kursiv->]{kursiv->#1}}#1} \starttext Text --- \index[C]{A}{B}\footnote{Inside\index{FN}}\in

[NTG-context] check if inside footnote

2020-08-04 Thread Henning Hraban Ramm
example: \setupinteraction[state=start] \defineprocessor[kursiv][style=italicface] \define[1]\Idx{\doifmodeelse{*footnote}{\index{#1}}{\index[kursiv->]{kursiv->#1}}#1} \starttext Text --- \index[C]{A}{B}\footnote{Inside\index{FN}}\index{BF} --- \placeregister[index][criterium=all] \st

Re: [NTG-context] consistent index entries

2020-08-01 Thread Wolfgang Schuster
ded\ctxlua). \expanded needs a argument, i.e. \expanded{...} Now, \def\TOrt#1{\expanded{\Ort{\ctxlua{userdata.Lookup("#1")}}}#1} % Loc + Text \defineprocessor[kursiv][style=italicface] \def\TFOrt#1{\expanded{\Ort[kursiv->]{\ctxlua{userdata.Lookup("#1")}}}#1} % Loc in Foot

Re: [NTG-context] consistent index entries

2020-08-01 Thread Henning Hraban Ramm
\def\TOrt#1{\expanded{\Ort{\ctxlua{userdata.Lookup("#1")}}}#1} % Loc + Text \defineprocessor[kursiv][style=italicface] \def\TFOrt#1{\expanded{\Ort[kursiv->]{\ctxlua{userdata.Lookup("#1")}}}#1} % Loc in Footnote + Text works. :) (I always define \TIndex to avoid doubling,

Re: [NTG-context] register entries in footnotes

2020-04-26 Thread Hans Hagen
On 4/26/2020 4:35 PM, Thomas A. Schmitz wrote: A similar question has been asked three years ago, and Rik Kabel posted a partial solution, adapted here: \defineprocessor [Footnote] [right={ n}] \define[1]   \fnindex{\index[Footnote->]{#1}} \starttext This is a sentence with a t

[NTG-context] register entries in footnotes

2020-04-26 Thread Thomas A. Schmitz
A similar question has been asked three years ago, and Rik Kabel posted a partial solution, adapted here: \defineprocessor [Footnote] [right={ n}] \define[1] \fnindex{\index[Footnote->]{#1}} \starttext This is a sentence with a term in the index: cat\index{cat}. This sentence also

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
brice > > https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html > > \defineframed > [EXFRAME] > [frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white,

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
ttps://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html > > \defineframed > [EXFRAME] > [frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > f

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
=color, backgroundcolor=black, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=, width=fit, numberconversionset=ACCONVERS

Re: [NTG-context] formatting index entries

2019-08-21 Thread Robert Zydenbos
t now I want the word 'īga' to be slanted, but not the word 'emphasized'. >> I have tried things like \index{sl::īga+rm::emphasized}, but I can't figure >> this out. >> >> Any suggestions? > > \defineprocessor [sl] [style=slanted] > \defineprocessor [bf] [style=bol

Re: [NTG-context] formatting index entries

2019-08-21 Thread Wolfgang Schuster
\index{īga+emphasized} But now I want the word 'īga' to be slanted, but not the word 'emphasized'. I have tried things like \index{sl::īga+rm::emphasized}, but I can't figure this out. Any suggestions? \defineprocessor [sl] [style=slanted] \defineprocessor [bf] [style=bold] \starttext

Re: [NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Wolfgang Schuster
\feature[+][f:smallcaps]}, headcommand=\ACFRAME, numberconversionset=ACCONVERSION, width=fit, stopper={.}, alternative=serried] \defineprocessor[ACPROCESSOR][color=red] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \setupbodyfont[pagella] \starttext \startexercice \in

Re: [NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Alan Braslau
ION, >width=fit, >stopper={.}, >alternative=serried] > > \defineprocessor[ACPROCESSOR][color=red] > > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > > \setupbodyfont[pagella] > > \starttext > \startexercice > \input ward > \stopexercice &g

[NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Fabrice Couvreur
={Exercice}, headstyle={\bf\feature[+][f:smallcaps]}, headcommand=\ACFRAME, numberconversionset=ACCONVERSION, width=fit, stopper={.}, alternative=serried] \defineprocessor[ACPROCESSOR][color=red] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \setupbodyfont[pagella] \startt

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
t;> Thank you >> Fabrice >> >> \setupbodyfont[pagella,11pt] >> >> \defineframed >>[ACFRAME] >>[frame=off, >> offset=0pt, >> location=low, >> width=\struttotal, >> background=color, >> backg

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Fabrice Couvreur
frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > forgroundstyle=bold] > > > \defineprocessor[ACPROCESSOR][command=\ACFRAME] > \defineconversionset[ACCON

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
> \setupbodyfont[pagella,11pt] > > \defineframed >[ACFRAME] >[frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > forgroundstyle=

Re: [NTG-context] Strange behavior with font pagella

2018-07-15 Thread Rik Kabel
On 7/15/2018 17:39, Fabrice Couvreur wrote: \setupbodyfont[pagella,11pt] \defineframed    [ACFRAME]    [frame=off,     offset=0pt,     location=low,     width=\struttotal,     background=color,     backgroundcolor=black,     foregroundcolor=white,     forgroundstyle=bold] \defineprocessor

[NTG-context] Strange behavior with font pagella

2018-07-15 Thread Fabrice Couvreur
, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\ACFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=, distance=0.3em, width=fit, numberconversionset=ACCONVERSION, alternative=serried] \starttext \dorecurse{5} {\startex \in

[NTG-context] highlighting in registers (index)

2018-06-11 Thread Henning Hraban Ramm
and is sorted unter the normal main entry, if there doesn’t exist a normal entry with the same subentry. (These are just observations, I wouldn’t know how it should be different.) But: Is there a way to highlight just subentries? e.g. \index{Sun+emph->rays} """ \defineprocessor[

Re: [NTG-context] Question about an environment

2018-01-31 Thread Fabrice Couvreur
background=color, >backgroundcolor=black, >foregroundcolor=white, >forgroundstyle=bold] > > \defineprocessor[ACPROCESSOR][command=\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration > [ex] > [text=, >width=fit, >

[NTG-context] Question about an environment

2018-01-28 Thread Fabrice Couvreur
] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=black, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [t

Re: [NTG-context] Index with distinguishable entries -- again

2017-04-27 Thread Rik Kabel
or create a new command to wrap it, as \defineprocessor[Footnote][style=bold,color=blue] \define[1]\fnindex{\index[Footnote->]{#1}} of course, if you use the optional indexunder component already ( \index[as if it were spelled this way]{displayed as} ) then you will have to create a more c

Re: [NTG-context] Index with distinguishable entries -- again

2017-04-27 Thread Florian Grammel
following can help. It has separate user page numbers for the > main matter and back matter, with a suffixed ‘n’ for the items indexed from > backmatter pages, but no suffix on the backmatter page numbers. The index > entries for figures are rubricated and have a leading ‘f’. > > \

Re: [NTG-context] Index with distinguishable entries -- again

2017-04-26 Thread Rik Kabel
g can help. It has separate user page numbers for the main matter and back matter, with a suffixed ‘n’ for the items indexed from backmatter pages, but no suffix on the backmatter page numbers. The index entries for figures are rubricated and have a leading ‘f’. \defineprocessor [backpa

Re: [NTG-context] Title without the parentheses

2017-01-31 Thread Fabrice Couvreur
t; On 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvr...@gmail.com> >> wrote: >> >> Hello, >> I would like a title without the parentheses and the text "Exercice" in >> the frame with the number. >> Thank you. >> Fabrice

Re: [NTG-context] Title without the parentheses

2017-01-30 Thread Otared Kavian
e with the number. >> Thank you. >> Fabrice >> >> \defineframed >> [EXFRAME] >> [frame=off, >>offset=0pt, >>location=low, >>width=\struttotal, >>background=color, >>backgroundcolor=darkred, >>

Re: [NTG-context] Title without the parentheses

2017-01-30 Thread Otared Kavian
ses and the text "Exercice" in the >> frame with the number. >> Thank you. >> Fabrice >> >> \defineframed >> [EXFRAME] >> [frame=off, >>offset=0pt, >>location=low, >>width=\struttotal, >>background=color, >&

Re: [NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
ot;Exercice" in > the frame with the number. > Thank you. > Fabrice > > \defineframed > [EXFRAME] > [frame=off, >offset=0pt, >location=low, > width=\struttotal, >background=color, >backgroundcolor=darkred, >foregroundco

Re: [NTG-context] Title without the parentheses

2017-01-29 Thread Otared Kavian
=color, >backgroundcolor=darkred, >foregroundcolor=white, >forgroundstyle=bold] > > \defineprocessor[ACPROCESSOR][command=\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration > [ex] > [text=Exercice, >title=yes, >w

[NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
olor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=Exercice, title=yes, width=fit, numberconversionset=ACCONVERSION, alternative=top, number=yes] \starttext \star

Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Fabrice Couvreur
width=\struttotal, >background=color, >backgroundcolor=darkred, >foregroundcolor=white, >forgroundstyle=bold] > > \defineprocessor[ACPROCESSOR][command=\FRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > > \startsetups[table:initi

Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Wolfgang Schuster
et=0pt, location=low, width=\struttotal, background=color, backgroundcolor=darkred, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\FRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \startsetups[table:initialize] \setupTABLE[start]

[NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Fabrice Couvreur
=\struttotal, background=color, backgroundcolor=darkred, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\FRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \startsetups[table:initialize] \setupTABLE[start] [align={middle,lohi},width=0

[NTG-context] Bug with standalone ?

2016-08-26 Thread Fabrice Couvreur
, width=\struttotal, background=color, backgroundcolor=darkred, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\FRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \startsetups[table:initialize] \setupTABLE[start] [align={middl

Re: [NTG-context] How to reset a new processor ?

2016-08-08 Thread Fabrice Couvreur
eur <fabrice1.couvr...@gmail.com> > 8. August 2016 um 12:27 > Hi, > I use a counter for each "Exercises" section of each chapter (Wolfgang thank > you !). > How to reset the counter to 1 for each section ? > thank you, > Fabrice > > > \defineprocessor[A

Re: [NTG-context] How to reset a new processor ?

2016-08-08 Thread Wolfgang Schuster
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 8. August 2016 um 12:27 Hi, I use a counter for each "Exercises" section of each chapter (Wolfgang thank you!). How to reset the counter to 1 for each section ? thank you, Fabrice \defineprocessor[ACPROCESSOR][

[NTG-context] How to reset a new processor ?

2016-08-08 Thread Fabrice Couvreur
Hi, I use a counter for each "Exercises" section of each chapter (Wolfgang thank you !). How to reset the counter to 1 for each section ? thank you, Fabrice \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPR

Re: [NTG-context] Question about headcommand

2016-07-22 Thread Fabrice Couvreur
my original post, if I want only the counter is white and surrounded > by a red frame, just write : > > \defineenumeration > [ex] >[text=, > distance=0.3em, > width=fit, > numberconversionset=ACCONVERSION, > alternative=serried, >

Re: [NTG-context] Question about headcommand

2016-07-22 Thread Wolfgang Schuster
[ex] [text=, distance=0.3em, width=fit, numberconversionset=ACCONVERSION, alternative=serried, ] \defineprocessor[ACPROCESSOR][command=\ACFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] You can play with the position of the frame and place the number on the

Re: [NTG-context] Question about headcommand

2016-07-22 Thread Fabrice Couvreur
, alternative=serried, ] \defineprocessor[ACPROCESSOR][command=\ACFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] Thanks, Fabrice 2016-07-22 8:08 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 2

Re: [NTG-context] Question about headcommand

2016-07-22 Thread Wolfgang Schuster
dyfont[pagella,11pt] \defineprocessor[ACPROCESSOR][color=red] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=, distance=0.3em, width=fit, numberconversionset=ACCONVERSION, alternative=serried] \starttext \dorecurse{5} {\startex \in

[NTG-context] Question about headcommand

2016-07-21 Thread Fabrice Couvreur
, framecolor=red, ] \defineenumeration [ex] [text=, distance=0.3em, width=fit, headcommand=\ACFRAME, %numberconversionset=ACCONVERSION, alternative=serried, ] %\defineprocessor[ACPROCESSOR][color=white,command=\groupedcommand{}{}] %\defineconversionset[ACCONVERSION

Re: [NTG-context] a question about \setuphead

2016-02-11 Thread Wolfgang Schuster
apply a processor the counter for the subsection number. begin example \setuplabeltext[subsection=Párrafo~] \defineprocessor[delimiters][left=(,right=)] \defineconversionset[sectionnumbers][n,n,n,delimiters->n][n] \setuphead [subsection] [sectionconversionset=sectionnumbers] \

Re: [NTG-context] RTL problem with figure numbers

2016-01-17 Thread Mohammad Hossein Bateni
[][] > {Test figure.} > {\centerline{FIGURE BODY}} > > \page > } > > \stoptext > > You can use processors. > > \setupalign[righttoleft] > > \defineprocessor [lefttoright][style=\lefttoright] > \defineconversionset[lefttorightnumber][][lefttoright->n] > >

Re: [NTG-context] RTL problem with figure numbers

2016-01-17 Thread Mohammad Hossein Bateni
dorecurse{20}{ >> >> \section{Test} >> This is a very simple text. >> And we have a footnote\footnote{Footnote text}. >> >> \placefigure >> [][] >> {Test figure.} >> {\centerline{FIGURE BODY}} >> >> \page >> } >> >> \

Re: [NTG-context] RTL problem with figure numbers

2016-01-09 Thread Wolfgang Schuster
figure [][] {Test figure.} {\centerline{FIGURE BODY}} \page } \stoptext You can use processors. \setupalign[righttoleft] \defineprocessor [lefttoright][style=\lefttoright] \defineconversionset[lefttorightnumber][][lefttoright->n] \setupcaption[figure][numberconversionset=lefttorightnumber] \

Re: [NTG-context] \defineprocessor and \at

2015-08-12 Thread Wolfgang Schuster
numbers need to be marked to distinguish them from bodymatter pages. I can automate applying a processor based on the location for index register entries, but not for references.) \defineprocessor [bodypart] [style=bold] \defineprocessor [backpart] [style=italic] \defineconversionset

Re: [NTG-context] \defineprocessor and \at

2015-08-11 Thread Rik Kabel
pages. I can automate applying a processor based on the location for index register entries, but not for references.) \defineprocessor [bodypart] [style=bold] \defineprocessor [backpart] [style=italic] \defineconversionset[bodypart:pagenumber][][bodypart-n] \defineconversionset[backpart:pagenumber

Re: [NTG-context] \defineprocessor and \at

2015-08-11 Thread Rik Kabel
register entries, but not for references.) \defineprocessor[xx][style=slanted,after=n] \starttext \section[xxx]{Processor testing} Why cannot a processor be applied to a reference? \at[xx-xxx] \stoptext Anyone? -- Rik

Re: [NTG-context] \defineprocessor and \at

2015-08-11 Thread Wolfgang Schuster
on the location for index register entries, but not for references.) \defineprocessor [bodypart] [style=bold] \defineprocessor [backpart] [style=italic] \defineconversionset[bodypart:pagenumber][][bodypart-n] \defineconversionset[backpart:pagenumber][][backpart-n] \setupheadertexts

Re: [NTG-context] \defineprocessor and \at

2015-08-11 Thread Rik Kabel
pages. I can automate applying a processor based on the location for index register entries, but not for references.) \defineprocessor [bodypart] [style=bold] \defineprocessor [backpart] [style=italic] \defineconversionset[bodypart:pagenumber][][bodypart-n] \defineconversionset[backpart:pagenumber

Re: [NTG-context] \defineprocessor and \at

2015-08-11 Thread Wolfgang Schuster
Rik Kabel mailto:cont...@rik.users.panix.com 11. August 2015 21:41 On 2015-08-11 14:49, Wolfgang Schuster wrote: Thank you, Wolfgang, for that. But it still does not handle the after key, as I had in my example, and which works in a processor for index entries. Is there no way to do this? The

Re: [NTG-context] \defineprocessor and \at

2015-08-11 Thread Rik Kabel
I replied. When I add it to your solution it does work. \defineprocessor[Back][ style=slanted, right=n, ] \defineprocessor[notBack][ style=normal

[NTG-context] \defineprocessor and \at

2015-08-03 Thread Rik Kabel
.) \defineprocessor[xx][style=slanted,after=n] \starttext \section[xxx]{Processor testing} Why cannot a processor be applied to a reference? \at[xx-xxx] \stoptext -- Rik ___ If your question

Re: [NTG-context] Register customization for backmatter page numbers

2015-08-01 Thread Pablo Rodriguez
that has been suggested is to prefix the pagenumber displayed in the index with a mark to indicate that the page is in the backmatter, or to italicize it, or to use an alternate font. I have looked at the defineconversionset and defineprocessor documentation and find no way to mark index

[NTG-context] Solved, was Re: Register customization for backmatter page numbers

2015-08-01 Thread Rik Kabel
, page numbers are not unique. One method that has been suggested is to prefix the pagenumber displayed in the index with a mark to indicate that the page is in the backmatter, or to italicize it, or to use an alternate font. I have looked at the defineconversionset and defineprocessor documentation

Re: [NTG-context] Solved, was Re: Register customization for backmatter page numbers

2015-08-01 Thread Rik Kabel
at the defineconversionset and defineprocessor documentation and find no way to mark index entries appropriately. Can anyone suggest a way to do this, or some other method? Perhaps a pagecommand that compares the register item real page number to the highest real page number of the body? I would prefer a solution

[NTG-context] Register customization for backmatter page numbers

2015-07-31 Thread Rik
and defineprocessor documentation and find no way to mark index entries appropriately. Can anyone suggest a way to do this, or some other method? Perhaps a pagecommand that compares the register item real page number to the highest real page number of the body? I would prefer a solution that does

[NTG-context] Title and defineenumeration

2014-12-31 Thread Fabrice Couvreur
\feature[+][f:smallcaps]}, headcommand=\ACFRAME, numberconversionset=ACCONVERSION, width=fit, alternative=top, title=yes, ] \defineprocessor[ACPROCESSOR][color=red,command=\groupedcommand{}{.}] \defineconversionset[ACCONVERSION][][ACPROCESSOR-n] \starttext \startac{En Bretagne, il

Re: [NTG-context] distinguishing index entries according to function by using \setupregister

2014-06-07 Thread Hans Hagen
to the definition:: key.) we have a better and mnore powerful mechanism now \defineprocessor[bf][style=bold] \defineprocessor[it][style=italic] \starttext \index{it-italic}\index{normal} This is a \index[bf-bold]{test with bold number}test. This is a less important \index{test}test

Re: [NTG-context] distinguishing index entries according to function by using \setupregister

2014-06-07 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes: hm, it's already an old (mkiv) feature we have a better and mnore powerful mechanism now \defineprocessor[bf][style=bold] \defineprocessor[it][style=italic] Thanks for this, and sorry for the noise. I didn't even see that material on the Registers wiki

Re: [NTG-context] Setting the style and conversion of the reference numbers for the \in command

2014-05-22 Thread Wolfgang Schuster
: \setupreferencestructureprefix[section][default][% prefixconversion=Romannumerals, prefixstyle=\bf] \defineprocessor[sectionstyle][style=italic,color=red] \defineconversionset[sectionconversion][][sectionstyle-Romannumerals] \setupreferencestructureprefix[section][default

[NTG-context] Setting the style and conversion of the reference numbers for the \in command

2014-05-22 Thread Maggyero
Thank you Wolfgang, your hack is perfect. Hans, what do you think about adding a style and color key in \setupreferencestructureprefix to avoid having to use this defineprocessor hack? And by the way, the name \setupreferencestructureprefix does not sound really natural to me because we

Re: [NTG-context] Numbering in a frame with a new environment

2014-04-27 Thread Wolfgang Schuster
=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [ac] [text={Activité}, headstyle={\bf\feature[+][f:smallcaps]}, headcommand=\ACFRAME, numberconversionset=ACCONVERSION, width=fit, stopper={.}, alternative=left] \defineprocessor

Re: [NTG-context] [Index] Indenting long primaries after secondaries

2014-03-16 Thread Hans Hagen
wonder it looks better \defineprocessor[twolines][style=\aftergroup\hangafter\aftergroup\plustwo] \setupregister [balance=no] \starttext \index{primary+secondary+tertiary} \index{twolines-primary long primary long primary long primary long primary long} \index{twolines-primary

Re: [NTG-context] [Index] Indenting long primaries after secondaries

2014-03-16 Thread Hans Hagen
the \dorecurse command first and then apply the grouping/sorting etc. My main wish is fixing that indentation (or offering any workaround). stylistic variant: \defineprocessor[twolines][command=\MyStyle] \unexpanded\def\MyStyle#1% {\setbox\scratchbox\hbox{#1}% \scratchdimen\dimexpr\hsize-\leftskip

Re: [NTG-context] suggestion on [option=TEX]

2014-02-12 Thread Pablo Rodriguez
also be careful with the text in the comments because commands are expanded, e.g. take a look at the \TeX in the comment. \setupbodyfont[dejavu] \defineprocessor[myescape][style=\ttbf,color=gray,left={\letterpercent}] \setuptyping[TEX][escape=myescape-{\letterpercent,}] \starttext

Re: [NTG-context] suggestion on [option=TEX]

2014-02-06 Thread Pablo Rodriguez
] \defineprocessor[myescape][style=bold,color=gray, left=\%] \setuptyping[TEX][escape=myescape-{\%}] \starttext \startTEX This is a c%omment. % And this is another one. \command [with colored] {brackets} \stopTEX \stoptext But this doesn’t work. I must be missing something obvious. What am I

Re: [NTG-context] suggestion on [option=TEX]

2014-02-06 Thread Wolfgang Schuster
with: \definefontfamily[mainface][mono][DejaVu Sans Mono] \setupbodyfont[mainface] \defineprocessor[myescape][style=bold,color=gray, left=\%] \setuptyping[TEX][escape=myescape-{\%}] \starttext \startTEX This is a c%omment. % And this is another one. \command [with colored] {brackets} \stopTEX

Re: [NTG-context] Handling index entries with many references

2013-11-15 Thread honyk
by 'and many' phrase. Can something like this be done in the ConTeXt (MkIV)? I found an elegant way for this: \defineprocessor[many][right= and many] This processor is then applied just for the last index entry page reference: \index[many-]{primary} This can be automated in my system. Wow, great

Re: [NTG-context] stoppers in section heading without having stoppers in references?

2013-04-18 Thread Wolfgang Schuster
, not In Chapter 1. we learn? I have tried many variants of the following minimal example: \setuphead[chapter][sectionstopper=.] \definereferenceformat [inchapter] [text={Chapter~}] \starttext \chapter[one]{First heading} \input knuth \inchapter[one] we learn. \stoptext \defineprocessor

  1   2   >