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] %
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
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
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
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
. 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
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
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
]
\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
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
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
conversionset [bodypart:chapternumber] [] [bodypartnumber->n]
> \defineconversionset [appendix:chapternumber] [] [appendixnumber->A]
>
> \setuphead
>[chapter]
>[sectionconversionset=chapternumber]
>
> \startsectionblockenvironment [frontpart]
>
>
number]
\startsectionblockenvironment [frontpart]
\defineprocessor [bodypartnumber] [left=Chapter~]
\defineprocessor [appendixnumber] [left=Appendix~]
\stopsectionblockenvironment
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\chapter{Bodypart}
\stopbody
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
: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
: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 (
: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 (
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
. 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
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
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
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
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
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
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
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
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
>> 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
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
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
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
\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,
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
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
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,
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
=color,
backgroundcolor=black,
foregroundcolor=white,
forgroundstyle=bold]
\defineprocessor[ACPROCESSOR][command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
\defineenumeration
[ex]
[text=,
width=fit,
numberconversionset=ACCONVERS
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
\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
\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
ION,
>width=fit,
>stopper={.},
>alternative=serried]
>
> \defineprocessor[ACPROCESSOR][color=red]
>
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
>
> \setupbodyfont[pagella]
>
> \starttext
> \startexercice
> \input ward
> \stopexercice
&g
={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
t;> Thank you
>> Fabrice
>>
>> \setupbodyfont[pagella,11pt]
>>
>> \defineframed
>>[ACFRAME]
>>[frame=off,
>> offset=0pt,
>> location=low,
>> width=\struttotal,
>> background=color,
>> backg
frame=off,
> offset=0pt,
> location=low,
> width=\struttotal,
> background=color,
> backgroundcolor=black,
> foregroundcolor=white,
> forgroundstyle=bold]
>
>
> \defineprocessor[ACPROCESSOR][command=\ACFRAME]
> \defineconversionset[ACCON
> \setupbodyfont[pagella,11pt]
>
> \defineframed
>[ACFRAME]
>[frame=off,
> offset=0pt,
> location=low,
> width=\struttotal,
> background=color,
> backgroundcolor=black,
> foregroundcolor=white,
> forgroundstyle=
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
,
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
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[
background=color,
>backgroundcolor=black,
>foregroundcolor=white,
>forgroundstyle=bold]
>
> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \defineenumeration
> [ex]
> [text=,
>width=fit,
>
]
[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
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
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’.
>
> \
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
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
e with the number.
>> Thank you.
>> Fabrice
>>
>> \defineframed
>> [EXFRAME]
>> [frame=off,
>>offset=0pt,
>>location=low,
>>width=\struttotal,
>>background=color,
>>backgroundcolor=darkred,
>>
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,
>&
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
=color,
>backgroundcolor=darkred,
>foregroundcolor=white,
>forgroundstyle=bold]
>
> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \defineenumeration
> [ex]
> [text=Exercice,
>title=yes,
>w
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
width=\struttotal,
>background=color,
>backgroundcolor=darkred,
>foregroundcolor=white,
>forgroundstyle=bold]
>
> \defineprocessor[ACPROCESSOR][command=\FRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
>
> \startsetups[table:initi
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]
=\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
,
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
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
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][
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
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,
>
[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
,
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
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
,
framecolor=red,
]
\defineenumeration
[ex]
[text=,
distance=0.3em,
width=fit,
headcommand=\ACFRAME,
%numberconversionset=ACCONVERSION,
alternative=serried,
]
%\defineprocessor[ACPROCESSOR][color=white,command=\groupedcommand{}{}]
%\defineconversionset[ACCONVERSION
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]
\
[][]
> {Test figure.}
> {\centerline{FIGURE BODY}}
>
> \page
> }
>
> \stoptext
>
> You can use processors.
>
> \setupalign[righttoleft]
>
> \defineprocessor [lefttoright][style=\lefttoright]
> \defineconversionset[lefttorightnumber][][lefttoright->n]
>
>
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
>> }
>>
>> \
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]
\
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
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
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
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
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
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
I replied.
When I add it to your solution it does work.
\defineprocessor[Back][
style=slanted,
right=n,
]
\defineprocessor[notBack][
style=normal
.)
\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
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
, 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
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
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
\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
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
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
:
\setupreferencestructureprefix[section][default][%
prefixconversion=Romannumerals,
prefixstyle=\bf]
\defineprocessor[sectionstyle][style=italic,color=red]
\defineconversionset[sectionconversion][][sectionstyle-Romannumerals]
\setupreferencestructureprefix[section][default
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
=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
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
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
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
]
\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
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
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
, 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 - 100 of 116 matches
Mail list logo