formatting index entries
Dear list members, In my book I am creating an index. I know that there are commands for formatting index entries, like: \index{sl::īga} if I want the word 'īga' to be printed in slanted type. I also know that we can create sub-entries, like \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? Robert
On 8/21/19 10:59 AM, Robert Zydenbos wrote:
Dear list members,
In my book I am creating an index. I know that there are commands for formatting index entries, like:
\index{sl::īga} [...] \index{īga+emphasized} [...] Any suggestions?
Hi Robert, this worked in MkIV/XL (I don’t know what might happen in MkII): \starttext \index[īga]{{\em īga}} \index[īga+emphasized]{{\em īga+emphasized}} \completeindex \stoptext Just in case it helps, Pablo -- http://www.ousia.tk
Strange, in MkIV I get an error message which I do not understand, because by the look of it, your code (I called the file 'indexpablo.tex') seems in order – but in MkII (which I need) it works. The MkIV error log: This is LuaTeX, Version 1.07.0 (TeX Live 2018) system commands enabled. open source > level 1, order 1, name '/usr/local/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.5.13 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/usr/local/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' close source > level 2, order 2, name '/usr/local/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'indexpablo', input './indexpablo', result 'indexpablo' fonts > latin modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source > level 2, order 3, name '/Users/rz/Documents/work/Kannada-manual-compile-klad/indexpablo.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded structure > sectioning > chapter @ level 2 : 0.1 -> \headtext {index} tex error > tex error on line 50 in file /Users/rz/Documents/work/Kannada-manual-compile-klad/indexpablo.tex: ! Missing } inserted <inserted text> } <to be read again> \endgroup l.50 \stopregisterentry \strc_registers_place_indeed ...\c!pagesegments }} \relax \strc_registers_place ...c_registers_place_indeed \stopmixedcolumns \else \s... \strc_registers_complete ...\currentregister ][#2] \page [\v!yes ]\stopnameds... ... l.5 \stoptext
On 21. Aug 2019, at 17:10, Pablo Rodriguez
wrote: On 8/21/19 10:59 AM, Robert Zydenbos wrote:
Dear list members,
In my book I am creating an index. I know that there are commands for formatting index entries, like:
\index{sl::īga} [...] \index{īga+emphasized} [...] Any suggestions?
Hi Robert,
this worked in MkIV/XL (I don’t know what might happen in MkII):
\starttext \index[īga]{{\em īga}} \index[īga+emphasized]{{\em īga+emphasized}} \completeindex \stoptext
Just in case it helps,
Pablo
I seem to have a problem with Unicode in the indexing function for my book: a word like āyitu (beginning with an 'a' with a macron over it) is considered a word that starts with a 'y'; the word īga (beginning with an i with a macron) is placed as if it is 'ga'. Is there any way to tell the indexing function how to deal with such special characters? Robert
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 : kilesa : defilements}ñon moṅs pa śin tu che
ba yin-no
Richard
--
Richard Mahoney | Indica et Buddhica
Littledene Bay Road Oxford NZ
T: +6433121699 M: +64210640216
r.mahoney@indica-et-buddhica.org
https://indica-et-buddhica.org/
-----Original Message-----
From: Robert Zydenbos
That helps! But in any case, it looks like the problems are actually several (also the one of the precise order of the words in the index), and I think the 'fastest' solution for now is that I just compile the index (only 4 pages), make a separate component file and rearrange the contents 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]
\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 : kilesa : defilements}ñon moṅs pa śin tu che ba yin-no
Richard
Robert Zydenbos schrieb am 22.08.2019 um 01:42:
I seem to have a problem with Unicode in the indexing function for my book: a word like āyitu (beginning with an 'a' with a macron over it) is considered a word that starts with a 'y'; the word īga (beginning with an i with a macron) is placed as if it is 'ga'.
Is there any way to tell the indexing function how to deal with such special characters? How should we know why you have problems with your index entries when you're unable to provide a working minimal example, all you have shown so far are snippets.
Wolfgang
Robert Zydenbos schrieb am 21.08.2019 um 10:59:
Dear list members,
In my book I am creating an index. I know that there are commands for formatting index entries, like:
\index{sl::īga}
if I want the word 'īga' to be printed in slanted type. I also know that we can create sub-entries, like
\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 \dontleavehmode\index{sl->īga} \dontleavehmode\index{īga+normal} \dontleavehmode\index{bf->īga+bold} \placeindex[balance=no] \stoptext Wolfgang
Sorry, that works fine in MkIV, but not in MkII, which I need to use. Robert
On 21. Aug 2019, at 17:33, Wolfgang Schuster
wrote: Robert Zydenbos schrieb am 21.08.2019 um 10:59:
Dear list members,
In my book I am creating an index. I know that there are commands for formatting index entries, like:
\index{sl::īga}
if I want the word 'īga' to be printed in slanted type. I also know that we can create sub-entries, like
\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
\dontleavehmode\index{sl->īga}
\dontleavehmode\index{īga+normal}
\dontleavehmode\index{bf->īga+bold}
\placeindex[balance=no]
\stoptext
Wolfgang
participants (4)
-
Pablo Rodriguez
-
Richard Mahoney | Indica et Buddhica
-
Robert Zydenbos
-
Wolfgang Schuster