Re: [NTG-context] register for biblical citations

2021-04-17 Thread Hans Hagen
On 4/17/2021 7:04 AM, jbf wrote: necessarily understand the Lua code, but I did take the trouble to look As with many such features, indeed we use lua but most of the concepts originate in by now decades old mkii. These replacement tricks that can drive sorting actually come from there. But

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
You will be happy to know that this works perfectly, and naturally I extended the pattern to cover another 30 books or so. I don't necessarily understand the Lua code, but I did take the trouble to look through sort-ini.lua to get some kind of idea of what was happening and basically to

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
Okay, that's all clear enough. Thank you. I'll keep working at it. Julian On 16/4/21 11:08 pm, Hans Hagen wrote: On 4/16/2021 12:22 PM, jbf wrote: There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
I did, actually. But maybe I can play with that a bit further. My first attempt at doing that was unsuccessful (when I got to 'z' I thought I might be able to then go 'za' etc). I'll keep playing, but Hans' luacode approach might ultimately be the solution for me. He's given me the principles;

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
You are correct on both counts; it is not quite random (just not what I was looking for ) and yes, the abbreviated book title needs to be in the mix as well, just in case it also ends up throwing things out. But, as you can see subsequently, each contribution is making things clearer (for me,

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/16/2021 12:22 PM, jbf wrote: There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made explicit: You use a couple of chartacters that will be filtered (crlf and so). Try weird ones, like:

Re: [NTG-context] register for biblical citations

2021-04-16 Thread r . ermers
It seems that the items are actually not randomly listed. It appears to me that the list is sorted on the chapter number, and then the verse number. The abbreviated book title is not involved in this sorting order, which it should be. Robert > Op 16 apr. 2021, om 12:22 heeft jbf het

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Henning Hraban Ramm
> Am 16.04.2021 um 11:47 schrieb jbf : > > So, not sure where to go from here. Could I perhaps return to my earlier > question, which indicated that by using the keyword approach [a] [b] and so > on, as far as [z] I was at least getting a passable result, but how could I > continue past [z]?

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made explicit: (\setupregister[bibcit][language=biblical,before=,indicator=no] but that makes no difference either. Same result. Seemingly random index.

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/16/2021 11:47 AM, jbf wrote: Hans, thanks for your ingenious solution but there is still a way to go I suspect! I implemented (copy-paste) precisely the solution offered and I get an index but with some strange results ! Notice that in my previous own solution (but only as far as 26

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
Hans, thanks for your ingenious solution but there is still a way to go I suspect! I implemented (copy-paste) precisely the solution offered and I get an index but with some strange results ! Notice that in my previous own solution (but only as far as 26 books!) I at least got an index in the

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] register for biblical citations

2021-04-15 Thread Hans Hagen
On 4/14/2021 11:16 PM, jbf wrote: I am wondering if anyone has had to set up a register (index) for biblical citations, where the order is not alphabetical but the order of the biblical books themselves, so, for example, citations from Genesis (e.g. Gen 1:1; Gen 6:4; Ex 15:2; Deut 12:8 etc.

[NTG-context] register for biblical citations

2021-04-14 Thread jbf
I am wondering if anyone has had to set up a register (index) for biblical citations, where the order is not alphabetical but the order of the biblical books themselves, so, for example, citations from Genesis (e.g. Gen 1:1; Gen 6:4; Ex 15:2; Deut 12:8 etc. etc). I am not at all sure how to

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 term in the

[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 has an

[NTG-context] register with section references (instead of pages)

2017-11-08 Thread Pablo Rodriguez
Dear list, I have this sample: \starttext \chapter{One} \index{one} \section{Two} \index{two} \subsection{Three} \index{three} \placeregister[index] \stoptext Is there any way to get section numbers in the index references instead of page numbers? I have

[NTG-context] register sorting

2016-05-25 Thread Manuel Conzelmann
hi everybody, if i place a register at the end of my document its sorted by page numbers and not alphabetically. someone has an idea how to achieve this (from A to Z)? if it would be sorted alphabetically there would be only one indicator per letter: A B C D E F G at the moment it

[NTG-context] Register sort method for unicode quotes

2015-10-05 Thread Rik Kabel
Is there a sort method that can be specified for register sorts that will ignore unicode quote marks (“‘’”) in the same way that primes ("') are ignored. This was asked in 2010 (http://www.mail-archive.com/ntg-context@ntg.nl/msg51348.html) and not answered. It is still a problem. Is there a

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

2015-08-01 Thread Pablo Rodriguez
Hi Rik, sorry for top-posting, but I’m not sure whether I understand your request. I wonder whether the following sample points in the right direction: \setuppapersize[A6] \setuppagenumber[way=bypart, prefix=yes, prefixset=chapter] \startsectionblockenvironment[bodypart]

[NTG-context] Register customization for backmatter page numbers

2015-07-31 Thread Rik
List, I have a book with frontmatter, bodymatter, and backmatter. The frontmatter is pagenumbered with lc roman, and the bodymatter and backmatter are numbered, all by block. The backmatter contain a glossary, pagenotes, bibliography, and an index. In addition to the frontmatter and the

[NTG-context] register in xml

2013-06-11 Thread Thomas A. Schmitz
Hi, may I interest you in a rerun of a question I asked half a year ago? How do you do an index from xml? Here is my naive approach, which ends in all entries being filed under x, which is less than ideal. What would be the proper way of doing this? Thanks Thomas \starttext

Re: [NTG-context] register in xml

2013-06-11 Thread Wolfgang Schuster
Am 11.06.2013 um 12:59 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de: Hi, may I interest you in a rerun of a question I asked half a year ago? How do you do an index from xml? Here is my naive approach, which ends in all entries being filed under x, which is less than ideal. What

Re: [NTG-context] register in xml

2013-06-11 Thread Thomas A. Schmitz
On 06/11/2013 01:08 PM, Wolfgang Schuster wrote: \expanded{\index{…}} Wolfgang Sigh... things can be so easy; I should have tried that myself! Thanks a lot, Wolfgang! Thomas ___ If your question is of

[NTG-context] [register] setup detailed formatting

2011-06-01 Thread Philipp Gesang
Hi all, according to the manual (current draft p. 238f.) the following should work: ···8 \setupinteraction[state=start] \defineregister[myreg][myreg] \setupregister[myreg][textstyle=italic,pagestyle=slanted] %% That’s what it’s about:

Re: [NTG-context] register sorting

2010-11-04 Thread Steffen Wolfrum
Hi Hans, I tested all the combinations that Jano set up (see below) and additionally tried the same, but used ch instead of uc. But none of these runs gave this sorting result: East Prussia Eastern enlargement East-West Institute I would would sort it this way, but maybe I am simply wrong?

[NTG-context] register sorting

2010-10-29 Thread Steffen Wolfrum
Hi, I just installed todays beta and I am not sure if regoster sorting is working properly. Eg. I modify (see below) the example from tricky-002.tex and I would like to achieve ... accession Action Plan association But none of the four methods (before, after, first, last) gives this result!!

Re: [NTG-context] register sorting

2010-10-29 Thread Jano Kula
Hi Steffen, On 10/29/2010 10:39 PM, Steffen Wolfrum wrote: Hi, I just installed todays beta and I am not sure if regoster sorting is working properly. Eg. I modify (see below) the example from tricky-002.tex and I would like to achieve ... accession Action Plan association But none of the

Re: [NTG-context] register broken in latest beta!

2010-10-12 Thread Steffen Wolfrum
Am 12.10.2010 um 13:18 schrieb Hans Hagen: On 12-10-2010 1:10, Steffen Wolfrum wrote: Hi Taco, as it calls itself LuaTeX error ... maybe you could have a look at it and hopefully confirm that error? ! LuaTeX error text/tex/texmf-context/tex/context/base/sort-ini.lua:106:

[NTG-context] register broken in latest beta!

2010-10-11 Thread Steffen Wolfrum
Hi, todays beta gives an error with this test (taken from strc-reg.kmiv at line 35): \starttext \placeregister[index] test \index{aa} test \startregister[index][x]{bb} test \page test \page test \page test \stopregister[index][x] \stoptext ! LuaTeX error

Re: [NTG-context] register broken on steffens machine

2010-10-11 Thread Hans Hagen
On 11-10-2010 6:50, Steffen Wolfrum wrote: system error on line 8 in file index_ff.tex: LuaTeX error runs ok here ... maybe delete the tuc file helps? I found three invalid characters (form feed?) in strc-reg.mkiv: at line 549, 568, 632. indeed ff and there are probably lots of

Re: [NTG-context] Register interaction (page references) [mkIV]

2010-05-20 Thread Hans Hagen
On 18-5-2010 4:13, Thomas Floeren wrote: \setupinteraction[state=start] \startsectionblockenvironment[bodypart] \setupuserpagenumber[number=1] \stopsectionblockenvironment \starttext \startfrontmatter \page[dummy] \page[dummy] \stopfrontmatter \startbodymatter \page[dummy]

[NTG-context] Register interaction (page references) [mkIV]

2010-05-18 Thread Thomas Floeren
Hi, when I place an interactive register in mkIV, and then in the PDF click the pagenumber (in the index), it takes me to the wrong page; it seems to go to the absolute pdf page number(?). Example: \setupinteraction[state=start] \startsectionblockenvironment[bodypart]

[NTG-context] register

2008-01-04 Thread Steffen Wolfrum
Hi, for fine-tuning the TOC I use e.g. ... \writebetweenlist [section] {\def\TOCstyle{\switchtobodyfont[9pt] \setupinterlinespace[line=11.15pt]}} ... for adjusting the vertical space and thus the page breaks. Is is possible to do something similar to the register? Steffen

Re: [NTG-context] register: spurious space one more entry level ask

2007-09-20 Thread Hans Hagen
Vit Zyka wrote: Jupi! Both patches (space 4-level entry) work well as I can test them till now. I will do some testing on a real and big document in a near future. Do you intend to incorporate both patches to the distribution? well, i always do such things directly in the source

[NTG-context] register: spurious space one more entry level ask

2007-09-19 Thread Vit Zyka
Dear ConTeXters, there are 3 topics dealing with register (index): 1. [Spurious space] There are entries like \registerpage{index}{,}{5}{2--1-1-0-1-0-0-0--1}{2} in a *.tuo file. Since the definition (core-reg.tex) \def\dosetpageregisterpage#1#2#3#4#5#6%

Re: [NTG-context] register: spurious space one more entry level ask

2007-09-19 Thread Hans Hagen
Vit Zyka wrote: Dear ConTeXters, there are 3 topics dealing with register (index): 1. [Spurious space] There are entries like \registerpage{index}{,}{5}{2--1-1-0-1-0-0-0--1}{2} in a *.tuo file. Since the definition (core-reg.tex) \def\dosetpageregisterpage#1#2#3#4#5#6%

Re: [NTG-context] register: spurious space one more entry level ask

2007-09-19 Thread Vit Zyka
Jupi! Both patches (space 4-level entry) work well as I can test them till now. I will do some testing on a real and big document in a near future. Do you intend to incorporate both patches to the distribution? Thank you Hans for extremely quick solutions Vit Hans Hagen wrote: Vit Zyka

Re: [NTG-context] register fine tuning

2006-10-26 Thread Steffen Wolfrum
Sorry, same problem here as with your other posting: How should I use this hack? Given that I have a source TEX document (providing the \index{Keyword and the \placeregister{index}} and those TUI and TOU files. Where should I store the line below in order to manipulate (filter?) the TUO? Do

Re: [NTG-context] register fine tuning

2006-10-26 Thread Hans Hagen
Steffen Wolfrum wrote: Sorry, same problem here as with your other posting: How should I use this hack? Given that I have a source TEX document (providing the \index{Keyword and the \placeregister{index}} and those TUI and TOU files. Where should I store the line below in order to

Re: [NTG-context] register fine tuning

2006-10-26 Thread Thomas A. Schmitz
On Oct 25, 2006, at 10:45 PM, Hans Hagen wrote: in mkiv there will be more control because we may move index handling in mem Hans OK, since we're speaking of registers, may I repeat my question from last weekend and add something that could be a bug? First, here's the question: I

Re: [NTG-context] register fine tuning

2006-10-26 Thread Steffen Wolfrum
Am 26.10.2006 um 10:32 schrieb Hans Hagen: hm, you really want to do that now? Yes, please: the printing house is wating for the book today... i'll make a beta that can do: \placeregister[index] \placeregister[index][file=testtest] so, you can copy test.tuo to testtest.tuo and them

[NTG-context] register fine tuning

2006-10-25 Thread Steffen Wolfrum
Hi, I am not sure how a ConTeXt index register is generated and what role the tui and tuo files play. But could it be possible to manually fine tune the generated register? Something like from ... Keywords -- secret 35 -- popular 25, 26, 27, 88, 89 ... to ... Keywords see also Commands --

[NTG-context] Register layout

2006-10-03 Thread Duncan Hothersall
Quick question - how do I alter the width of the hanging indent of a register entry which is too long to fit on one line? I want to differentiate sub-entries, which each have an indent of 1em more than the previous level, from the indentation of longer entries, which by default is also set to

Re: [NTG-context] Register with numeric values

2006-04-26 Thread luigi scarso
I make an example here: %% BEGIN \setupinteraction[state=start] \setupcolors[state=start] \definecolor[BackBrand][black] \definecolor[Brand][white] \newcount\ICfdigit \newif\ifDoZero \DoZerotrue \newif\ifDoOne\DoOnetrue \newif\ifDoTwo\DoTwotrue

Re: [NTG-context] Register with numeric values

2006-04-25 Thread Hans Hagen
luigi scarso wrote: I'm using register with numeric values, eg \defineregister[MyReg][MyRegs] \starttext 123\MyReg[123] 345\MyReg[345] aaa\MyReg[aaa] \page \placeMyReg \stoptext but there aren't head as for entry 'aaa'. I'm looking into core-reg, but I've not ideas. numbers are

[NTG-context] Register with numeric values

2006-04-24 Thread luigi scarso
I'm using register with numeric values, eg \defineregister[MyReg][MyRegs] \starttext 123\MyReg[123] 345\MyReg[345] aaa\MyReg[aaa] \page \placeMyReg \stoptext but there aren't head as for entry 'aaa'. I'm looking into core-reg, but I've not ideas. luigi

[NTG-context] register ranges

2006-02-23 Thread Thomas A. Schmitz
Hi all, I must be obtuse, but I can't find the answer to this easy question: to define a register range, I was using this: \startregister[index]{Menippean} \stopregister[index] and it works. However, when I try to replace [index] with my own key (because I have overlapping ranges)

Re: [NTG-context] register ranges

2006-02-23 Thread Taco Hoekwater
Thomas A. Schmitz wrote: Hi all, I must be obtuse, but I can't find the answer to this easy question: to define a register range, I was using this: \startregister[index]{Menippean} \stopregister[index] and it works. However, when I try to replace [index] with my own key (because

Re: [NTG-context] register ranges

2006-02-23 Thread Thomas A. Schmitz
On Feb 23, 2006, at 12:10 PM, Duncan Hothersall wrote: Hi Thomas. The first [...] in the \startregister command is the name of the register itself, then there is a second one for the sort key/range identifier. So you want: \startregister[index][Menippean]{Menippean}

Re: [NTG-context] register ranges

2006-02-23 Thread Duncan Hothersall
\startregister[index]{Menippean} \stopregister[index] and it works. However, when I try to replace [index] with my own key (because I have overlapping ranges) \startregister[satire]{Menippean} \stopregister[satire] I get errors: ... Hi Thomas. The first [...] in the \startregister

[NTG-context] Register page ranges

2005-08-31 Thread Duncan Hothersall
Bug or feature? In a register (such as the index), a command like \index[key]{entry} creates an index entry sorted as 'key', and there exists also \startregister[key]{entry} ... \stopregister[key] which creates a page range. As far as I can tell, the [key] here plays two roles - the ID of the