[NTG-context] setupregister/placeregister
Hello, The criterium key in setupregister (so placeregister, placeindex, ...) takes the following values: criterium local text current previous all section all: places all entries of the document section: (part, chapter, section, ...) places entries associated with that structure element. Can someone explain local, text, current, previous for their scope and perhaps subtle differences are not entirely obvious to me. Thank you Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \placeregister[index]—preventing page break before
Perhaps more information would be helpful: The index comes in this component file: \startcomponent c_B2-IndexLocorum \setupheader[state=high] \BibTitle[IndexLocorum]{\WORD{index of passages}} \placeregister[Passage] \LevelBHead[KiddPassages]{Passages in Kidd's collection} \placeregister[Kidd] \page[makeup] \stopcomponent The registers are defined in an environment file as follows; %Passages \defineregister[Passage][Passages] \setupregister[Passage][n=3,% balance=yes,% pagestyle={\switchtobodyfont[9.6pt]\em},% textstyle={\switchtobodyfont[9.6pt]},% criterium=all,% interaction={pagenumber},% before={},% after={}% ] \setupregister[Passage][indicator=no,distance=0.5em,before={}] %Passages from Kidd \defineregister[Kidd][Kidds] \setupregister[Kidd][n=3,% balance=yes,% pagestyle={\switchtobodyfont[9.6pt]\em},% textstyle={\switchtobodyfont[9.6pt]},% criterium=all,% interaction={pagenumber},% ] \setupregister[Kidd][indicator=no,distance=0.5em,before={}] The problem is the page break leaving about 3 vertical inches of white space immediately after the LevelBHead and putting the entire Kidd index of some 20 lines on the next page. How can I prevent the page break and split the Kidd index? I am using MKII. Alan On Tue, Jun 26, 2012 at 4:17 PM, Alan Bowen bowenala...@gmail.com wrote: I have been experimenting for a while with \placeregister and \setupregister and can find no way no prevent page breaks before a register. Simply inserting \page[no] does not seem to work. So can anyone suggest a way to do this in MKII? Alan ___ 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] \placeregister[index]—preventing page break before
I have been experimenting for a while with \placeregister and \setupregister and can find no way no prevent page breaks before a register. Simply inserting \page[no] does not seem to work. So can anyone suggest a way to do this in MKII? Alan ___ 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] \placeregister[index][compress=yes] BROKEN ??
In context version 20070417 it works. The next one (2007-07-24) fails. Yours, Steffen Am 28.01.2008 um 18:45 schrieb Taco Hoekwater: Steffen Wolfrum wrote: Hi, please have a look at following minimal: I can confirm that it is indeed broken, but because of the mkii/mkiv split, it is hard for me to track the exact cause. Do you happen to know when the last moment (i.e. context release) was that it *did* work? Best wishes, Taco \starttext \placeregister[index][compress=no] \blank[5*big] \placeregister[index][compress=yes] \page test text \index{test index} \section{heading} more test text \index{test index} \section{heading} more test text \index{test index} %\page test text% --- comment / uncomment this line \page \section{heading text \index{test index}} more test text \index{test index} \page test text \index{test index} \section{heading text \index{test index}} more test text \index{test index} \stoptext The compress=yes seems to be corrupt. Steffen (I am using vers. 2008.01.03) _ __ 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 __ _ ___ 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] \placeregister[index][compress=yes] BROKEN ??
Steffen Wolfrum wrote: In context version 20070417 it works. The next one (2007-07-24) fails. And here is a document-level patch (mkii mode) that fixes it. I leave it up to Hans to formalize this properly. \unprotect % The standard \mkloadregister takes one 1 argument, not enough % because the before and after placeregister commands are then % not executed. Xtended definition: \def\mkloadregisterX#1#2#3% {\doutilities{#1}{\registerparameter\c!file}{#1}{#2}{#3}} \def\doplaceregister[#1][#2]% {\iffirstargument \begingroup \edef\currentregister{#1}% \setupregister[\currentregister][#2]% \doifelse{\registerparameter\c!compress}\v!yes % new {\chardef\collapseregisterpages\plusone} {\chardef\collapseregisterpages\zerocount}% \raggedright \startcolumns [\c!n=\registerparameter\c!n, \c!balance=\registerparameter\c!balance, \c!align=\registerparameter\c!align]% \dontcomplain \startpacked[\v!blank]% \mkloadregisterX % TH this does it \currentregister\dobeforeplaceregister\doafterplaceregister \stoppacked \stopcolumns \endgroup \fi} \protect 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 ___
Re: [NTG-context] \placeregister[index][compress=yes] BROKEN ??
Am 28.01.2008 um 18:45 schrieb Taco Hoekwater: Steffen Wolfrum wrote: Hi, please have a look at following minimal: I can confirm that it is indeed broken, but because of the mkii/mkiv split, it is hard for me to track the exact cause. Do you happen to know when the last moment (i.e. context release) was that it *did* work? Not ad hoc. But I can run some tests tomorrow. Thanks, 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] \placeregister[index][compress=yes] BROKEN ??
Steffen Wolfrum wrote: Hi, please have a look at following minimal: I can confirm that it is indeed broken, but because of the mkii/mkiv split, it is hard for me to track the exact cause. Do you happen to know when the last moment (i.e. context release) was that it *did* work? Best wishes, Taco \starttext \placeregister[index][compress=no] \blank[5*big] \placeregister[index][compress=yes] \page test text \index{test index} \section{heading} more test text \index{test index} \section{heading} more test text \index{test index} %\page test text% --- comment / uncomment this line \page \section{heading text \index{test index}} more test text \index{test index} \page test text \index{test index} \section{heading text \index{test index}} more test text \index{test index} \stoptext The compress=yes seems to be corrupt. Steffen (I am using vers. 2008.01.03) ___ 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 ___
[NTG-context] \placeregister[index][compress=yes] BROKEN ??
Hi, please have a look at following minimal: \starttext \placeregister[index][compress=no] \blank[5*big] \placeregister[index][compress=yes] \page test text \index{test index} \section{heading} more test text \index{test index} \section{heading} more test text \index{test index} %\page test text% --- comment / uncomment this line \page \section{heading text \index{test index}} more test text \index{test index} \page test text \index{test index} \section{heading text \index{test index}} more test text \index{test index} \stoptext The compress=yes seems to be corrupt. Steffen (I am using vers. 2008.01.03) ___ 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] (mkii) language-specific options for \placeregister[index] ?
On Wed, 19 Dec 2007 22:01:14 +0100 Steffen Wolfrum [EMAIL PROTECTED] wrote: Am 19.12.2007 um 14:45 schrieb Wolfgang Schuster: 2007/12/19, Steffen Wolfrum [EMAIL PROTECTED]: Hi, the following (with mkii) is probably not the most pressuring topic to most of you ... apologies! Although I have set \mainlanguage[de] the register seems to be unaffected. All my cultural heritage (i.e. the Umaut) is ignored!!! o( The problem is the sorting – keywords containing umlauts seem to be sorted after e: Bestimmung Bühler Bildung Are there language-specific arguments/options for \placeregister[index]? Thanks, Steffen Hi Steffen, Can you post a example where this did happen for you. Hi Hans and all others, I found the reason for the wrong index sorting in Steffens files. The correct sorted file contains something like this. \enableregime[utf] \starttext text\index{Bestimmung} text\index{Bühler} text\index{Bildung} text \placeindex \stoptext The text is enclosed by the normal start/stoptext pair and the document setup is written before the start of the document while the wrong file contains this: \starttext \enableregime[utf] text\index{Bestimmung} text\index{Bühler} text\index{Bildung} text \placeindex \stoptext The files did not really contain start/stop but use ConTeXts document structure and \everystarttext is executed by \startpoduct, the first command in the product file. The problem is now, ConTeXt write information for the index sorting into the tui file and a few additional entries for every spcifiec file encoding, in this utf-8. This works quite well in the first example because \enableregime is writte before \starttext while in the second example the sorting information are written before ConTeXt knows the file encoding. A workaround for the moment is to write \enableregime before \startproduct in the main file but I hope this coule be fiyed in the next release. I still wonder why nobody noticed this untill now. 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] (mkii) language-specific options for \placeregister[index] ?
Wolfgang Schuster wrote: The problem is now, ConTeXt write information for the index sorting into the tui file and a few additional entries for every spcifiec file encoding, in this utf-8. writing the sort vector is hooked into starttext This works quite well in the first example because \enableregime is writte before \starttext while in the second example the sorting information are written before ConTeXt knows the file encoding. A workaround for the moment is to write \enableregime before \startproduct in the main file but I hope this coule be fiyed in the next release. i'll find another hook I still wonder why nobody noticed this untill now. maybe because of \expanded names, \eacute still sorts somewhat right - 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] (mkii) language-specific options for \placeregister[index] ?
On Fri, 21 Dec 2007 18:34:32 +0100 Hans Hagen [EMAIL PROTECTED] wrote: Wolfgang Schuster wrote: The problem is now, ConTeXt write information for the index sorting into the tui file and a few additional entries for every spcifiec file encoding, in this utf-8. writing the sort vector is hooked into starttext I realized this myself, because the only difference between both version had been the file size of the tui files. This works quite well in the first example because \enableregime is writte before \starttext while in the second example the sorting information are written before ConTeXt knows the file encoding. A workaround for the moment is to write \enableregime before \startproduct in the main file but I hope this coule be fiyed in the next release. i'll find another hook I still wonder why nobody noticed this untill now. maybe because of \expanded names, \eacute still sorts somewhat right I found this solution also but it is easier to write ä, ü ... instead of \aumlaut, \uumlaut etc. BTW, why could I use only \aumlaut in macros but not \adiaresis. 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] (mkii) language-specific options for \placeregister[index] ?
Wolfgang Schuster wrote: BTW, why could I use only \aumlaut in macros but not \adiaresis. diae - 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] (mkii) language-specific options for \placeregister[index] ?
On Fri, 21 Dec 2007 19:35:32 +0100 Hans Hagen [EMAIL PROTECTED] wrote: Wolfgang Schuster wrote: BTW, why could I use only \aumlaut in macros but not \adiaresis. diae D’oh! 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 ___
[NTG-context] (mkii) language-specific options for \placeregister[index] ?
Hi, the following (with mkii) is probably not the most pressuring topic to most of you ... apologies! Although I have set \mainlanguage[de] the register seems to be unaffected. All my cultural heritage (i.e. the Umaut) is ignored!!! o( The problem is the sorting – keywords containing umlauts seem to be sorted after e: Bestimmung Bühler Bildung Are there language-specific arguments/options for \placeregister[index]? Thanks, 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] (mkii) language-specific options for \placeregister[index] ?
2007/12/19, Steffen Wolfrum [EMAIL PROTECTED]: Hi, the following (with mkii) is probably not the most pressuring topic to most of you ... apologies! Although I have set \mainlanguage[de] the register seems to be unaffected. All my cultural heritage (i.e. the Umaut) is ignored!!! o( The problem is the sorting – keywords containing umlauts seem to be sorted after e: Bestimmung Bühler Bildung Are there language-specific arguments/options for \placeregister[index]? Thanks, Steffen Hi Steffen, Can you post a example where this did happen for you. 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 ___