[NTG-context] register in xml
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 \startbuffer[demo] document pGustave indextermFlaubert, Gustave/indextermFlaubert./p /document \stopbuffer \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{document|p|indexterm}{xml:*} \stopxmlsetups \xmlregistersetup{xml:test} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1} \par \stopxmlsetups \startxmlsetups xml:indexterm \index{\xmlflush{#1}} \stopxmlsetups \xmlprocessbuffer{whatever}{demo}{} \page \placeregister[index] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register in xml
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 would be the proper way of doing this? Thanks Thomas \starttext \startbuffer[demo] document pGustave indextermFlaubert, Gustave/indextermFlaubert./p /document \stopbuffer \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{document|p|indexterm}{xml:*} \stopxmlsetups \xmlregistersetup{xml:test} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1} \par \stopxmlsetups \startxmlsetups xml:indexterm \index{\xmlflush{#1}} \expanded{\index{…}} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register in xml
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 interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with local installation - MKIV- register
Hello Philipp, many thanks for your help! Wolfgang Am 02.04.2013 00:54, schrieb Philipp Gesang: Hi Wolfgang! ···date: 2013-04-02, Tuesday···from: 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] \defineregister[Erf] It doesn’t appear to be documented anywhere (even the source ...) but in mkiv \defineregister is an ordinary command handler so no fancy plurals anymore. Now the second arg expects an assignment: \defineregister[Erf][style=slanted,pagestyle=bold] Regards Philipp \starttext \chapter{F53667} Hello world! \Erf{Bla} Fool \page \placeregister[Erf] \stoptext The error I get: mtx-context | run 1: luatex --fmt=D:/context/tex/texmf-cache/luatex-cache/c ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=test1 --lua=D:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776f b1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c :fulljobname=./test1.tex --c:input=./test1.tex --c:kindofrun=1 --c:maxnofrun s=8 cont-yes.mkiv This is LuaTeX, Version beta-0.77.0-2013033008 (rev 4622) \write18 enabled. (D:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.03.29 01:03 MKIV fmt: 2013.4.2 int: english/english system 'cont-new.mkiv' loaded (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname 'test1', input 'test1', result 'test1' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (test1.tex{D:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown library 'loc' {D:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{D:/context/tex/texmf/fonts /map/dvips/lm/lm-rm.map} fonts'fallback modern rm 12pt' is loaded structuresectioning chapter @ level 2 : 0.1 - F53667 backend xmp using file 'D:/context/tex/texmf-context/tex/context/bas e/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 ! Missing number, treated as zero. log system tex error on line 8 in file test1.tex: Missing number, treat ed as zero ... to be read again \strc_registers_place ...\registerparameter \c!n \plusone \startcolumns [\c... \syst_helpers_double_empty_one_spaced ...1[{#2}][] to be read again \stoptext l.8 \stoptext ? Any help is welcome. Best regards Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with local installation - MKIV- register
On 4/2/2013 10:08 AM, Wolfgang wrote: Hello Philipp, many thanks for your help! Wolfgang I've added \mult_check_for_parent so at least there is less change for a crash but a complete auto parent define is never going to work so it's reported as error: system error: invalid parent Erfs for Erf, Erfs defined too (best check it) Am 02.04.2013 00:54, schrieb Philipp Gesang: Hi Wolfgang! ···date: 2013-04-02, Tuesday···from: 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] \defineregister[Erf] It doesn’t appear to be documented anywhere (even the source ...) but in mkiv \defineregister is an ordinary command handler so no fancy plurals anymore. Now the second arg expects an assignment: \defineregister[Erf][style=slanted,pagestyle=bold] Regards Philipp \starttext \chapter{F53667} Hello world! \Erf{Bla} Fool \page \placeregister[Erf] \stoptext The error I get: mtx-context | run 1: luatex --fmt=D:/context/tex/texmf-cache/luatex-cache/c ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=test1 --lua=D:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776f b1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c :fulljobname=./test1.tex --c:input=./test1.tex --c:kindofrun=1 --c:maxnofrun s=8 cont-yes.mkiv This is LuaTeX, Version beta-0.77.0-2013033008 (rev 4622) \write18 enabled. (D:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.03.29 01:03 MKIV fmt: 2013.4.2 int: english/english system 'cont-new.mkiv' loaded (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname 'test1', input 'test1', result 'test1' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (test1.tex{D:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown library 'loc' {D:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{D:/context/tex/texmf/fonts /map/dvips/lm/lm-rm.map} fonts'fallback modern rm 12pt' is loaded structuresectioning chapter @ level 2 : 0.1 - F53667 backend xmp using file 'D:/context/tex/texmf-context/tex/context/bas e/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 ! Missing number, treated as zero. log system tex error on line 8 in file test1.tex: Missing number, treat ed as zero ... to be read again \strc_registers_place ...\registerparameter \c!n \plusone \startcolumns [\c... \syst_helpers_double_empty_one_spaced ...1[{#2}][] to be read again \stoptext l.8 \stoptext ? Any help is welcome. Best regards Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well
[NTG-context] Problem with local installation - MKIV- register
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 | run 1: luatex --fmt=D:/context/tex/texmf-cache/luatex-cache/c ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=test1 --lua=D:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776f b1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c :fulljobname=./test1.tex --c:input=./test1.tex --c:kindofrun=1 --c:maxnofrun s=8 cont-yes.mkiv This is LuaTeX, Version beta-0.77.0-2013033008 (rev 4622) \write18 enabled. (D:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.03.29 01:03 MKIV fmt: 2013.4.2 int: english/english system 'cont-new.mkiv' loaded (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname 'test1', input 'test1', result 'test1' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (test1.tex{D:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown library 'loc' {D:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{D:/context/tex/texmf/fonts /map/dvips/lm/lm-rm.map} fonts'fallback modern rm 12pt' is loaded structuresectioning chapter @ level 2 : 0.1 - F53667 backend xmp using file 'D:/context/tex/texmf-context/tex/context/bas e/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 ! Missing number, treated as zero. log system tex error on line 8 in file test1.tex: Missing number, treat ed as zero ... to be read again \strc_registers_place ...\registerparameter \c!n \plusone \startcolumns [\c... \syst_helpers_double_empty_one_spaced ...1[{#2}][] to be read again \stoptext l.8 \stoptext ? Any help is welcome. Best regards Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with local installation - MKIV- register
Hi Wolfgang! ···date: 2013-04-02, Tuesday···from: 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] \defineregister[Erf] It doesn’t appear to be documented anywhere (even the source ...) but in mkiv \defineregister is an ordinary command handler so no fancy plurals anymore. Now the second arg expects an assignment: \defineregister[Erf][style=slanted,pagestyle=bold] Regards Philipp \starttext \chapter{F53667} Hello world! \Erf{Bla} Fool \page \placeregister[Erf] \stoptext The error I get: mtx-context | run 1: luatex --fmt=D:/context/tex/texmf-cache/luatex-cache/c ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=test1 --lua=D:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776f b1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c :fulljobname=./test1.tex --c:input=./test1.tex --c:kindofrun=1 --c:maxnofrun s=8 cont-yes.mkiv This is LuaTeX, Version beta-0.77.0-2013033008 (rev 4622) \write18 enabled. (D:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.03.29 01:03 MKIV fmt: 2013.4.2 int: english/english system 'cont-new.mkiv' loaded (D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname 'test1', input 'test1', result 'test1' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (test1.tex{D:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown library 'loc' {D:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{D:/context/tex/texmf/fonts /map/dvips/lm/lm-rm.map} fonts'fallback modern rm 12pt' is loaded structuresectioning chapter @ level 2 : 0.1 - F53667 backend xmp using file 'D:/context/tex/texmf-context/tex/context/bas e/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 ! Missing number, treated as zero. log system tex error on line 8 in file test1.tex: Missing number, treat ed as zero ... to be read again \strc_registers_place ...\registerparameter \c!n \plusone \startcolumns [\c... \syst_helpers_double_empty_one_spaced ...1[{#2}][] to be read again \stoptext l.8 \stoptext ? Any help is welcome. Best regards Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgppaAvGySpgk.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Preventing page break in register between reference and page number
Am 09.11.2012 um 13:43 schrieb H. Özoguz h.oezo...@mmnetz.de: I don't find this macro in strc-reg.mkiv I am using current version: 2012.05.30 11:26 What do I have to change? You need the beta version but before you do this make a copy of your current version. Even then don’t try to modify the macro in the file itself because the next update changes this back to the old definition with the next update and you can never say how long this would work because it’s a internal macro which could change/disappear. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Preventing page break in register between reference and page number
Hello there, I am relatively new to ConTeXt, now typing a small book in it. I have a problem with the register (index). This is an example: |\definepapersize[MyBook][A6] \setuppapersize[MyBook][A6] % Prints on paper the size of MyBook \starttext \index{A} blub \index{B} blub \index{C} blub \index{D} blub \index{E} blub \index{F} blub \index{G} blub \index{H} blub \index{I} blub \index{J} blub \index{K} blub \index{Long Long Long} blub \index{M} blub \index{N} blub \completeindex \stoptext |The page numer of the reference Long Long Long is set to the next page. How to prevent this? Maybe the reference Long Long Long could break into two lnes or a rule like that? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Preventing page break in register between reference and page number
On 11/9/2012 9:08 AM, H. Özoguz wrote: Hello there, I am relatively new to ConTeXt, now typing a small book in it. I have a problem with the register (index). This is an example: |\definepapersize[MyBook][A6] \setuppapersize[MyBook][A6] % Prints on paper the size of MyBook \starttext \index{A} blub \index{B} blub \index{C} blub \index{D} blub \index{E} blub \index{F} blub \index{G} blub \index{H} blub \index{I} blub \index{J} blub \index{K} blub \index{Long Long Long} blub \index{M} blub \index{N} blub \completeindex \stoptext |The page numer of the reference Long Long Long is set to the next page. How to prevent this? Maybe the reference Long Long Long could break into two lnes or a rule like that? play with \index{Long Long Long}blub and blub\index{Long Long Long} an index entry (currently) inserts a node in the list and that one should be bound to the word Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Preventing page break in register between reference and page number
Am 09.11.2012 um 10:19 schrieb Hans Hagen pra...@wxs.nl: On 11/9/2012 9:08 AM, H. Özoguz wrote: Hello there, I am relatively new to ConTeXt, now typing a small book in it. I have a problem with the register (index). This is an example: […] |The page numer of the reference Long Long Long is set to the next page. How to prevent this? Maybe the reference Long Long Long could break into two lnes or a rule like that? play with \index{Long Long Long}blub and blub\index{Long Long Long} an index entry (currently) inserts a node in the list and that one should be bound to the word The problem is not the \index command but the text in the register, as you can see in the example below the text and the page number are in separate columns (or in the long example on separate pages). \setuppapersize[A6] \starttext \index{Too long entry}Long index entry. \blank \placeindex \stoptext This is caused by this macro in strc-reg.mkiv where you insert only a normal skip between the the text and page number, changing \hskip to \nobreak\hskip moves at least a part of the last word in the entry to the next column in the example above. \unexpanded\def\registerpageseparator% todo: , configurable {\ifconditional\c_strc_registers_page_done \registerpageseparatorsymbol \else \hskip\d_strc_registers_distance\relax \settrue\c_strc_registers_page_done \fi} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Preventing page break in register between reference and page number
Am 09.11.2012 11:05, schrieb Wolfgang Schuster: Am 09.11.2012 um 10:19 schrieb Hans Hagen pra...@wxs.nl: On 11/9/2012 9:08 AM, H. Özoguz wrote: Hello there, I am relatively new to ConTeXt, now typing a small book in it. I have a problem with the register (index). This is an example: […] |The page numer of the reference Long Long Long is set to the next page. How to prevent this? Maybe the reference Long Long Long could break into two lnes or a rule like that? play with \index{Long Long Long}blub and blub\index{Long Long Long} an index entry (currently) inserts a node in the list and that one should be bound to the word The problem is not the \index command but the text in the register, as you can see in the example below the text and the page number are in separate columns (or in the long example on separate pages). \setuppapersize[A6] \starttext \index{Too long entry}Long index entry. \blank \placeindex \stoptext This is caused by this macro in strc-reg.mkiv where you insert only a normal skip between the the text and page number, changing \hskip to \nobreak\hskip moves at least a part of the last word in the entry to the next column in the example above. \unexpanded\def\registerpageseparator% todo: , configurable {\ifconditional\c_strc_registers_page_done \registerpageseparatorsymbol \else \hskip\d_strc_registers_distance\relax \settrue\c_strc_registers_page_done \fi} Wolfgang I don't find this macro in strc-reg.mkiv I am using current version: 2012.05.30 11:26 What do I have to change? Grüße Huseyin strc-reg.mkiv ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Preventing page break in register between reference and page number
On Fri, Nov 9, 2012 at 1:43 PM, H. Özoguz h.oezo...@mmnetz.de wrote: I don't find this macro in strc-reg.mkiv I am using current version: 2012.05.30 11:26 What do I have to change? Grüße Huseyin strc-reg.mkiv update to the new release is an option ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] multi column index register broken
Dear all, Firstly, thanks for the fixes in the index register. Works nicely... However, I am facing an new problem with this very register: It seems that the current beta only works for index registers put in a single column (see below) or did the interface change? Cheers, Andreas VERSION: ConTeXt ver: 2012.07.16 20:58 MKIV fmt: 2012.7.16 MINIMAL EXAMPLE: % \starttext ABC\index{ABC} DEF\index{DEF} GHI\index{GHI} JKL\index{JKL} MNO\index{MNO} % \placeindex[n=1] % works % \completeindex[n=1] % works \completeindex % does not work %\placeindex[n=2] % does not work %\completeindex[n=2] % does not work \stoptext % ERROR MESSAGE: Illegal unit of measure (pt inserted) … to be read again \relax \settotalinsertionheight ...on_height \s!topfloat +\page_insert_insertion_he... \page_mul_set_n_of_lines ...ttotalinsertionheight \d_page_mul_temp \dimexpr ... \page_otr_command_set_vsize ...mul_set_n_of_lines \d_page_mul_temp \nofcolum... \page_mul_start ... \plusone \page_mul_start_yes \else \page_mul_start_nop ... \strc_registers_place ...rparameter \c!tolerance ] \strc_registers_place_inde... … ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] multi column index register broken
On 16-7-2012 23:44, Andreas Mang wrote: Dear all, Firstly, thanks for the fixes in the index register. Works nicely... However, I am facing an new problem with this very register: It seems that the current beta only works for index registers put in a single column (see below) or did the interface change? must be \def\page_insert_insertion_height_indeed#1% {\ifvoid#1\zeropoint\else1\skip#1+\ht#1\fi} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [register] setup detailed formatting
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: \setupregister[myreg][alt][textstyle=bold] \starttext \myreg{one}one \myreg{two}two \myreg{three}three %% This works in mkii but not mkiv. \myreg[alt::two]{two}two \myreg[alt::zwo]{two}two \myreg[alt::zwo]{alt::two}two \myreg{alt::two}two \myreg{one}one \placemyreg \stoptext ···8 (mtx-context | current version: 2011.05.12 15:19 This is LuaTeX, Version beta-0.71.0-2011060119 (rev 4285)) Mkii is fine but I seem to need this functionality in mkiv for local font switches (when entries are in a different script). Am I using this right? Any known workaround? Thanks for your help Philipp pgpfQ0DefkbI1.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working
Hi, How can one modify the header of a Register, after it apparently inherited from Chapter ?In the following example, I try to have the title INDEX at the same height as the title CHAPTER,but neither the \setuphead nor \setupregister commands seem to do anything.Is there another command for that ?I couldn't find it. Thanks for help ! \setupinteraction[state=start] \setuplabeltext[chapter=CHAPITRE~]\setuphead[chapter][ align=middle, before={\crlf\blank[1cm-4.2ex]},style={\blank[2cm]}, after={\blank[3cm]},header=empty, ] \defineregister[MyIndex][MyIndexs]\setupheadtext[MyIndex=INDEX] \setupregister[MyIndex][{\blank[0cm]}] %% not working\setuphead[register][{\blank[0cm]}] %% not working \starttext \startbodymatter\chapter{Chapter}\MyIndex{word}word\stopbodymatter \startbackmatter\completeMyIndex\stopbackmatter \stoptext Mathieu ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working
Am 27.05.2011 um 20:32 schrieb Mathieu DUPONT: Hi, How can one modify the header of a Register, after it apparently inherited from Chapter ? In the following example, I try to have the title INDEX at the same height as the title CHAPTER, but neither the \setuphead nor \setupregister commands seem to do anything. Is there another command for that ? I couldn't find it. Thanks for help ! \setupinteraction[state=start] \setuplabeltext[chapter=CHAPITRE~] \setuphead[chapter][ align=middle, before={\crlf\blank[1cm-4.2ex]}, style={\blank[2cm]}, after={\blank[3cm]}, header=empty, ] \setuphead [chapter] [alternative=middle, before={\blank[force,1cm]}, numbercommand=\groupedcommand{}{\blank[2cm]}, after={\blank[3cm]}, header=empty] \defineregister[MyIndex][MyIndexs] \setupheadtext[MyIndex=INDEX] \setupregister[MyIndex][{\blank[0cm]}] %% not working \setuphead[register][{\blank[0cm]}] %% not working Invalid setup, the second argument expects assignments. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working
This is fixing a lot of problems I had, thank you ! Mathieu From: schuster.wolfg...@googlemail.com Date: Fri, 27 May 2011 20:46:01 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working Am 27.05.2011 um 20:32 schrieb Mathieu DUPONT:Hi, How can one modify the header of a Register, after it apparently inherited from Chapter ?In the following example, I try to have the title INDEX at the same height as the title CHAPTER,but neither the \setuphead nor \setupregister commands seem to do anything.Is there another command for that ?I couldn't find it. Thanks for help ! \setupinteraction[state=start] \setuplabeltext[chapter=CHAPITRE~]\setuphead[chapter][ align=middle, before={\crlf\blank[1cm-4.2ex]},style={\blank[2cm]}, after={\blank[3cm]},header=empty, ] \setuphead [chapter] [alternative=middle, before={\blank[force,1cm]}, numbercommand=\groupedcommand{}{\blank[2cm]}, after={\blank[3cm]}, header=empty] \defineregister[MyIndex][MyIndexs]\setupheadtext[MyIndex=INDEX] \setupregister[MyIndex][{\blank[0cm]}] %% not working\setuphead[register][{\blank[0cm]}] %% not working Invalid setup, the second argument expects assignments. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Coupled register errors!
On 05/11/2011 12:32 PM, Hans Hagen wrote: On 11-5-2011 12:20, Verhaag, G.C.H.M. wrote: Hi, A few years ago I created a screen document met menus and coupled registers, and it just worked fine. A fresh compilation of this document throws several 'undefined control sequence' errors; so I wonder what has happened to this feature? Are commands like \defineregister, \setupregister and \couple(d)register still valid ConTeXt commands? Currently I use ConTeXt ver: 2011.03.30 11:21 MKIV fmt: 2011.3.30 int: english/english. coupled registers are not (yet) implemented in mkiv (delayed till I need it in some project) Hans ... Hi, Hans, thanks for your answer! Hopefully, you find time some day to implement it in MkIV! Regards, Gerard Verhaag ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Coupled register errors!
Hi, A few years ago I created a screen document met menus and coupled registers, and it just worked fine. A fresh compilation of this document throws several 'undefined control sequence' errors; so I wonder what has happened to this feature? Are commands like \defineregister, \setupregister and \couple(d)register still valid ConTeXt commands? Currently I use ConTeXt ver: 2011.03.30 11:21 MKIV fmt: 2011.3.30 int: english/english. Regards, Gerard Verhaag ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Coupled register errors!
On 11-5-2011 12:20, Verhaag, G.C.H.M. wrote: Hi, A few years ago I created a screen document met menus and coupled registers, and it just worked fine. A fresh compilation of this document throws several 'undefined control sequence' errors; so I wonder what has happened to this feature? Are commands like \defineregister, \setupregister and \couple(d)register still valid ConTeXt commands? Currently I use ConTeXt ver: 2011.03.30 11:21 MKIV fmt: 2011.3.30 int: english/english. coupled registers are not (yet) implemented in mkiv (delayed till I need it in some project) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] changing title of register displayed with \completeregistername
Am 09.02.2011 um 08:46 schrieb Daniel Lyons: Hi, I'm trying to get a register to show a title other than the name of the register in the code, and not having much luck. For example, \defineregister[pgtype][pgtypes] \completepgtype produces a page with the title Pgtype, when I'd like it to say PostgreSQL Types instead. (Also, the documentation led me to believe the function should be called \completepgtypes rather than \completepgtype.) The wiki suggests \setupheadtext[name=PostgreSQL Types] on http://wiki.contextgarden.net/Registers but this seems to have no effect, which makes sense to me, because it doesn't seem to have enough information. What's the trick? \setupheadtext[pgtype=PostgreSQL Types] or \setupheadtext[en][pgtype=PostgreSQL Types] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] changing title of register displayed with \completeregistername
Hi, I'm trying to get a register to show a title other than the name of the register in the code, and not having much luck. For example, \defineregister[pgtype][pgtypes] \completepgtype produces a page with the title Pgtype, when I'd like it to say PostgreSQL Types instead. (Also, the documentation led me to believe the function should be called \completepgtypes rather than \completepgtype.) The wiki suggests \setupheadtext[name=PostgreSQL Types] on http://wiki.contextgarden.net/Registers but this seems to have no effect, which makes sense to me, because it doesn't seem to have enough information. What's the trick? Thanks, — Daniel Lyons ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register sorting
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? Regards, Steffen Am 30.10.2010 um 02:33 schrieb 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 four methods (before, after, first, last) gives this result!! What is wrong? Methods were rewritten to give more flexibility. From the Hans' explanation: \startquote [pzm][mc] = [plus|zero|minus offsets][mapping|cases] uc == unicode order ok, a bit cryptic but one can now choose methods more explicitly (with the four predefined) cases : lowercasing with shapebased pre/post injection mapping : given language mapping with shapebased pre/post injection Not all combinations make sense so we might need to figure out which ones to document. With too much simplification (shape based) the sorter will not sort right as there always need to be some distinction. \stopquote Bellow is the example with possible combinations, so try which one suits you best. At least method={zm,mc,uc} gives what you want, but I don't know your border cases. Jano % tricky-006.tex \setuplayout[topspace=1cm,height=middle] \setupbodyfont[11pt] \starttext \def\Test#1% {\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank} wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank \startcolumns[n=3] \Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc} \Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc} \Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc} \stopcolumns \page wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank \startcolumns[n=3] \Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc} \Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc} \Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc} \stopcolumns \page \dorecurse {2} { \page \recurselevel: \index{oá} \index{öb} \index{Oč} \index{Öď} \index{oo} \index{öo} \index{Oo} \index{Öo} \index{Öq} \index{öř} \index{Oš} \index{oů} done } ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] register sorting
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!! What is wrong? Steffen --- \starttext \subject{before : Oo Öo oo öo} \placeregister[index][language=en,method=before] \par \subject{after : oo öo Oo Öo} \placeregister[index][language=en,method=after] \par \subject{first : Oo oo Öo öo} \placeregister[index][language=en,method=last] \par \subject{last : oo Oo öo Öo} \placeregister[index][language=en,method=first] \par \dorecurse {3} { \page \recurselevel: \index{Action plans} \index{association} \index{accession} \index{bOo} \index{bõö} \index{bõo} \index{boö} \index{oo} \index{öo} \index{Oo} \index{Öo} done } \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register sorting
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 four methods (before, after, first, last) gives this result!! What is wrong? Methods were rewritten to give more flexibility. From the Hans' explanation: \startquote [pzm][mc] = [plus|zero|minus offsets][mapping|cases] uc == unicode order ok, a bit cryptic but one can now choose methods more explicitly (with the four predefined) cases : lowercasing with shapebased pre/post injection mapping : given language mapping with shapebased pre/post injection Not all combinations make sense so we might need to figure out which ones to document. With too much simplification (shape based) the sorter will not sort right as there always need to be some distinction. \stopquote Bellow is the example with possible combinations, so try which one suits you best. At least method={zm,mc,uc} gives what you want, but I don't know your border cases. Jano % tricky-006.tex \setuplayout[topspace=1cm,height=middle] \setupbodyfont[11pt] \starttext \def\Test#1% {\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank} wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank \startcolumns[n=3] \Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc} \Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc} \Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc} \stopcolumns \page wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank \startcolumns[n=3] \Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc} \Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc} \Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc} \stopcolumns \page \dorecurse {2} { \page \recurselevel: \index{oá} \index{öb} \index{Oč} \index{Öď} \index{oo} \index{öo} \index{Oo} \index{Öo} \index{Öq} \index{öř} \index{Oš} \index{oů} done } ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: register broken on steffens machine
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: attempt to compare nil with number stack traceback: ...text/tex/texmf-context/tex/context/base/sort-ini.lua:106: in function...text/tex/texmf-context/tex/context/base/sort-ini.lua:105 ...text/tex/texmf-context/tex/context/base/sort-ini.lua:416: in function 'firstofsplit' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:403: in function 'finalize' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:427: in function 'analyzed' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:789: in function 'process' main ctx instance:1: in main chunk. system error on line 7 in file index_ff.tex: LuaTeX error should work ok with the latest ... did you delete the tuc file first? btw, this is related to the somewhat weird feature of setting index entries at the end - i might remove that feature if it keeps interfering - - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: register broken on steffens machine
Am 12.10.2010 um 13:18 schrieb Hans Hagen: btw, this is related to the somewhat weird feature of setting index entries at the end - i might remove that feature if it keeps interfering - When I have to deal with documents that were written in MSWord and export them to eg. TEI XML, it looks like this: anchor type=bookmark-start xml:id=Keyword/ ... text, text ... index termIndexentry/term index termSubentry/term /index /index anchor type=bookmark-end corresp=#Keyword/ So, setting the index entrie at the end matches this order quite well ... And as a lot of documents originally are written in MSWord your feature is very useful! Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register broken in latest beta!
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: attempt to compare nil with number stack traceback: ...text/tex/texmf-context/tex/context/base/sort-ini.lua:106: in function...text/tex/texmf-context/tex/context/base/sort-ini.lua:105 ...text/tex/texmf-context/tex/context/base/sort-ini.lua:416: in function 'firstofsplit' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:403: in function 'finalize' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:427: in function 'analyzed' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:789: in function 'process' main ctx instance:1: in main chunk. system error on line 7 in file index_ff.tex: LuaTeX error should work ok with the latest ... Yes, with todays beta (ConTeXt ver: 2010.10.12) it works again. Thanks for the fast fix! Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] register broken in latest beta!
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 ...text/tex/texmf-context/tex/context/base/sort-ini.lua:106: attempt to compare nil with number stack traceback: ...text/tex/texmf-context/tex/context/base/sort-ini.lua:106: in function ...text/tex/texmf-context/tex/context/base/sort-ini.lua:105 ...text/tex/texmf-context/tex/context/base/sort-ini.lua:416: in function 'firstofsplit' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:403: in function 'finalize' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:427: in function 'analyzed' ...text/tex/texmf-context/tex/context/base/strc-reg.lua:789: in function 'process' main ctx instance:1: in main chunk. system error on line 8 in file index_ff.tex: LuaTeX error ... Greetings, Steffen BTW: I found three invalid characters (form feed?) in strc-reg.mkiv: at line 549, 568, 632. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register broken on steffens machine
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 them in sources (worked quite nice when we used an editor that used them as markers) ... nothing illegal with them afaik Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] change register entry separator
Hello Hans, On 10/01/2010 11:20 PM, Hans Hagen wrote: On 1-10-2010 12:02, Jano Kula wrote: Hi, any way to change register entry and subentry separator from + to something else? Preferably to kanji character, so I'm sure it will not appear in the text. Entries and subentries are autoflushed, so it can be really anything. Other way around: I substitute + with PLUS in index terms before writing into the index, but which command is reading the sorted index entries to change it back to + when typesetting the sorted index on pages? \setregisterentry[index] [entries:1=..., entries:2=..., entries:3=..., keys:1=..., keys:2=..., keys:3=..., ... Thank you, it took me a while, to find out if this was the answer to the first or second question ;) Partly, because there is a bug somewhere, I think. If the entry with [keys:1=blue, keys:2=red] is supposed to be sorted by blue on the first level, and by red on the second, it doesn't work as expected. Instead of keys, the entries are written into the *.tuc file. Can you, please, have a look at the minimal example? Thanks, Jano \starttext \placeregister[index] \blank[3*big] \page % works \setregisterentry[index][entries=aaa,keys=bbb] page 2 \page % works \setregisterentry[index][entries:1=aaa,entries:2=bbb] page 3 \page % doesn't work % in *.tuc file the entries are written on both positions % { aaa, aaa }, % { bbb, bbb }, \setregisterentry[index][entries:1=aaa,entries:2=bbb,keys:1=ccc,keys:2=ddd] page 4 \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] change register entry separator
On 1-10-2010 12:02, Jano Kula wrote: Hi, any way to change register entry and subentry separator from + to something else? Preferably to kanji character, so I'm sure it will not appear in the text. Entries and subentries are autoflushed, so it can be really anything. Other way around: I substitute + with PLUS in index terms before writing into the index, but which command is reading the sorted index entries to change it back to + when typesetting the sorted index on pages? \setregisterentry[index] [entries:1=..., entries:2=..., entries:3=..., keys:1=..., keys:2=..., keys:3=..., ... ok, not nice that it's plural but there's also the regular 'entries' - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] change register entry separator
Hi, any way to change register entry and subentry separator from + to something else? Preferably to kanji character, so I'm sure it will not appear in the text. Entries and subentries are autoflushed, so it can be really anything. Other way around: I substitute + with PLUS in index terms before writing into the index, but which command is reading the sorted index entries to change it back to + when typesetting the sorted index on pages? Thanks, Jano ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] realpage in register
Hi, I want to set up a register that shows the number of userpage and the number of realpage (used in pdf numbering). I was thinking of something like ... \def\BothPageNumbers#1 {#1 (\realpageno[#1])} \setupregister[index][pagecommand=\BothPageNumbers] ... only, I don't know how to address the corresponding realpage number ;o( Any idea? Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] realpage in register
On Tue, Sep 28, 2010 at 12:37 PM, Steffen Wolfrum cont...@st.estfiles.de wrote: Hi, I want to set up a register that shows the number of userpage and the number of realpage (used in pdf numbering). I was thinking of something like ... \def\BothPageNumbers#1 {#1 (\realpageno[#1])} \setupregister[index][pagecommand=\BothPageNumbers] ... only, I don't know how to address the corresponding realpage number ;o( Any idea? strc-pag.mkiv:\def\realfolio{\the\realpageno} strc-pag.mkiv:\def\userfolio{\the\userpageno} strc-pag.mkiv:\def\subfolio {\the\subpageno } just an idea, btw -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tagged register
On 26-9-2010 8:49, Steffen Wolfrum wrote: argument \t!registerpagerange i'll fix this - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Tagged register
Hi, up to now one can use either collapsed registeres ... \placeregister[index][compress=yes] or tagged PDF ... \setupstructure[state=start] Otherwise there is an error (see below). Couldn't we also have both, or is this impossible by the logic of structure? (I have to admit, I never saw the combination of a tagged pdf with collapsed register ...) Steffen === ! Undefined control sequence. system error on line 26 in file Ohnee-Titel.tex: Undefined control sequence ... 16 \starttext 17 \placeregister[index][compress=yes] \blank[2*big] 18 \page 19 \dorecurse{10}{test 1:!\startregister[index]{test} test 20 \stopregister{} 21 \page} 22 \dorecurse{5} {test 2:\recurselevel \page} 23 \dorecurse{10}{test 3:!\startregister[index]{test} test 24 \stopregister{} 25 \page} 26\dorecurse{5} {test 4:\recurselevel \page} 27 \dorecurse{1} {test 5:!\startregister[index]{test} test 28 \stopregister{} 29 \page} 30 \dorecurse{5} {test 6:\recurselevel \page} 31 \dorecurse{10}{test 7:!\startregister[index]{test} test 32 \stopregister{} 33 \page} 34 \stoptext argument \t!registerpagerange \dododostarttagged ...a {structures.tags.start(#1 ,{ label = \dogetupsomet... \registerpagerange ...\t!registerpagerange \empty \dostarttagged \t!register... l.26 } \doplaceregister ...ameter \c!pagesegments , } )} \stoppacked \stopcolumns \... l.17 \placeregister[index][compress=yes] \blank[2*big] ? Process aborted ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Register interaction (page references) [mkIV]
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] bla\index{bla} \stopbodymatter \placeregister[index] \stoptext \unprotect \def\withregisterpagecommand#1#2#3% {\def\currentregisterpageindex{#1}% \iflocation \goto{\registerparameter\c!pagecommand{#3}}[internal(#1)]% \else \registerparameter\c!pagecommand{#3}% \fi} \protect - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Register interaction (page references) [mkIV]
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] \setupuserpagenumber[number=1] \stopsectionblockenvironment \starttext \startfrontmatter \page[dummy] \page[dummy] \stopfrontmatter \startbodymatter \page[dummy] bla\index{bla} \stopbodymatter \placeregister[index] \stoptext Is there something new I have to configure to make it work? MkII works as expected. Thomas ConTeXt ver: 2010.05.13 12:15 MKIV fmt: 2010.5.18 int: english/english ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] tlig not active in register
Dear list, I'd love to provide a minimal example but before I figure out how to do that a short question: I'm using the same font in the body text and registers: Jannon Text, tex ligatures via fontfeatures work in the body text but not in registers in page scopes. Any ideas? Piotr -- http://okle.pl ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] tlig not active in register
Is there a simple way to force replacing of double hyphen by a unicode en dash in registers? P. 2010/3/17 Piotr Kopszak kops...@gmail.com: Dear list, I'd love to provide a minimal example but before I figure out how to do that a short question: I'm using the same font in the body text and registers: Jannon Text, tex ligatures via fontfeatures work in the body text but not in registers in page scopes. Any ideas? Piotr -- http://okle.pl -- http://okle.pl ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] tlig not active in register
On 17-3-2010 19:30, Piotr Kopszak wrote: Is there a simple way to force replacing of double hyphen by a unicode en dash in registers? can you make a test file that shows the problem - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] tlig not active in register
Here it is, for archives only, as the bug is no longer there with today's minimals. I noticed it with context version of 2009.09.25 23:52. Evidently time to update. \setupregister[index][pagestyle=\it] \usetypescript[iwona] \switchtobodyfont[iwona] \starttext first \index[first]{first item} \page first \index[first]{first item} \page first \index[first]{first item} \page \placeindex[compress=yes] \stoptext Piotr 2010/3/17 Hans Hagen pra...@wxs.nl: On 17-3-2010 19:30, Piotr Kopszak wrote: Is there a simple way to force replacing of double hyphen by a unicode en dash in registers? can you make a test file that shows the problem - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - -- http://okle.pl ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can not register the callback functions in MkIV
2010/2/19 Yanrui Li liyanrui...@gmail.com Hi, Now it seems that we have not allowed to register the callback functions since beta 2010.02.18. For example: \startluacode local old_pre_linebreak_filter = callback.find ('pre_linebreak_filter') local function my_pre_linebreak_filter (head, groupcode) if old_pre_linebreak_filter then old_pre_linebreak_filter (head, groupcode) end print ('This is my pre_linebreak_callback') return true end callback.register ('pre_linebreak_filter', my_pre_linebreak_filter) \stopluacode \starttext This is just a test! \stoptext The 'my_pre_linebreak_filter' function can not work again. Is this a bug? -- Best regards, Li Yanrui I see. The 'pre_linebreak_filter' callback function is frozen. -- Best regards, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can not register the callback functions in MkIV
On 19-2-2010 13:21, Yanrui Li wrote: 2010/2/19 Yanrui Liliyanrui...@gmail.com Hi, Now it seems that we have not allowed to register the callback functions since beta 2010.02.18. For example: \startluacode local old_pre_linebreak_filter = callback.find ('pre_linebreak_filter') local function my_pre_linebreak_filter (head, groupcode) if old_pre_linebreak_filter then old_pre_linebreak_filter (head, groupcode) end print ('This is my pre_linebreak_callback') return true end callback.register ('pre_linebreak_filter', my_pre_linebreak_filter) \stopluacode \starttext This is just a test! \stoptext The 'my_pre_linebreak_filter' function can not work again. Is this a bug? -- Best regards, Li Yanrui I see. The 'pre_linebreak_filter' callback function is frozen. indeed as otherwise you kick out functionality; there are two user hooks: tasks.appendaction(processors,before,modules.mine.whatever_a) tasks.appendaction(processors,after,modules.mine.whatever_b) as it's impossible to forsee what interference happens it will be clear that there is no support beyonf this Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Can not register the callback functions in MkIV
Hi, Now it seems that we have not allowed to register the callback functions since beta 2010.02.18. For example: \startluacode local old_pre_linebreak_filter = callback.find ('pre_linebreak_filter') local function my_pre_linebreak_filter (head, groupcode) if old_pre_linebreak_filter then old_pre_linebreak_filter (head, groupcode) end print ('This is my pre_linebreak_callback') return true end callback.register ('pre_linebreak_filter', my_pre_linebreak_filter) \stopluacode \starttext This is just a test! \stoptext The 'my_pre_linebreak_filter' function can not work again. Is this a bug? -- Best regards, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Alphabetical order in register
Hello, the German umlauts are not sorted correctly in a register. How can I change their positions? Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Alphabetical order in register
Did you remember about \language[de] in the preamble? 2009/11/27, Gerhard Kugler pra...@psychotherapie-kugler.de: Hello, the German umlauts are not sorted correctly in a register. How can I change their positions? Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- http://okle.pl ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sort register (index) by Bible book
Taco == Taco Hoekwater t...@elvenkind.com writes: Taco You could pre-assign a zero-padded number to each book Taco (Genesis=001, Exodus=002), and use that number inside the Taco square brackets. Right, but that would be extremely annoying to type in all the time :-) I'm looking for a more automated solution, but given that even you don't know one, it seems I have to write some sorting mechanism myself. Or perhaps use the trick above as the input is XML, and the verses are clearly marked, so I could generate ConTeXt with the proper sort codes. Who does the index sorting, is that texexec? -- Cheers, Berend de Boer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sort register (index) by Bible book
ber...@pobox.com wrote: Taco == Taco Hoekwater t...@elvenkind.com writes: Taco You could pre-assign a zero-padded number to each book Taco (Genesis=001, Exodus=002), and use that number inside the Taco square brackets. Right, but that would be extremely annoying to type in all the time :-) I'm looking for a more automated solution, but given that even you don't know one, it seems I have to write some sorting mechanism myself. Or perhaps use the trick above as the input is XML, and the verses are clearly marked, so I could generate ConTeXt with the proper sort codes. Who does the index sorting, is that texexec? in mkii yes, and in mkiv it's done in lua if you go for xml, an duse mkiv, then you can write your own sorting code as you can access the tree Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sort register (index) by Bible book
ber...@pobox.com wrote: Taco == Taco Hoekwater t...@elvenkind.com writes: Taco You could pre-assign a zero-padded number to each book Taco (Genesis=001, Exodus=002), and use that number inside the Taco square brackets. Right, but that would be extremely annoying to type in all the time :-) \def\Genesis#1{\index[001 #1]{Genesis #1}} etc. Takes only 66 macros and it even saves you typing :) I'm looking for a more automated solution, but given that even you don't know one, it seems I have to write some sorting mechanism myself. Or perhaps use the trick above as the input is XML, and the verses are clearly marked, so I could generate ConTeXt with the proper sort codes. Who does the index sorting, is that texexec? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sort register (index) by Bible book
On 17/11/2009 07:48, Taco Hoekwater wrote: Using \index[Samuel 1 1:1]{1 Samuel 1:1} Should change the sort order. Untested, though. He probably wants to get Genesis before Exodus (etc.) instead. So would it be possible to tell the index mechanism to sort certain items in an arbitrary order? (I don't know what \sort and \loadsorts do?) Jelle ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sort register (index) by Bible book
Jelle Huisman wrote: On 17/11/2009 07:48, Taco Hoekwater wrote: Using \index[Samuel 1 1:1]{1 Samuel 1:1} Should change the sort order. Untested, though. He probably wants to get Genesis before Exodus (etc.) instead. So would it be possible to tell the index mechanism to sort certain items in an arbitrary order? (I don't know what \sort and \loadsorts do?) You could pre-assign a zero-padded number to each book (Genesis=001, Exodus=002), and use that number inside the square brackets. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Sort register (index) by Bible book
Hi All, I'm typesetting a book that has a register of Bible verses. I like to order them by Bible book as per the order the books are customarily listed. The index is created like \index{1 Samuel 1:1} and retrieved with \placeindex, so that's all standard. Are there any tools to sort this index? How can I make this part of the regular build? Or is this something you do once, at the end, by hand? -- Thanks for any pointers, Berend de Boer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sort register (index) by Bible book
ber...@pobox.com wrote: Hi All, I'm typesetting a book that has a register of Bible verses. I like to order them by Bible book as per the order the books are customarily listed. The index is created like \index{1 Samuel 1:1} and retrieved with \placeindex, so that's all standard. Using \index[Samuel 1 1:1]{1 Samuel 1:1} Should change the sort order. Untested, though. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 'See also' entries in register
Dear Duncan, its a long time since you posted this ... After the fun in Bohinj, I try to catch up ... I do not know which version of Context you use. With ConTeXt ver: 2008.08.11 11:45 MKIV fmt: 2008.8.11 int: english/english I get the desired result i.e. the page-number behind ConTeXt. However also here with ConTeXt ver: 2008.08.11 11:45 MKII fmt: 2008.8.11 int: english/english, the pagenumber is assigned to the see entry. Willli On Aug 18, 2008, at 5:41 PM, Duncan Hothersall wrote: \starttext I wish I was going to the ConTeXt\index{ConTeXt} meeting this year to enjoy all the fun\seeindex{ConTeXt}{also fun}. \placeindex \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 'See also' entries in register
No response to this - can I ask, is this a case of a bug in a mkII feature that is replaced in mkIV so isn't worth fixing? Understandable if so, just wanted to check... Duncan I wrote: \starttext I wish I was going to the ConTeXt\index{ConTeXt} meeting this year to enjoy all the fun\seeindex{ConTeXt}{also fun}. \placeindex \stoptext I get output like this: -- I wish I was going to the ConTeXt meeting this year to enjoy all the fun. c ConTeXt see also fun 1 -- But I want this: --I wish I was going to the ConTeXt meeting this year to enjoy all the fun. c ConTeXt 1 see also fun -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 'See also' entries in register
Duncan Hothersall wrote: No response to this - can I ask, is this a case of a bug in a mkII feature that is replaced in mkIV so isn't worth fixing? Understandable if so, just wanted to check... i'll reply in private - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] 'See also' entries in register
I know everyone is preparing for fun in Bohinj (and I am gutted that I am missing it this year) but it would be really great if someone had the chance to work out how to fix this problem: \starttext I wish I was going to the ConTeXt\index{ConTeXt} meeting this year to enjoy all the fun\seeindex{ConTeXt}{also fun}. \placeindex \stoptext I get output like this: -- I wish I was going to the ConTeXt meeting this year to enjoy all the fun. c ConTeXt see also fun 1 -- But I want this: --I wish I was going to the ConTeXt meeting this year to enjoy all the fun. c ConTeXt 1 see also fun -- Why is the page number of the first index entry attaching itself to the see subentry instead of the top level entry? Is it my syntax, or is it a bug? Thank you... Duncan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finish register sorting (was LuaTeX problems)
On Fri, Jul 4, 2008 at 9:37 AM, Hans Hagen [EMAIL PROTECTED] wrote: Wolfgang Schuster wrote: On Thu, Jul 3, 2008 at 8:21 PM, Tomi Lindberg [EMAIL PROTECTED] wrote: 2008/7/3, Wolfgang Schuster [EMAIL PROTECTED]: I wrote a sorter for finish but we should test it before it can be included. I'll give it a try later. And just by glancing there's an ordering error - 'å' should be before 'ä'. I assume I just add the luacode section to my environment, switch locations of 'å' and 'ä' and that's it? Yes, yes and yes. You have to switch ä and å but I corrected my version. i added the vector to sort-lan.lua There is something wrong in the encoding for the finish sorting. [51] = z, [53] = Ã¥, [55] = ä, [57] = ö, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finish register sorting (was LuaTeX problems)
[51] = z, [53] = Ã¥, [55] = ä, [57] = ö, Indeed, the UTF-8 encoding has been badly interpreted as Windows-1252, it seems (and then recoded back in UTF-8 :-) I attach the correctly encoded file (I also corrected “finish” :-) Arthur -- filename : sort-lan.lua -- comment : companion to sort-lan.tex -- author : Hans Hagen, PRAGMA-ADE, Hasselt NL -- copyright: PRAGMA ADE / ConTeXt Development Team -- license : see context related readme files if not versions then versions = { } end versions['sort-lan'] = 1.001 -- this is a rather preliminary and incomplete file -- maybe we should load this kind of stuff runtime -- english -- The next one can be more efficient when not indexed this way, but -- other languages are sparse so for the moment we keep this one. sorters.entries['en'] = { [ 1] = a, [ 3] = b, [ 5] = c, [ 7] = d, [ 9] = e, [11] = f, [13] = g, [15] = h, [17] = i, [19] = j, [21] = k, [23] = l, [25] = m, [27] = n, [29] = o, [31] = p, [33] = q, [35] = r, [37] = s, [39] = t, [41] = u, [43] = v, [45] = w, [47] = x, [49] = y, [51] = z, [ 2] = 1, [ 4] = 3, [ 6] = 5, [ 8] = 7, [10] = 9, [12] = 11, [14] = 13, [16] = 15, [18] = 17, [20] = 19, [22] = 21, [24] = 23, [26] = 25, [28] = 27, [30] = 29, [32] = 31, [34] = 33, [36] = 35, [38] = 37, [40] = 39, [42] = 41, [44] = 43, [46] = 45, [48] = 47, [50] = 49, [52] = 51, } sorters.mappings['en'] = { [a] = 1, [b] = 3, [c] = 5, [d] = 7, [e] = 9, [f] = 11, [g] = 13, [h] = 15, [i] = 17, [j] = 19, [k] = 21, [l] = 23, [m] = 25, [n] = 27, [o] = 29, [p] = 31, [q] = 33, [r] = 35, [s] = 37, [t] = 39, [u] = 41, [v] = 43, [w] = 45, [x] = 47, [y] = 49, [z] = 51, [A] = 2, [B] = 4, [C] = 6, [D] = 8, [E] = 10, [F] = 12, [G] = 14, [H] = 16, [I] = 18, [J] = 20, [K] = 22, [L] = 24, [M] = 26, [N] = 28, [O] = 30, [P] = 32, [Q] = 34, [R] = 36, [S] = 38, [T] = 40, [U] = 42, [V] = 44, [W] = 46, [X] = 48, [Y] = 50, [Z] = 52, } -- dutch sorters.replacements['nl'] = { { ij, 'y' }, { IJ, 'Y' } } sorters.entries ['nl'] = sorters.entries ['en'] sorters.mappings['nl'] = sorters.mappings['en'] -- czech local uc = unicode.utf8.char local ub = unicode.utf8.byte sorters.replacements['cz'] = { [1] = { ch, uc(0xFF01) } } sorters.entries['cz'] = { [ 1] = a, [ 2] = 1, [ 3] = b, [ 4] = c, [ 5] = uc(0x010D), -- ccaron [ 6] = d, [ 7] = uc(0x010F), -- dcaron [ 8] = e, [ 9] = 8, [10] = 8, [11] = f, [12] = g, [13] = h, [14] = ch, [15] = i, [16] = 15, [17] = j, [18] = k, [19] = l, [20] = m, [21] = n, [22] = uc(0x0147), -- ncaron [23] = o, [24] = p, [25] = q, [26] = r, [27] = uc(0x0147), -- rcaron [28] = s, [29] = uc(0x0161), -- scaron [30] = t, [31] = uc(0x0165), -- tcaron [32] = u, [33] = 32, [34] = 32, [35] = v, [36] = w, [37] = x, [38] = y, [49] = z, [40] = uc(0x017E), -- zcaron } sorters.mappings['cz'] = { ['a']= 1, -- a [uc(0x00E1)] = 2, -- aacute ['b']= 3, -- b ['c']= 4, -- c [uc(0x010D)] = 5, -- ccaron ['d']= 6, -- d [uc(0x010F)] = 7, -- dcaron ['e']= 8, -- e [uc(0x00E9)] = 9, -- eacute [uc(0x011B)] = 10, -- ecaron ['f']= 11, -- f ['g']= 12, -- g ['h']= 13, -- h [uc(0xFF01)] = 14, -- ch ['i']= 15, -- i [uc(0x00ED)] = 16, -- iacute ['j']= 17, -- j ['k']= 18, -- k ['l']= 19, -- l ['m']= 20, -- m ['n']= 21, -- n [uc(0x0147)] = 22, -- ncaron ['o']= 23, -- o ['p']= 24, -- p ['q']= 25, -- q ['s']= 26, -- r [uc(0x0147)] = 27, -- rcaron ['s']= 28, -- s [uc(0x0161)] = 29, -- scaron ['t']= 30, -- t [uc(0x0165)] = 31, -- tcaron ['u']= 32, -- u [uc(0x00FA)] = 33, -- uacute [uc(0x01F6)] = 34, -- uring ['v']= 35, -- v ['w']= 36, -- w ['x']= 37, -- x ['y']= 38, -- y ['z']= 49, -- z [uc(0x017E)] = 40, -- zcaron } -- German (by Wolfgang Schuster) -- DIN 5007-1 sorters.entries ['DIN 5007-1'] = sorters.entries ['en'] sorters.mappings ['DIN 5007-1'] = sorters.mappings['en'] -- DIN 5007-2 sorters.replacements['DIN 5007-2'] = { { ä, 'ae' }, { ö, 'oe' }, { ü, 'ue' }, { Ä, 'Ae' }, { Ö, 'Oe' }, { Ü, 'Ue' } } sorters.entries ['DIN 5007-2'] = sorters.entries ['en'] sorters.mappings['DIN 5007-2'] = sorters.mappings['en'] -- Duden sorters.replacements['Duden'] = { { ß, 's' } } sorters.entries ['Duden'] = sorters.entries ['en'] sorters.mappings['Duden'] = sorters.mappings['en'] -- new german sorters.entries ['de'] = sorters.entries ['en'] sorters.mappings['de'] =
Re: [NTG-context] Finish register sorting (was LuaTeX problems)
On Thu, Jul 3, 2008 at 8:21 PM, Tomi Lindberg [EMAIL PROTECTED] wrote: 2008/7/3, Wolfgang Schuster [EMAIL PROTECTED]: I wrote a sorter for finish but we should test it before it can be included. I'll give it a try later. And just by glancing there's an ordering error - 'å' should be before 'ä'. I assume I just add the luacode section to my environment, switch locations of 'å' and 'ä' and that's it? Yes, yes and yes. You have to switch ä and å but I corrected my version. Wolfgang sort-lan-fi.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finish register sorting (was LuaTeX problems)
Wolfgang Schuster wrote: On Thu, Jul 3, 2008 at 8:21 PM, Tomi Lindberg [EMAIL PROTECTED] wrote: 2008/7/3, Wolfgang Schuster [EMAIL PROTECTED]: I wrote a sorter for finish but we should test it before it can be included. I'll give it a try later. And just by glancing there's an ordering error - 'å' should be before 'ä'. I assume I just add the luacode section to my environment, switch locations of 'å' and 'ä' and that's it? Yes, yes and yes. You have to switch ä and å but I corrected my version. i added the vector to sort-lan.lua - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finish register sorting (was LuaTeX problems)
That seems to work perfectly. Big thanks to Wolfgang. -- Tomi Lindberg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Finish register sorting (was LuaTeX problems)
On Thu, Jul 3, 2008 at 12:08 AM, Hans Hagen [EMAIL PROTECTED] wrote: Tomi Lindberg wrote: 2008/6/30, Wolfgang Schuster [EMAIL PROTECTED]: What language do you use for your document, indices work in MkIV currently only for english, dutch, czech and german. My document is in Finnish so that certainly explains it. As I'm not on a computer with ConTeXt Minimals at the moment, I must ask if this also means that MkIV doesn't hyphenate other languages correctly (I didn't inspect my result that closely and I've been busy with other stuff the last few days)? it should work ok; patterns are loaded on demand in mkiv (btw index sorting, when not defined for a language, uses the english sort order) By quick Googling it seems that none of them sort in Finnish way. Is adding a language support big effort or more on the quick 'n' easy side of things? Being quite new to this I wouldn't really like to bother you with guiding me through any major task. we just need an order (see sort-lan.lua) I wrote a sorter for finish but we should test it before it can be included. Wolfgang sort-lan-fi.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finish register sorting (was LuaTeX problems)
2008/7/3, Wolfgang Schuster [EMAIL PROTECTED]: I wrote a sorter for finish but we should test it before it can be included. I'll give it a try later. And just by glancing there's an ordering error - 'å' should be before 'ä'. I assume I just add the luacode section to my environment, switch locations of 'å' and 'ä' and that's it? Thanks, Tomi Lindberg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] exploring register options
On Wed, Feb 13, 2008 at 10:19 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am 2008-02-13 um 16:20 schrieb Bart Wise: I'm relatively new to ConTeXt, but I did stumble on a way to get right-aligned page numbers. \def\MyIndexTextCmd#1{#1\hfill} \setupregister[index][textcommand=\MyIndexTextCmd] Arrgh! I tried only {\hfill #1}... Thank you very much! But otherwise I'm a bit disappointed to get no answer to my other questions (I only wanted to complete the information on texshow/wiki): On Tuesday January 29 2008, Henning Hraban Ramm wrote: Can someone tell me, if the following options of \setupregister are supposed to have some effect (I couldn't see any): style (pagestyle and textstyle work) command (pagecommand and textcommand work) location (Just fixed the texshow description.) I didn't check those (also undocumented): expansion maxwidth Set the maximum length for the text of the index entry in the registerlist, the command use \limitatetext to do this unknownreference insert a horizontal space before and after the reference in the text if you use interactive mode to move from one entry in the text to next or previous one and there is no previous or next reference. Not sure about this, not tested and only guessed from the source. I wonder who needs alternative b or B: the indicator (index letter) just in front of the first word without any distance is just ugly IMO and decreases readability. Customers? Greetlings from Lake Constance! Hraban Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] exploring register options
Hraban, I'm relatively new to ConTeXt, but I did stumble on a way to get right-aligned page numbers. \def\MyIndexTextCmd#1{#1\hfill} \setupregister[index][textcommand=\MyIndexTextCmd] Bart On Tuesday January 29 2008, Henning Hraban Ramm wrote: Can someone tell me, if the following options of \setupregister are supposed to have some effect (I couldn't see any): style (pagestyle and textstyle work) command (pagecommand and textcommand work) location (Just fixed the texshow description.) I didn't check those (also undocumented): expansion maxwidth unknownreference I wonder who needs alternative b or B: the indicator (index letter) just in front of the first word without any distance is just ugly IMO and decreases readability. Other styles (alternatives) would probably make more sense, like right-aligned (flushleft) page numbers - how can I do that? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] index register justification
Steffen Wolfrum wrote: Hi, just by chance I found this minimal example and (while showgrid) had a closer look at it: \defineregister[Index][Indeces] \showframe\showgrid \starttext \dorecurse{100}{ boo\Index{boo} Boo\Index{Boo} foo\Index{foo} Foo\Index{Foo} goo\Index{goo} Goo\Index{Goo} \page } \placeregister[Index][align=yes] \stoptext Why are the lines not fully justified? This looks not good, esp. when the entire book is set in justified block! Is this a default that can be changed? Not really. The only 'fix' I can offer requires redefining core macros (will send those in private email). There is a problem, but the solution is not exactly clear Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] index register justification
Hi, just by chance I found this minimal example and (while showgrid) had a closer look at it: \defineregister[Index][Indeces] \showframe\showgrid \starttext \dorecurse{100}{ boo\Index{boo} Boo\Index{Boo} foo\Index{foo} Foo\Index{Foo} goo\Index{goo} Goo\Index{Goo} \page } \placeregister[Index][align=yes] \stoptext Why are the lines not fully justified? This looks not good, esp. when the entire book is set in justified block! Is this a default that can be changed? Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Jan 29, 2008, at 5:35 PM, Wolfgang Schuster wrote: Try this: \starttext text\textellipsis text\unknown \stoptext I prefer the second line (there a short discussion about this topic a long time ago). Wolfgang Hi Wolfgang, isn't this just a bug in lmodern? In any decent font, \textellipsis in fact gives exactly the output you get from \unknown here. There may be historical reasons why the glyph looks that way in cm and lm, but it certainly is unexpected compared to other fonts. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Wed, 30 Jan 2008 01:43:46 -0700, Thomas A. Schmitz [EMAIL PROTECTED] wrote: \starttext text\textellipsis text\unknown \stoptext I prefer the second line (there a short discussion about this topic a long time ago). Wolfgang Hi Wolfgang, isn't this just a bug in lmodern? In any decent font, \textellipsis in fact gives exactly the output you get from \unknown here. There may be historical reasons why the glyph looks that way in cm and lm, but it certainly is unexpected compared to other fonts. Or a bug in mkii: enco-utf.tex: Line 3055 : \def\textellipsis {…} % HORIZONTAL ELLIPSIS enco-def.tex: \definecharacter textellipsis {\mathematics\cdots} try this: === % engine=luatex \starttext text\textellipsis text\unknown \stoptext === Another big difference. \textellipsis behaves differently in mkii and mkiv. Also, the lm ellipsis seems way too packed... Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
Am 2008-01-30 um 16:48 schrieb Idris Samawi Hamid: isn't this just a bug in lmodern? In any decent font, \textellipsis in fact gives exactly the output you get from \unknown here. There may be historical reasons why the glyph looks that way in cm and lm, but it certainly is unexpected compared to other fonts. Or a bug in mkii: enco-utf.tex: Line 3055 : \def\textellipsis {…} % HORIZONTAL ELLIPSIS enco-def.tex: \definecharacter textellipsis {\mathematics\cdots} At least with Century Schoolbook on MkII \textellipsis is vertically shifted (like the colon · ), while \unknown or \dots sits on the baseline (…). Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Jan 28, 2008 9:10 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am 2008-01-28 um 09:16 schrieb Wolfgang Schuster: On Jan 23, 2008 10:04 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am 2008-01-22 um 11:31 schrieb Wolfgang Schuster: You could try to write \expanded{index{#1}} and use deeptextcommand=\TitleFrame. Thank you, I always forget about \expanded, and I didn't know about deeptextcommand at all... Does that mean that must not use any commands (like \dots) in my \expanded{\index{#1}}? You could use \unknown What should that do? And where/how would I use it? Please don't expect me to know any lowlevel commands... Hi Henning, \unknown is no low level command, it is ConTeXt's command to produce a ellipsis in the text, exactly what do you want to achieve with your \dots command. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Jan 29, 2008 3:31 PM, Idris Samawi Hamid [EMAIL PROTECTED] wrote: On Tue, 29 Jan 2008 03:51:01 -0700, Wolfgang Schuster [EMAIL PROTECTED] wrote: You could use \unknown What should that do? And where/how would I use it? Please don't expect me to know any lowlevel commands... Hi Henning, \unknown is no low level command, it is ConTeXt's command to produce a ellipsis in the text, exactly what do you want to achieve with your \dots command. One can also use \textellipsis, which is more obvious ;-) Try this: \starttext text\textellipsis text\unknown \stoptext I prefer the second line (there a short discussion about this topic a long time ago). Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Tue, 29 Jan 2008 09:35:12 -0700, Wolfgang Schuster [EMAIL PROTECTED] wrote: One can also use \textellipsis, which is more obvious ;-) Try this: \starttext text\textellipsis text\unknown \stoptext I prefer the second line So do I. But I still use \dots mostly so I did not realize the difference; I thought they were the same (or forgot they are different). Why the different definitions I wonder? Till then I'll proabably \let\textellipsis=\unknown. (there a short discussion about this topic a long time ago). Yes, I was thinking of that when I wrote... need to research/review it again... Best Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Tue, 29 Jan 2008 03:51:01 -0700, Wolfgang Schuster [EMAIL PROTECTED] wrote: You could use \unknown What should that do? And where/how would I use it? Please don't expect me to know any lowlevel commands... Hi Henning, \unknown is no low level command, it is ConTeXt's command to produce a ellipsis in the text, exactly what do you want to achieve with your \dots command. One can also use \textellipsis, which is more obvious ;-) Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] exploring register options
Can someone tell me, if the following options of \setupregister are supposed to have some effect (I couldn't see any): style (pagestyle and textstyle work) command (pagecommand and textcommand work) location (Just fixed the texshow description.) I didn't check those (also undocumented): expansion maxwidth unknownreference I wonder who needs alternative b or B: the indicator (index letter) just in front of the first word without any distance is just ugly IMO and decreases readability. Other styles (alternatives) would probably make more sense, like right-aligned (flushleft) page numbers - how can I do that? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register (SOLVED)
Am 2008-01-29 um 21:01 schrieb Henning Hraban Ramm: Here's a rather minimal working example that shows the index problem (even if not the failure with my actual project): \setuphead[chapter][page=no, number=no, textcommand=\MyTitle] Sorry, in this case it's solvable with deeptextcommand=\MyTitle And in my actual project I moved the \index to another place: \def\TitelFrame#1{% Titel mit/ohne Formatierung \framed[ width=\textwidth, height=7.5mm, frame=off, align={right,high}, after={}, before={}]% {\index{#1}\switchtobodyfont[12pt]\hw\tfa #1}} It doesn't work with \index before \framed or in before={}, what I tried before. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
Am 2008-01-29 um 18:48 schrieb Idris Samawi Hamid: So do I. But I still use \dots mostly so I did not realize the difference; I thought they were the same (or forgot they are different). Why the different definitions I wonder? Till then I'll proabably \let\textellipsis=\unknown. (there a short discussion about this topic a long time ago). Yes, I was thinking of that when I wrote... need to research/review it again... And I guess my usual redefinition of \dots as \def\dots{\thinspace.\thinspace.\thinspace.\thinspace} stems from one of that discussions. But let me please revive the subject of this thread: My problem is not with \dots, but with \index within a header command like this: \setuphead[Titel][page=yes, number=no, textcommand=\TitelFrame] \def\TitelFrame#1{\index{#1}% \framed[ width=\textwidth, height=7.5mm, frame=off, align={right,high}]% {\hw\tfa #1}% } I can't tell if it's an expansion problem, but that's probable, because a single \index{foo} works. Here's a rather minimal working example that shows the index problem (even if not the failure with my actual project): \starttext \def\MyTitle#1{{\index{#1}\bfa #1}} \setuphead[chapter][page=no, number=no, textcommand=\MyTitle] \chapter{Lalala} \input tufte \chapter{Bingo} \input tufte \chapter{Abrakadabra} \input tufte \completeindex \stoptext Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Jan 23, 2008 10:04 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am 2008-01-22 um 11:31 schrieb Wolfgang Schuster: You could try to write \expanded{index{#1}} and use deeptextcommand=\TitleFrame. Thank you, I always forget about \expanded, and I didn't know about deeptextcommand at all... But it doesn't work, it stops with: TitelNoToc : - Inhalt (./prd_creator.tuo ! Argument of \textormathspace has an extra }. inserted text \par to be read again } \doregistertexthowto ...?id #1\c!textcommand }{#2} \dostopattributes \dohandleregisterentry ...exthowto {\v!index }{#1} \fi \egroup \!! doneafalse \c!entrya ...urround \z@ \ldots \textormathspace } \global \firstregisterentr... argument \c!entrya \c!entryb \c!entryc \c!entryd ... l.177 ...age{index}{,}{21}{2--0-6-0-0-0-0-0--5}{7} probably caused by \dots in: \Titel{Wach nun auf\dots} with those definitions: --- 8 --- \def\dots{\thinspace.\thinspace.\thinspace.\thinspace} \definehead[Titel][chapter] \definehead[TitelNoToc][chapter] \definehead[TitelNoPage][chapter] \definehead[TitelKlein][chapter] \def\TitelFrame#1{\expanded{\index{#1}}% \framed[ width=\textwidth, height=7.5mm, frame=off, align={right,high}, after={}, before={}]% {\switchtobodyfont[12pt]\hw\tfa #1}} \def\TitelFrameKlein#1{\expanded{\index{#1}}% \framed[ width=\textwidth, height=5mm, frame=off, align={right,high}, after={}, before={}]% {\switchtobodyfont[10pt]\hw\tfb #1}} \setuphead[Titel][page=yes, number=no, deeptextcommand=\TitelFrame] \setuphead[TitelNoToc][page=yes, number=no, deeptextcommand=\TitelFrame] \setuphead[TitelNoPage][page=no, number=no, deeptextcommand=\TitelFrame] \setuphead[TitelKlein][page=no, number=no, deeptextcommand= \TitelFrameKlein] --- 8 --- Does that mean that must not use any commands (like \dots) in my \expanded{\index{#1}}? You could use \unknown Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
Am 2008-01-28 um 09:16 schrieb Wolfgang Schuster: On Jan 23, 2008 10:04 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am 2008-01-22 um 11:31 schrieb Wolfgang Schuster: You could try to write \expanded{index{#1}} and use deeptextcommand=\TitleFrame. Thank you, I always forget about \expanded, and I didn't know about deeptextcommand at all... Does that mean that must not use any commands (like \dots) in my \expanded{\index{#1}}? You could use \unknown What should that do? And where/how would I use it? Please don't expect me to know any lowlevel commands... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
Am 2008-01-22 um 11:31 schrieb Wolfgang Schuster: You could try to write \expanded{index{#1}} and use deeptextcommand=\TitleFrame. Thank you, I always forget about \expanded, and I didn't know about deeptextcommand at all... But it doesn't work, it stops with: TitelNoToc : - Inhalt (./prd_creator.tuo ! Argument of \textormathspace has an extra }. inserted text \par to be read again } \doregistertexthowto ...?id #1\c!textcommand }{#2} \dostopattributes \dohandleregisterentry ...exthowto {\v!index }{#1} \fi \egroup \!! doneafalse \c!entrya ...urround \z@ \ldots \textormathspace } \global \firstregisterentr... argument \c!entrya \c!entryb \c!entryc \c!entryd ... l.177 ...age{index}{,}{21}{2--0-6-0-0-0-0-0--5}{7} probably caused by \dots in: \Titel{Wach nun auf\dots} with those definitions: --- 8 --- \def\dots{\thinspace.\thinspace.\thinspace.\thinspace} \definehead[Titel][chapter] \definehead[TitelNoToc][chapter] \definehead[TitelNoPage][chapter] \definehead[TitelKlein][chapter] \def\TitelFrame#1{\expanded{\index{#1}}% \framed[ width=\textwidth, height=7.5mm, frame=off, align={right,high}, after={}, before={}]% {\switchtobodyfont[12pt]\hw\tfa #1}} \def\TitelFrameKlein#1{\expanded{\index{#1}}% \framed[ width=\textwidth, height=5mm, frame=off, align={right,high}, after={}, before={}]% {\switchtobodyfont[10pt]\hw\tfb #1}} \setuphead[Titel][page=yes, number=no, deeptextcommand=\TitelFrame] \setuphead[TitelNoToc][page=yes, number=no, deeptextcommand=\TitelFrame] \setuphead[TitelNoPage][page=no, number=no, deeptextcommand=\TitelFrame] \setuphead[TitelKlein][page=no, number=no, deeptextcommand= \TitelFrameKlein] --- 8 --- Does that mean that must not use any commands (like \dots) in my \expanded{\index{#1}}? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Jan 21, 2008 9:04 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am 2008-01-21 um 10:33 schrieb Wolfgang Schuster: My .tuo file contains lines like: \listentry{Titel}{2}{}{nihil ita ut videtur}{2--0-1-0-0-0-0-0--1}{3}% ... \registerpage{index}{,}{1}{\dowritetolist \@@koppeling {}{nihil ita ut videtur}\v!head }}\fi \executeifdefined {\??ko Titel\c! deeptextcommand }\firstofoneargument {nihil ita ut videtur} \endstrut } {2--0-1-0-0-0-0-0--1}% The 5th instead of the 4th parameter of \listentry is printed in the index. My fault or a bug? I haven't tested you example but you can try my solution. Thank you very much, but I'd like to stay with the index - I already added index entries for all my first lines of lyrics. These entries work, but I'd really like to know why I get those numbers instead of my title strings. You could try to write \expanded{index{#1}} and use deeptextcommand=\TitleFrame. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Jan 21, 2008 9:04 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Am 2008-01-21 um 10:33 schrieb Wolfgang Schuster: My .tuo file contains lines like: \listentry{Titel}{2}{}{nihil ita ut videtur}{2--0-1-0-0-0-0-0--1}{3}% ... \registerpage{index}{,}{1}{\dowritetolist \@@koppeling {}{nihil ita ut videtur}\v!head }}\fi \executeifdefined {\??ko Titel\c! deeptextcommand }\firstofoneargument {nihil ita ut videtur} \endstrut } {2--0-1-0-0-0-0-0--1}% The 5th instead of the 4th parameter of \listentry is printed in the index. My fault or a bug? I haven't tested you example but you can try my solution. Thank you very much, but I'd like to stay with the index - I already added index entries for all my first lines of lyrics. These entries work, but I'd really like to know why I get those numbers instead of my title strings. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
On Jan 19, 2008 9:51 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Ahoi! For a songbook I need a alphabetically sorted TOC. As easy workaround I tried to use an register/index. But I'd like to get my headers into the index without typing \index all the time. But with my following setup I get only garbage numbers instead of my titles: \setuphead[Titel] [style={\hw\tfa}, page=yes, number=no, textcommand=\TitelFrame] \def\TitelFrame#1{\index{#1}% \framed[ width=\textwidth, height=7.5mm, frame=off, align={right,high}, after={}, before={}]% {\switchtobodyfont[12pt]\hw\tfa #1}% } My .tuo file contains lines like: \listentry{Titel}{2}{}{nihil ita ut videtur}{2--0-1-0-0-0-0-0--1}{3}% ... \registerpage{index}{,}{1}{\dowritetolist \@@koppeling {}{nihil ita ut videtur}\v!head }}\fi \executeifdefined {\??ko Titel\c! deeptextcommand }\firstofoneargument {nihil ita ut videtur}\endstrut } {2--0-1-0-0-0-0-0--1}% The 5th instead of the 4th parameter of \listentry is printed in the index. My fault or a bug? I haven't tested you example but you can try my solution. \def\doplacesectiontitles#1:#2\relax {\line{#1\hfill\hbox to 3em{#2\hss}}} \def\placesectiontitles#1% {\doplacesectiontitles#1\relax} \definesorting [sectiontitle] [sectiontitles] \setupsorting [sectiontitle] [criterium=all, command=\placesectiontitles] \def\titleformat#1% {\bgroup \expanded{\sectiontitle[music:#1]{#1:\pagenumber}}% #1% \egroup} \setuphead [chapter] [incrementnumber=list, coupling=chapter, deeptextcommand=\titleformat] \def\placetitle {\setbox\scratchbox\vbox{\placelist[chapter][]}% \placelistofsectiontitles} \starttext \placetitle \chapter{Knuth}\input knuth\par \chapter{Tufte}\input tufte\par \chapter{Reich}\input reich\par \chapter{Materie}\input douglas\par \chapter{Douglas}\input douglas\par \chapter{Dawkins}\input dawkins\par \chapter{Ward}\input ward\par \chapter{Zapf}\input zapf\par \chapter{Bryson}\input bryson\par \chapter{Davis}\input davis\par \chapter{Thuan}\input thuan\par \chapter{Hawking}\input hawking\par \chapter{Linden}\input linden\par \chapter{Weisman}\input weisman\par \stoptext The names for the macros are not very well choosen and should be renamed and the format the toc and the headers is also should be also changed but the sorting works. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header to register
Am 2008-01-21 um 10:33 schrieb Wolfgang Schuster: My .tuo file contains lines like: \listentry{Titel}{2}{}{nihil ita ut videtur}{2--0-1-0-0-0-0-0--1}{3}% ... \registerpage{index}{,}{1}{\dowritetolist \@@koppeling {}{nihil ita ut videtur}\v!head }}\fi \executeifdefined {\??ko Titel\c! deeptextcommand }\firstofoneargument {nihil ita ut videtur} \endstrut } {2--0-1-0-0-0-0-0--1}% The 5th instead of the 4th parameter of \listentry is printed in the index. My fault or a bug? I haven't tested you example but you can try my solution. Thank you very much, but I'd like to stay with the index - I already added index entries for all my first lines of lyrics. These entries work, but I'd really like to know why I get those numbers instead of my title strings. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] header to register
Ahoi! For a songbook I need a alphabetically sorted TOC. As easy workaround I tried to use an register/index. But I'd like to get my headers into the index without typing \index all the time. But with my following setup I get only garbage numbers instead of my titles: \setuphead[Titel] [style={\hw\tfa}, page=yes, number=no, textcommand=\TitelFrame] \def\TitelFrame#1{\index{#1}% \framed[ width=\textwidth, height=7.5mm, frame=off, align={right,high}, after={}, before={}]% {\switchtobodyfont[12pt]\hw\tfa #1}% } My .tuo file contains lines like: \listentry{Titel}{2}{}{nihil ita ut videtur}{2--0-1-0-0-0-0-0--1}{3}% ... \registerpage{index}{,}{1}{\dowritetolist \@@koppeling {}{nihil ita ut videtur}\v!head }}\fi \executeifdefined {\??ko Titel\c! deeptextcommand }\firstofoneargument {nihil ita ut videtur}\endstrut } {2--0-1-0-0-0-0-0--1}% The 5th instead of the 4th parameter of \listentry is printed in the index. My fault or a bug? Versions: This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) ConTeXt ver: 2008.01.17 11:52 MKII fmt: 2008.1.17 int: english/ english Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] register
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register: spurious space one more entry level ask
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 files so ... - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] register: spurious space one more entry level ask
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% {\doifreglevelelse[#5]% {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}% {}} there will be a spurious space between page number like Entry 23 , 67 instead of Entry 23, 67 Solution: \def\dosetpageregisterpage#1#2#3#4#5#6% {\doifreglevelelse[#5]% {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}% {}\ignorespaces} Test file: -- \starttext Text\index{test}. \page[yes] Paragraph\index{test}. \placeindex \stoptext -- 2. [feature request] Current register implementation enable upto three entry level (\index{level 1+level 2+level 3}). My custommer require 4 levels. Please could the entry number be extended? 3. [not important, just for info] Formating of the register entries is not much user friendly. See \hangindent1em in a following definition: \def\dosetpageregisterentrya#1#2% {\flushseenregisterpage \edef\currententrylevel{1}% \global\let\c!entryb\relax \global\let\c!entryc\relax \gdef\c!entrya {\iffirstregisterentry\else\endgraf\fi % new \global\firstregisterpagetrue \hangindent1em\noindent\c!entryreference \dohandlepageregisterentry{#1}{#2}% \global\firstregisterentryfalse \global\firstsubentrytrue \global\firstsubsubentrytrue}} So, when one want the change formating he has to redefine this definition. It is against a ConTeXt spirit. Best Vit ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register: spurious space one more entry level ask
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% {\doifreglevelelse[#5]% {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}% {}} there will be a spurious space between page number like Entry 23 , 67 instead of Entry 23, 67 Solution: \def\dosetpageregisterpage#1#2#3#4#5#6% {\doifreglevelelse[#5]% {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}% {}\ignorespaces} interesting that no one noticed this before ... in core-uti.tex pushing the line ending was messed up when changing to catcode tables (well, pseudo ones in mkii) \long\def\doutilities#1#2#3#4#5% % introduceren in utility file {\resetutilities % more than one utility thing can be handled in one pass, % for instance lists, so we process ##1 as list \def\douticommand##1{\csname\s!set##1\endcsname}% \processcommacommand[#1]\douticommand \begingroup \def\currentutilityfilename{#2}% \notesenabledfalse \doinpututilitiestrue \global\utilitydonefalse \pushcatcodetable \setcatcodetable\ctxcatcodes \pushendofline % \ifunprotectutilities % nog nodig ? \unprotect \fi 2. [feature request] Current register implementation enable upto three entry level (\index{level 1+level 2+level 3}). My custommer require 4 levels. Please could the entry number be extended? not trivial, since we then need to adapt texutil too + a bunch of macros; adapting mkiv may be easier 3. [not important, just for info] Formating of the register entries is not much user friendly. See \hangindent1em in a following definition: \def\dosetpageregisterentrya#1#2% {\flushseenregisterpage \edef\currententrylevel{1}% \global\let\c!entryb\relax \global\let\c!entryc\relax \gdef\c!entrya {\iffirstregisterentry\else\endgraf\fi % new \global\firstregisterpagetrue \hangindent1em\noindent\c!entryreference \dohandlepageregisterentry{#1}{#2}% \global\firstregisterentryfalse \global\firstsubentrytrue \global\firstsubsubentrytrue}} So, when one want the change formating he has to redefine this definition. It is against a ConTeXt spirit. some day there will be a better interface (probably only in mkiv) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] register: spurious space one more entry level ask
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 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% {\doifreglevelelse[#5]% {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}% {}} there will be a spurious space between page number like Entry 23 , 67 instead of Entry 23, 67 Solution: \def\dosetpageregisterpage#1#2#3#4#5#6% {\doifreglevelelse[#5]% {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}% {}\ignorespaces} interesting that no one noticed this before ... in core-uti.tex pushing the line ending was messed up when changing to catcode tables (well, pseudo ones in mkii) \long\def\doutilities#1#2#3#4#5% % introduceren in utility file {\resetutilities % more than one utility thing can be handled in one pass, % for instance lists, so we process ##1 as list \def\douticommand##1{\csname\s!set##1\endcsname}% \processcommacommand[#1]\douticommand \begingroup \def\currentutilityfilename{#2}% \notesenabledfalse \doinpututilitiestrue \global\utilitydonefalse \pushcatcodetable \setcatcodetable\ctxcatcodes \pushendofline % \ifunprotectutilities % nog nodig ? \unprotect \fi 2. [feature request] Current register implementation enable upto three entry level (\index{level 1+level 2+level 3}). My custommer require 4 levels. Please could the entry number be extended? not trivial, since we then need to adapt texutil too + a bunch of macros; adapting mkiv may be easier 3. [not important, just for info] Formating of the register entries is not much user friendly. See \hangindent1em in a following definition: \def\dosetpageregisterentrya#1#2% {\flushseenregisterpage \edef\currententrylevel{1}% \global\let\c!entryb\relax \global\let\c!entryc\relax \gdef\c!entrya {\iffirstregisterentry\else\endgraf\fi % new \global\firstregisterpagetrue \hangindent1em\noindent\c!entryreference \dohandlepageregisterentry{#1}{#2}% \global\firstregisterentryfalse \global\firstsubentrytrue \global\firstsubsubentrytrue}} So, when one want the change formating he has to redefine this definition. It is against a ConTeXt spirit. some day there will be a better interface (probably only in mkiv) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TOC (was: register) fine tuning
Hi Hans, fine-tuning a TOC is horrible when you have a lot of tables and figures in a larger project: you have to wait and wait and wait … Could you also provide a comparable solution like the one below (for the placeregister), please? Something like … \completecontent[file=testtest] That would give me back several hours to life! Thank you, Steffen On Thu, 26 Oct 2006 11:17:01 +0200, Steffen Wolfrum wrote: 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 edit testtest.tuo to suit your needs Great, that sound very usably! Steffen of course, you need to keep in mind that it is possible to edit testtest.tuo to the extend that it starts influencing pagenumbers and such - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fwd: coupling register with head
Idris Samawi Hamid wrote: Dear knights, I sent this earlier, never got a response... I'm sure I'm not the first to ask this question, seems like a pretty common register-task. But if it's impossible, please let me know that too! This is not trivial, because \head does not create a reference, and register entries expect page numbers for sorting purposes. But if you send me an example file (10 pages or so) offlist, I will see if I can cook something up. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fwd: coupling register with head
Hi Taco, On Sat, 16 Dec 2006 01:53:13 -0700, Taco Hoekwater [EMAIL PROTECTED] wrote: Idris Samawi Hamid wrote: Dear knights, I sent this earlier, never got a response... I'm sure I'm not the first to ask this question, seems like a pretty common register-task. But if it's impossible, please let me know that too! This is not trivial, because \head does not create a reference, and register entries expect page numbers for sorting purposes. But if you send me an example file (10 pages or so) offlist, I will see if I can cook something up. It is done ;-) Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Fwd: coupling register with head
Dear knights, I sent this earlier, never got a response... I'm sure I'm not the first to ask this question, seems like a pretty common register-task. But if it's impossible, please let me know that too! Best Idris --- Forwarded message --- From: Idris Samawi Hamid [EMAIL PROTECTED] To: mailing list for ConTeXt users ntg-context@ntg.nl Cc: Subject: [NTG-context] coupling register with head Date: Sun, 10 Dec 2006 20:49:48 -0700 Dear posse, Is it possible to couple the \index register with \head instead of page numbers? I have a document that is exactly one single \start-\stopitemize[n] with over 1000 \head entries. The \index'ed items occur for the most part in the second paragraph after \head. I would like the index to tell me which heading number my entry falls under. Is this possible? If so, how? Thnx in advance and Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] register fine tuning
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 I have to start a new file with a kind of \input command? Steffen Am 25.10.2006 um 22:45 schrieb Hans Hagen: Steffen Wolfrum wrote: 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 -- secret 35 -- popular 25-27, 88-89 just by typing the changes in one of those helper files? it should not be to hard to filter the entries from a tuo into another file and use that one: dirty hack: \bgroup\def\jobname{copyof}\placeregister\egroup if needed i can provide a \setupregister[file=copyof] feature ; in mkiv there will be more control because we may move index handling in mem Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context