[NTG-context] Re: registers in footnotes as page glossaries

2024-08-31 Thread M U via ntg-context
ffer[buf:dict:xxx]}] \setupsection[section][placehead=hidden,aftersection=\pagebreak] \definelinenumbering[Poem][step=5,continue=yes] \defineregister[Dict][pagenumber=no,indicator=no,n=2,criterium=section,before=,textcommand=\bf] \starttext \startsection[title=pageA] \startlines \startlinenumbering

[NTG-context] Re: Is there a short-cut to adding sub-categories for index entries?

2024-08-25 Thread Henning Hraban Ramm
xt(userdata.Mapping[name] or name) end %%% environment \loadluafile[lookups.lua] \defineregister[Location][] \define[1]\LocIndex{\expanded{\Location{% \ctxlua{userdata.Lookup("#1") Hraban ___ If

[NTG-context] Re: Mikael’s missing math manual

2024-03-18 Thread Hraban Ramm
Hans’ manuals are also often "in progress". A visible TODO marker might help – I’m using the following in my book to keep track of incomplete sections: \defineregister[todos] \define[1]\TODO{\inouter{\tt\color[red]{TODO}}\expanded{\todos{\structurevariable{title}}}\color[re

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
s you see it isn't showing the error, so something else in the document is causing it: \setvalue{W3}{this is text for W3} \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=3, pagenumber=yes, indicator=no] % \defineregister[learne

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
t showing the error, so something else in the document is causing it: \setvalue{W3}{this is text for W3} \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=3, pagenumber=yes, indicator=no] % \defineregister[learnedlong][compress

[NTG-context] How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
or W3} \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=3, pagenumber=yes, indicator=no] % \defineregister[learnedlong][compress=yes] \setupregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \def

Re: [NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
Am 27.06.23 um 21:01 schrieb Wolfgang Schuster via ntg-context: Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Someth

Re: [NTG-context] expansion of section title

2023-06-27 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end of the book \chapter

[NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
I think I had a good idea how to keep an overview of the “todos” in my book project: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end o

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

2023-05-14 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] How to add data from another PDF in index?

2023-02-26 Thread Joel via ntg-context
mpty \page     \placeregister[index] \stoptext % index-2.tex \setupinteraction[state=start] \defineregister[xedni] \useregister[workbook][index-1][index][WB ] \starttext     test \index{onemore TB.1} \page     test \index{another TB.1} \page     test \index{entry  TB.1} \page     test \in

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Alan Braslau via ntg-context
x{whatever WB.1} \page empty \page test \index{common}\page empty \page \placeregister[index] \stoptext % index-2.tex \setupinteraction[state=start] \defineregister[xedni] \useregister[workbook][index-1][index][WB ] \starttext test \index{onemore TB.1} \page test \index{

Re: [NTG-context] How to add data from another PDF in index?

2023-02-24 Thread Alan Braslau via ntg-context
: > I am making a textbook and workbook set. > I have this custom index using this code, in both the textbook and > workbook: % > \defineregister[learnedshort][compress=yes] > \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2, > pagenumber=yes, indicator=no] %

[NTG-context] How to add data from another PDF in index?

2023-02-23 Thread Joel via ntg-context
I am making a textbook and workbook set. I have this custom index using this code, in both the textbook and workbook: % \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \defineregister[learnedlong

[NTG-context] Why won't custom indexes work when the value comes from \getvalue?

2023-01-21 Thread Joel via ntg-context
when \getvalue{} is placed inside, it can't find the value. Any suggestions? --Joel \defineregister[coreidea][compress=yes]\setupregister[coreidea][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] \define[1]\setcoreidea{%     \coreidea{#1}% } \setvalue{secret1}{this

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, how to ignore quote marks

2022-01-28 Thread jbf via ntg-context
put \index{‘Innovative’} then ‘Innovative’ is sorted under ‘ instead of under the letter I. How do I get my indexing to ignore the quote marks, at the very least the initial one? My index setup at the moment is as follows: \defineregister[index][compress=yes] \setupregister[index][n=1

Re: [NTG-context] How to create an index that refers to multiple other books?

2022-01-18 Thread Hans Hagen via ntg-context
the textbook which standards are used. I've used the following code to create such an index, if I simply place `\learned{}` somewhere containing the standard's ID, it creates a custom index entry, and `\placelearned` displays that index. \defineregister[learned][compress=yes] \set

Re: [NTG-context] How to create an index that refers to multiple other books?

2022-01-18 Thread Joel via ntg-context
andard's ID, it creates a custom index entry, and `\placelearned` displays that index. \defineregister[learned][compress=yes] \setupregister[learned][style=sansbold, textstyle=slanted, n=1, pagenumber=yes] \starttext         \learned{CCSS+W.7.3}     \input knuth         \learned{CCSS+W.7.3}   

[NTG-context] How to create an index that refers to multiple other books?

2022-01-18 Thread Joel via ntg-context
used the following code to create such an index, if I simply place `\learned{}` somewhere containing the standard's ID, it creates a custom index entry, and `\placelearned` displays that index. \defineregister[learned][compress=yes] \setupregister[learned][style=sansbold, textstyle=sl

Re: [NTG-context] How to manually adjust the sort order of items appearing in a custom index?

2022-01-17 Thread Henning Hraban Ramm via ntg-context
-- Joel Here is my minimum working example: \defineregister[listdates][compress=yes] \setupregister[listdates][style=sansbold, textstyle=slanted, n=1, pagenumber=yes] \define[2]\dateis{%     \listdates{#1~\emdash ~#2}% }% \starttext \dateis{1900s+1911}{Some event happened} \dateis{1900s+19

[NTG-context] How to manually adjust the sort order of items appearing in a custom index?

2022-01-17 Thread Joel via ntg-context
o add visible month and day details, that would be even more confusing to the index as I have to print it in American order. Second, when it compiles it is not printing the page number, instead prints "[Entry not flushed]". -- Joel Here is my minimum working example: \definere

Re: [NTG-context] new upload

2021-12-01 Thread Hans Hagen via ntg-context
ge[es] \setupbodyfont[dejavu] \defineregister [Russian] [n=1, command=\Words, pagenumber=no, language=ru, textalternative=horizontal, distance=0pt] \setupregister [Russian] [2] [textstyle=bold,left={, }] \setupregister [Russian] [3] [textstyle=italic,left={, }] % word category me

Re: [NTG-context] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Hans Hagen via ntg-context
age[es] \enableexperiments[fonts.compact] \setupbodyfont[dejavu] % computer-modern-unicode] \setuphead[chapter] [alternative=middle] \defineregister[Russian] \setupregister[Russian] [expansion=yes, balance=no, n=2, command=\Words, pagenumber=no, language=ru] \def\Ruso[#1]% {\begi

Re: [NTG-context] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Hans Hagen via ntg-context
yping entries inside a document. I attach an example of what I achieved: \unprotect \mainlanguage[\s!es] \enableexperiments[fonts.compact] \setupbodyfont[computer-modern-unicode] \setuphead[chapter]   [\c!alternative=\v!middle] \defineregister[Russian] \setupregister[Russian]   [\c!expansion=\

[NTG-context] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Jairo A. del Rio via ntg-context
ieved: \unprotect \mainlanguage[\s!es] \enableexperiments[fonts.compact] \setupbodyfont[computer-modern-unicode] \setuphead[chapter] [\c!alternative=\v!middle] \defineregister[Russian] \setupregister[Russian] [\c!expansion=\v!yes, \c!balance=\v!no, \c!n=2, \c!command=\Words, \c!pagen

[NTG-context] Generating HTML

2021-10-11 Thread Hans Åberg via ntg-context
ot;, though. — html-test.tex — \definefontfamily [mainface][math][stix] \setupbodyfont[mainface,10pt] \setupinteraction[state=start, click=yes, focus=standard, color=darkblue] \setupbackend[export=yes] % Exporting HTML/XML \defineregister [index] \setupregister [index] [indi

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
ch would allows me to get as far as 66 (if I were to need every biblical book)? Julian On 16/4/21 5:24 pm, Hans Hagen wrote: On 4/15/2021 11:28 AM, jbf wrote: My simple MWE: \defineregister[bibcit] \setupregister[bibcit][% indicator=no, before=] text... \bibcit[a]{Gen 3:6 (MAC) }Gen 3:6

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/15/2021 11:28 AM, jbf wrote: My simple MWE: \defineregister[bibcit] \setupregister[bibcit][% indicator=no, before=] text... \bibcit[a]{Gen 3:6 (MAC) }Gen 3:6 (and so one for each Genesis reference, then moving on to Leviticus with [b] etc.) In other words, I have used the key

Re: [NTG-context] register for biblical citations

2021-04-15 Thread jbf
My simple MWE: \defineregister[bibcit] \setupregister[bibcit][% indicator=no, before=] text... \bibcit[a]{Gen 3:6 (MAC) }Gen 3:6 (and so one for each Genesis reference, then moving on to Leviticus with [b] etc.) In other words, I have used the key option [] using the alphabet to

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

2021-01-07 Thread jbf
ds, but I hope this will be useful. \defineregister[myindex] %Sorry for the funny names \def\myindexspaced#1{% \splitstring{#1}\at{ }\to\myindexoneone\and\myindexonetwo% \myindex[\myindexonetwo,\myindexoneone]{\myindexonetwo,\space\emph{\myindexoneone}}% } \def\myindexcomma#1{% \split

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

2021-01-07 Thread Jairo A. del Rio
Oh, I would do it another way, as processors aren't very happy with commands which split "strings". The drawback of my quick and dirty method is the need for additional commands, but I hope this will be useful. \defineregister[myindex] %Sorry for the funny names \def\

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

2021-01-07 Thread jbf
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 Observer} of 31 July 2018 \placemyindex% \stoptext Jair

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

2021-01-07 Thread jbf
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 Observer} of 31 July 2018 \placemyindex% \stoptext Jair

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,

[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,

Re: [NTG-context] place single entry of a register, or filtering the terms of a register

2019-10-25 Thread Hans Hagen
r \placeindex[criterium=???] \stoptext i guess the opposite makes more sense: combine different registers and then have different entries (kind of categories) \defineregister[one] \defineregister[two] \starttext one \one{alpha} two \two{beta} \subject{ONE} \placeregister[one] \subject{TWO}

Re: [NTG-context] formatting index entries: alphabetical order in Unicode

2019-08-22 Thread Robert Zydenbos
ontents by copy-and-paste. Not the most elegant of solutions, but it works. :-) > On 22. Aug 2019, at 01:58, Richard Mahoney | Indica et Buddhica > wrote: > > Robert, > > In IV one can do something such as this: > > % Registers (Indices) > > \defineregister[TIB

Re: [NTG-context] formatting index entries: alphabetical order in Unicode

2019-08-21 Thread Richard Mahoney | Indica et Buddhica
Robert, In IV one can do something such as this: % Registers (Indices) \defineregister[TIB] \setupregister[TIB][indicator=yes,compress=yes] and then in the body: \TIB[don du gner ba]{don du gñer ba : patthanā : wish}don du gñer ba'i phyir rdzogs par byed do \TIB[non mons]{ñon moṅs : k

[NTG-context] mapping seeregister command to xml

2019-07-04 Thread Thomas A. Schmitz
einscription[\xmlatt{#1}{sort}]{\xmlflush{#1}}{\xmlatt{#1}{target}}} \stopxmlsetups \defineregister[inscription][inscriptions] \setupregister[inscription][pagestyle=, textstyle=, location=right, prefix=none,

Re: [NTG-context] LMTX deeptextcommand issue

2019-04-02 Thread Hans Hagen
\IndexSta te}#1} \define[1]\IndexCommand {\setfalse\IndexState \setbox\scratchbox\hbox{#1}% \ifconditional\IndexState \column \fi \box\nextbox} does \unexpanded\def\IndexCommand#1% { work? \defineregister[indexname][indexnames] \setupregister[indexname][command=\Word

[NTG-context] LMTX deeptextcommand issue

2019-04-02 Thread Jan Tosovsky
{\setfalse\IndexState \setbox\scratchbox\hbox{#1}% \ifconditional\IndexState \column \fi \box\nextbox} \defineregister[indexname][indexnames] \setupregister[indexname][command=\Word, textcommand=\IndexCommand, deeptextcommand=\IndexInternalCommand] \defineregister[indexsubject

[NTG-context] Bidi-related register problem

2019-01-24 Thread Rik Kabel
e not handled properly. This is a recent change; bidi=global worked a few months ago. (I have not tried with LTR text in a default-RTL document). % macros=mkvi \defineregister[Mindex] \setupregister [Mindex] [n=2, maxwidth=4cm,

Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Thomas A. Schmitz
them. For your case, if you merely want to get rid of all distinctions between upper- and lowercase, accents, etc., you could use Lua (slightly modified example): \mainlanguage[pt] \defineregister [nome] \setupregister [nome] [ language=pt, n=1, ] \startluacode us

[NTG-context] Documentation of change / Evolving documents

2019-01-19 Thread Axel Kielhorn
] \setupbodyfont[11pt] \defineregister [change] \setupregister [change] [ indicator=no %% no letter style=sansbold, %% headings textstyle=slanted,%% entries pagestyle=bolditalic, %% page refs n=1, %% columns ] \def\ChangeV#1#2{\change{#1+#2}\doifmode

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Wolfgang Schuster
wrote: In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames]   \Name[key]{term}\xmlflush{#1} \stopmode \startnotmode[AddNames]   \xmlflush{#1} \stopnotmode I

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Rik Kabel
On 11/27/2018 08:43, Rik Kabel wrote: On 11/27/2018 05:38, mf wrote: In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames]   \Name[key]{term}\xmlflush{#1

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Rik Kabel
On 11/27/2018 05:38, mf wrote: In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames]   \Name[key]{term}\xmlflush{#1} \stopmode \startnotmode[AddNames

[NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread mf
In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames] \Name[key]{term}\xmlflush{#1} \stopmode \startnotmode[AddNames] \xmlflush{#1} \stopnotmode I noticed

Re: [NTG-context] \startregister…\stopregister bug?

2018-08-14 Thread Wolfgang Schuster
You forgot the second argument for \startregister and \stopregister. \defineregister[TesT] \starttext \startregister[TesT][one]{samples} \input knuth \page \startregister[TesT][two]{more} \input ward \stopregister[TesT][one] \page zapf \stopregister[TesT][two] \blank[3*big

[NTG-context] \startregister…\stopregister bug?

2018-08-14 Thread Alan Bowen
In the latest beta (2018.08.10), \defineregister[TesT] \starttext \startregister[TesT]{samples} \input knuth \page \input ward \stopregister[TesT] \blank[3*big] \placeregister[TesT] \stoptext produces on page 2 the index entry *samples 1* when one expects *samples 1–2* Alan

Re: [NTG-context] Fwd: Custom sorting of "pseudo-language" in a register

2018-03-22 Thread Hans Hagen
ent "Matthew", "Mark", "Luke", "John", "Acts", "Romans", "1 Corinthians", "2 Corinthians", "Galatians", "Ephesians", "Philippians", "Colossians", "1 Thessalonians"

[NTG-context] Custom sorting of "pseudo-language" in a register

2018-03-16 Thread John Grasty
(replacementoffset + 27) sorters.definitions['bbt'] = { replacements = { { "Geneza", gen }, { "Eksodus", exo }, { "Janez", jn }, }, orders = { gen, exo, jn } } \stopluacode \mainlanguage[sl] \defineregister[booksort]

Re: [NTG-context] Registers and getparameters

2018-01-23 Thread Hans Hagen
help me in this matter? When you replace \getparameters with \setvariables you can set a command which is applied each time when you set new values. \defineregister[speakers] \setupregister   [speakers]   [style=sansbold,    n=2] \startbuffer[pagetalk]   \doflushatpar     {\ex

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
K. %%% begin register-talks.tex \setupinteraction[state=start] \defineregister[speakers] \setupregister [speakers] [style=sansbold, n=2] \startbuffer[pagetalk] \doflushatpar {\expanded{\speakers{\getvariable{talk}{speakername}}}% \expanded{\pagereference[talk:\getvariable{talk

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster
s only the last name in the list instead of getting each speaker name. The following is a (not so minimal…) example. Can anyone help me in this matter? When you replace \getparameters with \setvariables you can set a command which is applied each time when you set new values. \definere

[NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
help me in this matter? Thanks in advance for your attention and time! Best regards: OK %%% begin register-speaker.tex \defineregister[speakers] \setupregister[speakers] [ style=sansbold, %% headings n=2, %% columns ] \define\MakePageTalk{% \reference[ref

Re: [NTG-context] Sorting of abbreviations in index

2017-10-09 Thread Jano Kula
t; > \mainlanguage[de] > \setupsynonyms [abbreviation] [textstyle=normal] > > \abbreviation{Abt.}{Abteilung} > \abbreviation{ADN}{Allgemeiner Deutscher Nachrichtendienst} > \abbreviation{AFL}{American Federation of Labor} > \abbreviation{ANC}{African National Congress} > \abbreviation{AV}

Re: [NTG-context] Sorting of abbreviations in index

2017-10-01 Thread Henning Hraban Ramm
abbreviation{AFL}{American Federation of Labor} >> \abbreviation{ANC}{African National Congress} >> \abbreviation{AV}{Auslandsvertretung} >> \abbreviation{BArch}{Bundesarchiv} >> >> \defineregister[Sach][ >> pagestyle=normal, >> compress=yes, >&g

Re: [NTG-context] Sorting of abbreviations in index

2017-09-25 Thread Henning Hraban Ramm
; > \abbreviation{Abt.}{Abteilung} > \abbreviation{ADN}{Allgemeiner Deutscher Nachrichtendienst} > \abbreviation{AFL}{American Federation of Labor} > \abbreviation{ANC}{African National Congress} > \abbreviation{AV}{Auslandsvertretung} > \abbreviation{BArch}{Bundesarchiv} > &g

[NTG-context] Sorting of abbreviations in index

2017-09-23 Thread Henning Hraban Ramm
Labor} \abbreviation{ANC}{African National Congress} \abbreviation{AV}{Auslandsvertretung} \abbreviation{BArch}{Bundesarchiv} \defineregister[Sach][ pagestyle=normal, compress=yes, indicator=no, ] \setupregister[Sach][style=normal] \def\Abk#1{\Sach{\infull{#1} (#1)}{\sc\lowercase{#1}}} %\def

Re: [NTG-context] compressing register ranges

2017-06-16 Thread Florian Grammel
y main problem, cf mwe below) 2) is a bit cumbersome to use as it requires the user to keep track of keys, as explained in your link from contextgarden. Best, Florian. > > \defineregister [demo] [demoes] > \starttext > > 1 > \demo{Demorange} > > \page[yes] &

[NTG-context] compressing register ranges

2017-06-16 Thread Florian Grammel
er switch to get the ranges to be collapsed completely? Also: There wouldn't be a shorthand to define explicit ranges? LaTeX has \index{Demorange|(} to \index{Demorange|)} which is actually very convenient. Best regards, Florian. \defineregister [demo] [demoes] \starttext 1 \demo{Demora

[NTG-context] Greek word sorting

2017-04-01 Thread Pablo Rodriguez
Hans, I have the following source: \mainlanguage[agr] \setupbodyfont[dejavu] \defineregister[indexgr][indexgrs] \setupregister[indexgr][pagenumber=no, balance=yes] \define[1]\grcindx{#1\index{#1}\indexgr{#1}} \setupregisters[n=3, pagenumber=no, method=default

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread MF
roach better? > > comparable > > btw, you can better use deeptextcommand as textcommand gets > something  > more passed > I think I've understood (thanks Hans): \startbuffer[test]      In this page there is a cat,    a dog and a horse.          In this pa

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread Alan Braslau
On Sat, 14 Jan 2017 15:52:25 +0100 MF wrote: > Now an alternative approach I thought, because the index I'm working > on is a biographical index, I mean a index of cited people, with a > biographical profile. One can create an index with the publications module as follows: \

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread Hans Hagen
and a horse. Cat Dog Horse \stopbuffer \defineregister[Animal][Animals] \startxmlsetups xml:mysetup \xmlsetsetup{#1}{text|div|p|name|i|index|entry}{xml:*} \stopxmlsetups \xmlregistersetup{xml:mysetup} \startxmlsetups xml:text \xmlflush{#1} \stopxmlsetups \startxmls

[NTG-context] index(register) from an XML source

2017-01-13 Thread MF
  Dog Horse   \stopbuffer \defineregister[Animal][Animals] \startxmlsetups xml:mysetup   \xmlsetsetup{#1}{text|div|p|name|i|index|entry}{xml:*} \stopxmlsetups \xmlregistersetup{xml:mysetup} \startxmlsetups xml:text   \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:div   \xmlflush{#1}

Re: [NTG-context] Ordered list of references (figures)

2015-10-05 Thread Henning Hraban Ramm
gt; \newif\iffirstFIDXpage > > \def\textcommand#1{#1\global\firstFIDXpagetrue} > \def\pagecommand#1{\iffirstFIDXpage (p.~\fi \global\firstFIDXpagefalse #1} > \def\stopregisterpages{)\dostoptagged\endgroup} > > \defineregister[fidx] > \setupregister[fidx][% > n=1, align=no, >

Re: [NTG-context] Ordered list of references (figures)

2015-09-30 Thread Taco Hoekwater
nd#1{\iffirstFIDXpage (p.~\fi \global\firstFIDXpagefalse #1} \def\stopregisterpages{)\dostoptagged\endgroup} \defineregister[fidx] \setupregister[fidx][% n=1, align=no, %alternative=B, compress=yes, indicator=no, textcommand=\textcommand, pagecom

Re: [NTG-context] Ordered list of references (figures)

2015-09-30 Thread Henning Hraban Ramm
like this?: >>>> >>>> \placefigure[top][someref]{\externalfigure[somepic]}\reference[someref]{Hraban >>>> Ramm} >>>> >>>> \ref[t][someref] (\at{p.}[someref]) % put this in some command that is >>>> called by \listoffigures

Re: [NTG-context] Ordered list of references (figures)

2015-09-27 Thread Henning Hraban Ramm
>> >> Extension: I need to integrate some unnumbered pages into the list, like the >> cover. > > Ok, I can use registers for that: > > \defineregister[fidx] > \setupregister[fidx][% > n=1, > compress=yes, > indicator=no, > distance=0.5em, >

Re: [NTG-context] Ordered list of references (figures)

2015-09-22 Thread Henning Hraban Ramm
t{p.}[someref]) % put this in some command that is called > by \listoffigures ? > > > Extension: I need to integrate some unnumbered pages into the list, like the > cover. Ok, I can use registers for that: \defineregister[fidx] \setupregister[fidx][% n=1, co

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

2015-08-11 Thread Rik Kabel
normal, ] \defineregister[Index] \setupregister [Index][n=2, command=\Word, balance=no, compress=yes, ] \starttexdefinition unexpanded index \dosingleempty\dostar

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

2015-08-01 Thread Rik Kabel
n] \defineprocessor[notBack] [style=normal] \defineregister [Index] \setupregister [Index] [n=2,command=\Word,balance=no,compress=yes] -- rik ___ If your question is of interest to others as well, please add

[NTG-context] placing registers on the same page

2014-11-15 Thread Alan Bowen
I currently have a problem setting the indices of a book. A minimal example \defineregister[mouse][mice] \setupregister[mouse][n=2,balance=no] \defineregister[house][houses] \setupregister[house][n=2,balance=no] \starttext rodents\mouse{rats+large} home\house{ranch+split-level} \page

[NTG-context] Customize register format

2014-03-09 Thread Thangalin
\stopitemize} % #1 - Author; #2 - Author URL; #3 - Section title \define[3]\PhotographerIndexEntry{% \setregisterentry[PhotographerIndex][entries={#1}][ title={#3}, author={#1}, authorurl={#2}, ]{} } \defineregister[PhotographerIndex][ n=1, indicator=no, textcommand=\TextCommand

Re: [NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-26 Thread Jan Tosovsky
pinteraction[state=start] > >> \placebookmarks[chapter] > >> \setupinteractionscreen[option=bookmark] > >> > >> \defineregister[indexname][indexnames] > >> \defineregister[indexsubject][indexsubjects] > >> \setupheadtext[indexname=Name Index] > >> \setu

Re: [NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-26 Thread Hans Hagen
On 11/26/2013 8:03 PM, Jan Tosovsky wrote: On 2013-11-18 Jan Tosovsky wrote: when I specify custom titles for my registers, they are ignored in bookmarks: \setupinteraction[state=start] \placebookmarks[chapter] \setupinteractionscreen[option=bookmark] \defineregister[indexname][indexnames

Re: [NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-26 Thread Jan Tosovsky
On 2013-11-18 Jan Tosovsky wrote: > > when I specify custom titles for my registers, they are ignored in > bookmarks: > > \setupinteraction[state=start] > \placebookmarks[chapter] > \setupinteractionscreen[option=bookmark] > > \defineregister[indexname][in

[NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-18 Thread Jan Tosovsky
Dear All, when I specify custom titles for my registers, they are ignored in bookmarks: \setupinteraction[state=start] \placebookmarks[chapter] \setupinteractionscreen[option=bookmark] \defineregister[indexname][indexnames] \defineregister[indexsubject][indexsubjects] \setupheadtext[indexname

[NTG-context] strange index behaviour with entries inside separatedlist

2013-04-11 Thread WolfgangZ
,right=\eTD, first=\bTR,last=\eTR, before=\bTABLE,after=\eTABLE, setups=MyTableWrong] \defineregister[Correctliste][style=slanted,pagestyle=bold,indicator=no] \setupregister[Correctliste][coupling=yes] \def\Listright#1{\Correctliste{#1}{#1}} \defineregister[Wrongliste][style=slanted

Re: [NTG-context] Problem with local installation - MKIV- register

2013-04-02 Thread Hans Hagen
d parent Erfs for Erf, Erfs defined too (best check it) Am 02.04.2013 00:54, schrieb Philipp Gesang: Hi Wolfgang! · Hello, I have a problem with a using a register in my local installation (MKIV). The minimal example works on contextgarden. The example: \defineregister

Re: [NTG-context] Problem with local installation - MKIV- register

2013-04-02 Thread Wolfgang
Hello Philipp, many thanks for your help! Wolfgang Am 02.04.2013 00:54, schrieb Philipp Gesang: Hi Wolfgang! · Hello, I have a problem with a using a register in my local installation (MKIV). The minimal example works on contextgarden. The example: \defineregister[Erf][Erflist

Re: [NTG-context] Problem with local installation - MKIV- register

2013-04-01 Thread Philipp Gesang
Hi Wolfgang! · > Hello, > I have a problem with a using a register in my local installation > (MKIV). The minimal example works on contextgarden. > > The example: > \defineregister[Erf][Erflist] \defineregister[Erf] It doesn’t appear to be documented anywher

[NTG-context] Problem with local installation - MKIV- register

2013-04-01 Thread WolfgangZ
Hello, I have a problem with a using a register in my local installation (MKIV). The minimal example works on contextgarden. The example: \defineregister[Erf][Erflist] \starttext \chapter{F53667} Hello world! \Erf{Bla} Fool \page \placeregister[Erf] \stoptext The error I get: mtx-context

Re: [NTG-context] \placeregister[index]—preventing page break before

2012-06-27 Thread Alan Bowen
[Kidd] \page[makeup] \stopcomponent The registers are defined in an environment file as follows; %Passages \defineregister[Passage][Passages] \setupregister[Passage][n=3,% balance=yes,% pagestyle={\switchtobodyfont[9.6pt]\em},% textstyle={\switchtobodyfont[9.6pt]},% criterium=all,% intera

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Alan Bowen
s/lines). For instance, >> 123.4--56 is mapped to abcdaaaeaafg >> MKII does not seem to sort digit-based keys reliably; MKIV does, and you >> can just pad out the digits with zeros. The complete sort key that worked >> was the catenation of the author, text, an

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Rogers, Michael K
aaaeaafg MKII does not seem to sort digit-based keys reliably; MKIV does, and you can just pad out the digits with zeros. The complete sort key that worked was the catenation of the author, text, and locus key, which is similar to what you have. MKII: \defineregister[Passage][Passages] ... %

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Alan Bowen
case, up > to 1 pages/lines). For instance, > 123.4--56 is mapped to abcdaaaeaafg > MKII does not seem to sort digit-based keys reliably; MKIV does, and you > can just pad out the digits with zeros. The complete sort key that worked > was the catenation of the author, tex

Re: [NTG-context] indexing puzzle

2012-05-24 Thread Rogers, Michael K
locus key, which is similar to what you have. MKII: \defineregister[Passage][Passages] ... % interface to register -- \locuskey indirectly returns a key in \nextkey \def\MyPassage#1#2#3{\locuskey{#3}\expandoneargafter\doMyPassage{\nextkey}{#1}{#2}{#3}} \def\doMyPassage#1#2#3#4{\Passage[#2#3#1]{{#2}+{

Re: [NTG-context] indexing query

2012-05-11 Thread Hans Hagen
: \defineregister[Passage][Passages] \setupregister[Passage][n=1,% balance=yes,% pagestyle=\tfx\em,% textstyle=\tfx,% criterium=all,% interaction={pagenumber},% ] \setupregister[Passage][indicator=no,distance=0.5em] \starttext See \Passage{Simplicius+{\em In de caelo}+483.15--19}483.15--19

Re: [NTG-context] indexing query

2012-05-11 Thread Alan Bowen
I should add, perhaps, that I am using MKII, since adapting this project to MKIV is not feasible. A. On Fri, May 11, 2012 at 11:45 AM, Alan Bowen wrote: > I am trying to construct an index of passages and have run into a curious > problem: > > The test file is: > \definer

Re: [NTG-context] Registers with distinguishable entries.

2012-04-27 Thread S Barmeier
On 04/26/2012 10:14 PM, Alan BRASLAU wrote: > On Thu, 26 Apr 2012 19:18:55 +0900 > S Barmeier wrote: > >> \defineregister[Music][Musics] > > Musics? > > Alan Hey, that wasn't me..

Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread Robert Blackstone
On Thu, Apr 26, 2012 12:53:57 +0200, Philipp Gesang wrote > You want the ?compress? switch in placeregister, or indicate > ranges with \{start,stop}register: > > > \defineregister [demo] [demoes] > \s

Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread Alan BRASLAU
On Thu, 26 Apr 2012 19:18:55 +0900 S Barmeier wrote: > \defineregister[Music][Musics] Musics? Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-cont

Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread Philipp Gesang
m is discussed on a number of consecutive > pages, usually a range is given in the index, like 144-53, or 143 ff. You want the “compress” switch in placeregister, or indicate ranges with \{start,stop}register: ···· \definer

Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread S Barmeier
Leaving out the plural in \setupregister gives you the setup you set up. \defineregister[Note][Notes] \setupregister[Note][n=2,pagestyle=small,textstyle=normal] \defineregister[Text][Texts] \setupregister[Text][n=2,textstyle=normal,pagestyle=normal] \defineregister[Music][Musics] \setupregister

Re: [NTG-context] UTF8 / TeXUtils parsing error

2011-07-14 Thread luigi scarso
On Fri, Jul 15, 2011 at 2:50 AM, Brian Wedde wrote: > Minimal example: > > > \enableregime[utf] > \defineregister[Index][Indeces] > \starttext > \Index{x}x. > \pagebreak > \placeIndex > \stoptext > > > When compiling, TeXUtils has a heart attack: > >

[NTG-context] UTF8 / TeXUtils parsing error

2011-07-14 Thread Brian Wedde
Minimal example: \enableregime[utf] \defineregister[Index][Indeces] \starttext \Index{x}x. \pagebreak \placeIndex \stoptext When compiling, TeXUtils has a heart attack: . . . TeXUtil | parsing file .tui TeXUtil | fatal error in plugin (processing): invalid multibyte escape /tex

  1   2   >