[NTG-context] placelist created by defineenumeration fails in numbered headings
That pretty much sums it up: if I change \title to \chapter, for example, the list is generated only if I set the option criterium=chapter, for example. Is criterium really necessary in this case? ``` \defineenumeration [Exercício] [alternative=top, before=\blank, after=\blank, between=\blank] \defineenumeration [Título] [alternative=left, headcolor=darkcyan, width=2cm, text={Título}, before=\blank, after=\blank, between=\blank] \setuplabeltext[Exercise=Exercício~,Título=Título~] \setuplist[Exercício][width=6em] \starttext \title{defineenumeration} \subject{Lista de exercícios} \placelist[Exercício][label=Exercise] \subject{Lista de títulos} \placelist[Título][label=Título] \Exercício[title=Título do exercício] Um exercício O mesmo exercício. \Exercício Outro exercício com {\tt start ... stop} \subExercício Um subexercício. \startExercício Um exercício. \stopExercício \startsubExercício Um subexercício. \stopsubExercício \Título Título 1 \Título Título 2 \subTítulo sub-Título 1 \subTítulo sub-Título 2 \startTítulo Agora vai. \stopTítulo \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \placelist[chapter][counter=realpage] not working
On 4/11/20 2:53 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 11.04.2020 um 13:54: >> [...] >> I really need that, since the document I’m composing needs chapter and >> part page numbering independent from the whole document page numbering. >> >> Am I missing something or have I hit a bug? > > You can show the realpage value but there is no proper interface setting > (e.g. \setuplist[chapter][pagenumber=realpage]) for this yet and I think > it's better to do this. Many thanks for your reply, Wolfgang. In that case, which would be the way to get the realpage value? Or is there any way to get a page counter that can be restarted, as userpage is? (I already use subpage for other purposes.) Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \placelist[chapter][counter=realpage] not working
Pablo Rodriguez schrieb am 11.04.2020 um 13:54: Dear list, here you have the following sample: \setuppapersize[A6] \setupuserpagenumber[way=chapter] \starttext \placelist[chapter][counter=realpage] \dorecurse{5}{\chapter{Chapter}} \stoptext Why doesn’t \placelist[chapter] use the realpage counter? According to i-context.pdf, \placelist inherits from \setuplist (which also inherits from \setupcounter). While \setuplist inherits values from \setupcounter doesn't mean it supports all of them and keys like "counter" work only when you create a new instance which uses the counter of another instance, e.g. you create two enumerations but both of them share one counter. Another problem is that you assume counter refers to the page value while it would make more sense to link it to the section value (or float number for figures or tables). I really need that, since the document I’m composing needs chapter and part page numbering independent from the whole document page numbering. Am I missing something or have I hit a bug? You can show the realpage value but there is no proper interface setting (e.g. \setuplist[chapter][pagenumber=realpage]) for this yet and I think it's better to do this. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \placelist[chapter][counter=realpage] not working
Dear list, here you have the following sample: \setuppapersize[A6] \setupuserpagenumber[way=chapter] \starttext \placelist[chapter][counter=realpage] \dorecurse{5}{\chapter{Chapter}} \stoptext Why doesn’t \placelist[chapter] use the realpage counter? According to i-context.pdf, \placelist inherits from \setuplist (which also inherits from \setupcounter). I really need that, since the document I’m composing needs chapter and part page numbering independent from the whole document page numbering. Am I missing something or have I hit a bug? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] placelist not working in latest beta
> On 21 Mar 2016, at 15:28, Hans Hagen wrote: > > when playign with some new feature i commented too much > > around line 722, uncomment: > > \setuplistalternative > [\c!command=\strictlistparameter\c!command, > \c!symbol=.] > > Done, and it works again! Thanks Hans! 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] placelist not working in latest beta
On 3/21/2016 9:57 AM, Schmitz Thomas A. wrote: Hi all, example attached with output from latest beta and an older one. The \placelist command appears to have changed recently; the older beta I tested is from November, but this used to work in February as well, the change must be recent. when playign with some new feature i commented too much around line 722, uncomment: \setuplistalternative [\c!command=\strictlistparameter\c!command, \c!symbol=.] Thanks a lot Thomas \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \gdef\MyMark{#1}% \writetolist[MyTopics][location=none]{#1}{}} \define[3]\FancyEntry{% \doifelse{\rawstructurelistfirst}{\MyMark}% {\quad\color[red]{#1}\quad} {\quad #1\quad}} \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}] \starttext \Topic[First] \contextversion First Topic \page \Topic[Second] Second Topic \page \Topic[Third] Third Topic \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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | 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] placelist not working in latest beta
Hi all, example attached with output from latest beta and an older one. The \placelist command appears to have changed recently; the older beta I tested is from November, but this used to work in February as well, the change must be recent. Thanks a lot Thomas \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \gdef\MyMark{#1}% \writetolist[MyTopics][location=none]{#1}{}} \define[3]\FancyEntry{% \doifelse{\rawstructurelistfirst}{\MyMark}% {\quad\color[red]{#1}\quad} {\quad #1\quad}} \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}] \starttext \Topic[First] \contextversion First Topic \page \Topic[Second] Second Topic \page \Topic[Third] Third Topic \stoptext 2015_11_19.pdf Description: Adobe PDF document 2016_03_13.pdf Description: Adobe PDF 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \placelist does not work
In the current beta/nightly, \placelist has stopped working. Other parameters don't matter--the command just doesn't work, period. ___ 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] \placelist summary alternative solution
On 14-12-2011 17:50, Felix Ingram wrote: I've ended up delving into the dark art that is Lua for this solution: \define[0]\SummaryTable{% \placetable[force, none]{}{% \setupTABLE[frame=off] \bTABLE \bTABLEhead \bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR \eTABLEhead \bTABLEbody \startluacode for k, v in ipairs(structures.lists.collected) do if v.metadata.kind == "section" and v.metadata.name == "section" then context.bTR() context.bTD() context("REFREF") context.eTD() context.bTD() context(v.titledata.title) context.eTD() context.bTD() context(v.references.realpage) context.eTD() context.eTR() end end \stopluacode% \eTABLEbody \eTABLE }% }% \starttext \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \SummaryTable \stoptext This works to some degree though I have the following questions about it: 1. Is there a way to access a document global variable from Lua? I will use this to replace the REFREF text. \startluacode document.myvariables = { } document.myvariables.whatever = "SOME TEXT" \stopluacode ... context(document.myvariables.whatever) 2. v.references.realpage isn't the actual page of the title. How can I access the page number that would have appeared in the ToC? (I've restarted the page numbering in my master doc, the above example works fine) as you're looking into the code ... search for helpers like lists.prefixedpage keep in mind that this is not yet an official api (although it will probably stay this way) 3. Is there a way to store some metadata along with my title? I'd like something similar to this: \myheader[author=me, date=2011-12-14]{This is my header with meta-data} and then be able to access it from Lua again. it's called userdata (third argument to \startchapter etc) .. it travels with the rest 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 ___
[NTG-context] \placelist summary alternative solution
I've ended up delving into the dark art that is Lua for this solution: \define[0]\SummaryTable{% \placetable[force, none]{}{% \setupTABLE[frame=off] \bTABLE \bTABLEhead \bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR \eTABLEhead \bTABLEbody \startluacode for k, v in ipairs(structures.lists.collected) do if v.metadata.kind == "section" and v.metadata.name == "section" then context.bTR() context.bTD() context("REFREF") context.eTD() context.bTD() context(v.titledata.title) context.eTD() context.bTD() context(v.references.realpage) context.eTD() context.eTR() end end \stopluacode% \eTABLEbody \eTABLE }% }% \starttext \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \section{Test} \input{knuth} \SummaryTable \stoptext This works to some degree though I have the following questions about it: 1. Is there a way to access a document global variable from Lua? I will use this to replace the REFREF text. 2. v.references.realpage isn't the actual page of the title. How can I access the page number that would have appeared in the ToC? (I've restarted the page numbering in my master doc, the above example works fine) 3. Is there a way to store some metadata along with my title? I'd like something similar to this: \myheader[author=me, date=2011-12-14]{This is my header with meta-data} and then be able to access it from Lua again. Thanks for any help you can give with this. Felix ___ 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] \placelist and \writetolist
Wolfgang Schuster writes: > Replace \setuplist with \definelist, before you use a list you should create > it. I knew I was missing something obvious... Thanks a lot, it works. Best wishes -- Marco ___ 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] \placelist and \writetolist
Am 13.12.2011 um 11:41 schrieb Marco Pessotto: > > Hello! > > I can't understand what I'm doing wrong here: > > % > > \setuplist[mylist] > [alternative=c, >width=0mm, >style=\tfx, >criterium=all] > > \starttext > > \placelist[mylist] > > \page[yes] > > \input knuth > > \writetolist[mylist]{}{Item} > > \stoptext > % > > The document compiles fine with version 2011.05.18 22:2, but it fails > miserably with the latest (2011.11.29 23:11) Replace \setuplist with \definelist, before you use a list you should create it. 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] \placelist and \writetolist
Hello! I can't understand what I'm doing wrong here: % \setuplist[mylist] [alternative=c, width=0mm, style=\tfx, criterium=all] \starttext \placelist[mylist] \page[yes] \input knuth \writetolist[mylist]{}{Item} \stoptext % The document compiles fine with version 2011.05.18 22:2, but it fails miserably with the latest (2011.11.29 23:11) ! Missing number, treated as zero. system > tex > error on line 11 in file prova.tex: Missing number, treated as zero ... 1 \setuplist[mylist] 2 [alternative=c, 3 width=0mm, 4 style=\tfx, 5 criterium=all] 6 7 8 \starttext 9 10 \placelist[mylist] 11 >> 12 \page[yes] 13 14 \input knuth 15 16 \writetolist[mylist]{}{Item} 17 18 \stoptext , \doplacestructurelist ...um = "#2", number = "#3", extras = "#4", order = "#... \doplacerawlist ...ras }{\listparameter \c!order } \stoplistreferences \endgr... \doplacelist ...ginoflist \doplacerawlist [#1][#2] \doendoflist \dodoubleemptyonespaced #1#2->#1[{#2}][] \par l.11 ? H A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) Thanks in advance. -- Marco ___ 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] \placelist after \chapter
Thanks Wolfgang - that works as expected. I'm trying to create a table from the headings (as previously mentioned). Something like this: \setuplist[chapter][criterium=all,alternative=command,command=\MySummaryTable,before={\setupTABLE[frame=on]\bTABLE\bTABLEbody},after={\eTABLEbody\eTABLE}] \define[3]\MySummaryTable{\bTR\bTD #1 \eTD\bTD #2 \eTD\bTD #3 \eTD\eTR} \starttext \placecontent \chapter{First one} \chapter{Second one} \chapter{Third one} \chapter{Fourth one} \chapter{Fifth one} \placelist[chapter][criterium=all] \stoptext While the content gets placed it doesn't appear in a table. I also notice that the same layout is used in the first \placecontent line. In my final document I'd like to have my headings included as usual in the table of contents but then have my own custom list appear as a table later in the document. Is it possible to define a separate format for a list that can be used outside of the ToC? Felix ___ 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] \placelist after \chapter
Am 12.12.2011 um 13:04 schrieb Felix Ingram: > Hi all, > > I can't seem to get a list placed after a numbered heading. For example: > > \starttext > \title{First one} > \placelist[chapter] > \chapter{Second one} > \placelist[chapter] % This won't be placed > \stoptext > > > Is this something I should be able to do? The reason I ask is that I'm > looking to generate a summary table in my document that will contain > information from my page titles. I'd like to have the heading title, > the page number and possibly some meta-info that I'm passing to my > custom command. (I'm planning on passing a custom command in the > \setuplist command). If it's not possible to \placelist's after > numbered headings then could someone suggest an alternative method? You need \placelist[chapter][criterium=all]. 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] \placelist after \chapter
Hi all, I can't seem to get a list placed after a numbered heading. For example: \starttext \title{First one} \placelist[chapter] \chapter{Second one} \placelist[chapter] % This won't be placed \stoptext Is this something I should be able to do? The reason I ask is that I'm looking to generate a summary table in my document that will contain information from my page titles. I'd like to have the heading title, the page number and possibly some meta-info that I'm passing to my custom command. (I'm planning on passing a custom command in the \setuplist command). If it's not possible to \placelist's after numbered headings then could someone suggest an alternative method? Many thanks, Felix ___ 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] placelist
Hi Wolfgang, On 4 Nov 2011, at 15:00, Wolfgang Schuster wrote: > > Am 04.11.2011 um 12:23 schrieb Willi Egger: > >> Hi Pontus, >> >> thanks for your quick reply. I tried your suggestion, but there is no >> success with it. … > > You need \placelist but you use \placecontent. This makes indeed the difference. thanks a lot! Willi > > 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] placelist
Am 04.11.2011 um 12:23 schrieb Willi Egger: > Hi Pontus, > > thanks for your quick reply. I tried your suggestion, but there is no success > with it. … You need \placelist but you use \placecontent. 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] placelist
Hi Pontus, thanks for your quick reply. I tried your suggestion, but there is no success with it. ... test-TOC.tex Description: Binary data Kind regards Willi On 4 Nov 2011, at 09:12, Pontus Lurcock wrote: > On Fri 04 Nov 2011, Willi Egger wrote: > >> it sound strange but how do I get a TOC where only the sections are >> placed but not the subsections? The document contains exclusively >> sections and subsections. With \placecontent[level=section] I get as >> well the sections as also the subsections. Looking at examples on >> the wiki I think this should be the right command? > > \placelist[section] should do what you want -- see > http://www.mail-archive.com/ntg-context@ntg.nl/msg59165.html . > > Pont > ___ > 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] placelist
On Fri 04 Nov 2011, Willi Egger wrote: > it sound strange but how do I get a TOC where only the sections are > placed but not the subsections? The document contains exclusively > sections and subsections. With \placecontent[level=section] I get as > well the sections as also the subsections. Looking at examples on > the wiki I think this should be the right command? \placelist[section] should do what you want -- see http://www.mail-archive.com/ntg-context@ntg.nl/msg59165.html . Pont ___ 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] placelist
Hi all, it sound strange but how do I get a TOC where only the sections are placed but not the subsections? The document contains exclusively sections and subsections. With \placecontent[level=section] I get as well the sections as also the subsections. Looking at examples on the wiki I think this should be the right command? Kind regards Willi ___ 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] \placelist
On 4 mai 09, at 20:18, Wolfgang Schuster wrote: Am 04.05.2009 um 18:20 schrieb Otared Kavian: Hi, As a matter of fact, the above example of \placelist gives a LuaTeX error (ConTeXt ver: 2009.04.21 16:11 MKIV fmt: 2009.4.25 int: english/ english): Make a update. ConTeXt ver: 2009.05.04 11:10 MKIV fmt: 2009.5.4 int: english/ english This is LuaTeX, Version beta-0.40.0-2009050311 luatex.web >= v2356 Wolfgang Hi Wolfgang, Indeed I need an update, but here is the dilemma… If I do an update, then I can't use my good old mkii with the latest Minimals: I get begin console ouput \write18 enabled. (/Volumes/OK-10.4/context-minimal/tex/texmf-context/web2c/natural.tcx) I can't find the format file `cont-en.fmt'! TeXExec | runtime: 0.074115 end console ouput However with mkiv and the latest Minimals I get the same result as you. Best regards: OK ___ 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] \placelist
Am 04.05.2009 um 18:20 schrieb Otared Kavian: Hi, As a matter of fact, the above example of \placelist gives a LuaTeX error (ConTeXt ver: 2009.04.21 16:11 MKIV fmt: 2009.4.25 int: english/ english): Make a update. ConTeXt ver: 2009.05.04 11:10 MKIV fmt: 2009.5.4 int: english/english This is LuaTeX, Version beta-0.40.0-2009050311 luatex.web >= v2356 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] \placelist
On 4 mai 09, at 18:09, Wolfgang Schuster wrote: Hi Hans, \placelist produce no output in mkiv. \starttext %\placelistoffigure \completelistoffigures here \placefigure{dummy}{\framed{DUMMY}} \stoptext Wolfgang Hi, As a matter of fact, the above example of \placelist gives a LuaTeX error (ConTeXt ver: 2009.04.21 16:11 MKIV fmt: 2009.4.25 int: english/ english): %%% begin console output structure : title @ level 2 : (0.0) . -> \headtext {figures} ! LuaTeX error ...imal/tex/texmf-context/tex/context/base/strc-doc.lua: 502: attempt to index field 'sectiontitle' (a nil value) stack traceback: ...imal/tex/texmf-context/tex/context/base/strc-doc.lua:502: in function 'sectiontitle' ...imal/tex/texmf-context/tex/context/base/strc-lst.lua:308: in function 'title' :1: in main chunk. \structurelistsectiontitle ...\currentlistindex )} \listtextcommand #1->\begstrut #1 \endstrut ...tentry {\structurelistsectiontitle } }\egroup \ifdim \wd 4=\zer... \secondoftwoarguments #1#2->#2 \dosomelistelement ... 4\relax \relax \fi }\hss }} \endgraf \nointerlineskip ... \dodolistelement ...ement {#1}{#2}{#3}{#4}{#5}{#6} \global \utilitydonetrue ... l.9 ? Process aborted %%% end console output Best regards: OK ___ 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] \placelist
Hi Hans, \placelist produce no output in mkiv. \starttext %\placelistoffigure \completelistoffigures here \placefigure{dummy}{\framed{DUMMY}} \stoptext 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] \placelist doesn't work in \startappendices
On Thu, 2006-08-17 at 23:49 +0200, Hans Hagen wrote: > Stuart Jansen wrote: > > On Thu, 2006-08-17 at 19:57 +0200, Taco Hoekwater wrote: > > > >> Stuart Jansen wrote: > >> > \startappendices > \chapter{Corge} > \placelist[section][criterium=local,alternative=c] > \section{Grault} \input zapf > \stopappendices > > > > > > > >>> How recent? I just tried it with the latest minimal, as well as > >>> live.contextgarden.net and neither worked for me. > >> > well, it depends ... i do get a one line toc between the chapter and > section title What the?! I specifically checked using live.contexgarden.net to make sure it wasn't a configuration problem on my side. I swear that line wasn't there! It's a good thing 5pm just arrived, I obviously need a break... Sorry for the confusion. -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist doesn't work in \startappendices
Stuart Jansen wrote: > On Thu, 2006-08-17 at 19:57 +0200, Taco Hoekwater wrote: > >> Stuart Jansen wrote: >> \startappendices \chapter{Corge} \placelist[section][criterium=local,alternative=c] \section{Grault} \input zapf \stopappendices > > >>> How recent? I just tried it with the latest minimal, as well as >>> live.contextgarden.net and neither worked for me. >>> >> Not _that_ recent. Strange, should have worked. >> well, it depends ... i do get a one line toc between the chapter and section title 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
Re: [NTG-context] \placelist doesn't work in \startappendices
On Thu, 2006-08-17 at 19:57 +0200, Taco Hoekwater wrote: > Stuart Jansen wrote: > >> \startappendices > >> \chapter{Corge} > >> \placelist[section][criterium=local,alternative=c] > >>\section{Grault} \input zapf > >> \stopappendices > >> > > How recent? I just tried it with the latest minimal, as well as > > live.contextgarden.net and neither worked for me. > > Not _that_ recent. Strange, should have worked. Okay, I guess that means it's a bug, not a feature. Hans: is this one hairy enough that I should register it in the collector? -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist doesn't work in \startappendices
Stuart Jansen wrote: > On Thu, 2006-08-17 at 19:08 +0200, Taco Hoekwater wrote: > >>Stuart Jansen wrote: >> >>>When \placelist[section][criterium=local] is used inside of >>>\startappendices, no list is included. I don't see any error messages. I >>>scoured the docs but found neither indication that this is the desired >>>behavior nor any idea how to change this behavior. Any ideas? >> >>I remember having a similar problem, that was fixed a few months ago. >> >> \startappendices >> \chapter{Corge} >> \placelist[section][criterium=local,alternative=c] >>\section{Grault} \input zapf >> \stopappendices >> >>works for me, so my best advice is a context upgrade. >>(maybe 'chapter' will work even in the old version). > > How recent? I just tried it with the latest minimal, as well as > live.contextgarden.net and neither worked for me. Not _that_ recent. Strange, should have worked. > 'chapter' only show me the chapter, not the sections. Unfortunately, > that's the exact opposite of what I'm hoping for. oops, try 'section' then :-) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist doesn't work in \startappendices
On Thu, 2006-08-17 at 19:08 +0200, Taco Hoekwater wrote: > Stuart Jansen wrote: > > When \placelist[section][criterium=local] is used inside of > > \startappendices, no list is included. I don't see any error messages. I > > scoured the docs but found neither indication that this is the desired > > behavior nor any idea how to change this behavior. Any ideas? > > I remember having a similar problem, that was fixed a few months ago. > >\startappendices > \chapter{Corge} > \placelist[section][criterium=local,alternative=c] > \section{Grault} \input zapf >\stopappendices > > works for me, so my best advice is a context upgrade. > (maybe 'chapter' will work even in the old version). How recent? I just tried it with the latest minimal, as well as live.contextgarden.net and neither worked for me. 'chapter' only show me the chapter, not the sections. Unfortunately, that's the exact opposite of what I'm hoping for. $ texexec --version TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist doesn't work in \startappendices
Stuart Jansen wrote: > When \placelist[section][criterium=local] is used inside of > \startappendices, no list is included. I don't see any error messages. I > scoured the docs but found neither indication that this is the desired > behavior nor any idea how to change this behavior. Any ideas? I remember having a similar problem, that was fixed a few months ago. \startappendices \chapter{Corge} \placelist[section][criterium=local,alternative=c] \section{Grault} \input zapf \stopappendices works for me, so my best advice is a context upgrade. (maybe 'chapter' will work even in the old version). Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \placelist doesn't work in \startappendices
When \placelist[section][criterium=local] is used inside of \startappendices, no list is included. I don't see any error messages. I scoured the docs but found neither indication that this is the desired behavior nor any idea how to change this behavior. Any ideas? \starttext \startbodymatter \chapter{Foo} \placelist[section][criterium=local,alternative=c] \section{Bar} \input knuth \stopbodymatter \startappendices \chapter{Corge} \placelist[section][criterium=current,alternative=c] \section{Grault} \input zapf \stopappendices \stoptext -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist disturbs grid?
Hans Hagen wrote: Vit Zyka wrote: Hans Hagen wrote: Vit Zyka wrote: Hello Hans, Taco, and the next gurus, sorry for bother with another thing I can not understand. Very high glyphs like \v S disturb grid in the \placelist. The same glyph in the common paragraph with the same (intentionally) interline setting preserves grid: --- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt] \setuplayout[grid=yes,width=8cm] \showgrid \writetolist[section]{}{See the next line:} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \starttext \v Sejba\par Here grid is OK, but in \type{placelist}: \placelist[section] no! \stoptext -- I was looking in definitions for some font-size dependent line setting, I also tried to \setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt} but without success to lounging on the grid. this is the default ratio: \setupinterlinespace [height=.72, depth=.28] Thank you Hans; after some experimenting I understood: - height and depth in \setupinterlinespace are baseline-ratio/size of struts (add description to tex-show) - some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio - list items are typeset with struts (perhaps all alternative) - only alternative without strut is 'none' with command=\Mycommand def So I do know how to preserve grid. But I do not know HOW TO TYPESET \Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the restricted horizontal mode and continue on one long line. And another question/request: can the list distance param (alternative d,...) be glue instead of skip? For better line fitting. example: -- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt,height=.77,depth=.23] \setuplayout[grid=yes,width=8cm] \showgrid \setuplist[section] [style=\tfd,alternative=none,command=\MyListItem] \def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }} \starttext \writetolist[section]{}{See the next line} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \writetolist[section]{}{And the last one} \lineskiplimit=-10pt Line\par Anothet line of \v Sejba\par \placelist[section] \strut %% should be! why? After list line. \stoptext -- Vit Hallo hans, thank you for your code. I find it in my mail box just today although it is 4 days old. So apologise me. Unfortunately it seems to me it A) does not work after successfull \definelistplacement[MyListItem][none]#1#2#3% {\listparameter{style} (#1 - #2 - #3) } \MyListItem is not defined. B) does not solve the problem with a single long line list alternative. But. Your example discovered me there are few more alternative in \setuplist (except a..f, none): horizontal vertical command So your example leads me to find the solution. I still do not know how to insert interaction to page number inside \MyListCommand. I have tried \def\MyListCommand#1#2#3{% #1-#2-% \setbox0\hbox{#3}% \showcontrastlocation\??ia{??}{#3}}% \linklisttoelement{subsection}{??}{#3}{\box0}% )} } but I am puzzled by \linklisttoelement parameters. Thnak ones more Vit Solution: -- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt,height=.77,depth=.23] \setuplayout[grid=yes,width=8cm] \showgrid \setuplist[part] [style=\bfb,alternative=command,command=\MyListCommand,before=\blank,after=\endgraf] \setuplist[chapter] [style=\bfb,alternative=command,command=\MyListCommand,before=\blank,after=\endgraf] \setuplist[section] [style=\tfa,alternative=command,command=\MyListCommand] \def\MyListCommand#1#2#3{% \listparameter{before}% {\listparameter{style}(#1-#2-#3)}\hskip1em plus.5em minus.5em \listparameter{after}% } \starttext \writetolist[part]{1}{Part 1} \writetolist[chapter]{1}{Chapter 1} \writetolist[section]{1}{See the next line} \writetolist[section]{2}{\v Sejba} \writetolist[section]{3}{Another list line} \expanded{\writetolist[section]{}{And the last line.}} \writetolist[chapter]{2}{Chapter 2} \writetolist[section]{1}{Section 1} \lineskiplimit=-\maxdimen Line\par Another line of \v Sejba\par \placecontent \strut After list. \stoptext --- \setuplist [section] [style=\tfd, alternative=none, after=\blank, before=\blank, command=\MyListItem] \setuplist [section] [style=\tfd, alternative=command command=\MyListItem] in core-lst you can see how the alternatives are defined ok, let's give you a bonus (goes in cont-new): \unprotect \def\definelistplacement {\dodoubleempty\dodefinelistplacement} \def\dodefinelistplacement[#1][#2]% {\setvalue{\@@dodolistelement#1}% {\doifelsenothing{#2} {\getvalue{\@@dodolistelement\v!command}}% {\executeifdefined{\@@dodolistelement#2} {\getvalue{\@@dodolistelement\v!command}}}% \setvalue{\??li\currentlist\c!command}% {\getvalue{\@@dodolistelement::#1}}}% \setv
Re: [Fwd: Re: [NTG-context] \placelist disturbs grid?]
Vit Zyka wrote: Hello, I was perhaps little descriptive in my last question. Let me discribe my real problem: you can explitly snap: \showgrid \setuplayout[grid=yes] \snaptogrid\vbox{\bf \setstrut \strut test} \snaptogrid[line]\vbox{\bfa \setstrut \strut test} \snaptogrid[line]\vbox{\bfa \setstrut \strut test 1\endgraf test 2} \snaptogrid\vbox{\sl \setstrut \strut test} - 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
[Fwd: Re: [NTG-context] \placelist disturbs grid?]
Hello, I was perhaps little descriptive in my last question. Let me discribe my real problem: I'd like to typeset a table of content as follows: -- Part 1 Chapter 1 Section 1Section 2Section3 Section with longer name 4Section 5 Section 6 Chapter 2 Section 1 Section 2... --- Everything has to be on the grid. Problem is that 'Part 1' and 'Chapter 1' are typeset with bigger font (\bfa and \tfa respectively). And grid is too tight to fit \bfa/\tfa struts. But the character size is optically OK even preserving grid due to blank lines around bigger font. I do not want to use \placetogrid in this case since AFAIK it adds one blank line more. Solution: not to add struts to list items and set \lineskiplimit=-\maxdimen. I discovered that there is alternative 'none' that does not place struts. The only problem is that 'none' create one long line like --- Section 1Section 2Section3 Section with longer name 4Section 5Section6 --- oversized \textwidth. So the question is: How to typeset list items to paragraph without struts? Minimal test code is bellow. Thank you for replay Vit Hans Hagen wrote: Vit Zyka wrote: Hello Hans, Taco, and the next gurus, sorry for bother with another thing I can not understand. Very high glyphs like \v S disturb grid in the \placelist. The same glyph in the common paragraph with the same (intentionally) interline setting preserves grid: --- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt] \setuplayout[grid=yes,width=8cm] \showgrid \writetolist[section]{}{See the next line:} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \starttext \v Sejba\par Here grid is OK, but in \type{placelist}: \placelist[section] no! \stoptext -- I was looking in definitions for some font-size dependent line setting, I also tried to \setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt} but without success to lounging on the grid. this is the default ratio: \setupinterlinespace [height=.72, depth=.28] Thank you Hans; after some experimenting I understood: - height and depth in \setupinterlinespace are baseline-ratio/size of struts (add description to tex-show) - some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio - list items are typeset with struts (perhaps all alternative) - only alternative without strut is 'none' with command=\Mycommand def So I do know how to preserve grid. But I do not know HOW TO TYPESET \Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the restricted horizontal mode and continue on one long line. And another question/request: can the list distance param (alternative d,...) be glue instead of skip? For better line fitting. example: -- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt,height=.77,depth=.23] \setuplayout[grid=yes,width=8cm] \showgrid \setuplist[section] [style=\tfd,alternative=none,command=\MyListItem] \def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }} \starttext \writetolist[section]{}{See the next line} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \writetolist[section]{}{And the last one} \lineskiplimit=-10pt Line\par Anothet line of \v Sejba\par \placelist[section] \strut %% should be! why? After list line. \stoptext -- Vit -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist disturbs grid?
Vit Zyka wrote: Hans Hagen wrote: Vit Zyka wrote: Hello Hans, Taco, and the next gurus, sorry for bother with another thing I can not understand. Very high glyphs like \v S disturb grid in the \placelist. The same glyph in the common paragraph with the same (intentionally) interline setting preserves grid: --- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt] \setuplayout[grid=yes,width=8cm] \showgrid \writetolist[section]{}{See the next line:} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \starttext \v Sejba\par Here grid is OK, but in \type{placelist}: \placelist[section] no! \stoptext -- I was looking in definitions for some font-size dependent line setting, I also tried to \setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt} but without success to lounging on the grid. this is the default ratio: \setupinterlinespace [height=.72, depth=.28] Thank you Hans; after some experimenting I understood: - height and depth in \setupinterlinespace are baseline-ratio/size of struts (add description to tex-show) - some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio - list items are typeset with struts (perhaps all alternative) - only alternative without strut is 'none' with command=\Mycommand def So I do know how to preserve grid. But I do not know HOW TO TYPESET \Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the restricted horizontal mode and continue on one long line. And another question/request: can the list distance param (alternative d,...) be glue instead of skip? For better line fitting. example: -- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt,height=.77,depth=.23] \setuplayout[grid=yes,width=8cm] \showgrid \setuplist[section] [style=\tfd,alternative=none,command=\MyListItem] \def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }} \starttext \writetolist[section]{}{See the next line} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \writetolist[section]{}{And the last one} \lineskiplimit=-10pt Line\par Anothet line of \v Sejba\par \placelist[section] \strut %% should be! why? After list line. \stoptext -- Vit \setuplist [section] [style=\tfd, alternative=none, after=\blank, before=\blank, command=\MyListItem] \setuplist [section] [style=\tfd, alternative=command command=\MyListItem] in core-lst you can see how the alternatives are defined ok, let's give you a bonus (goes in cont-new): \unprotect \def\definelistplacement {\dodoubleempty\dodefinelistplacement} \def\dodefinelistplacement[#1][#2]% {\setvalue{\@@dodolistelement#1}% {\doifelsenothing{#2} {\getvalue{\@@dodolistelement\v!command}}% {\executeifdefined{\@@dodolistelement#2} {\getvalue{\@@dodolistelement\v!command}}}% \setvalue{\??li\currentlist\c!command}% {\getvalue{\@@dodolistelement::#1}}}% \setvalue{\@@dodolistelement::#1}} \definelistplacement[MyListItem][none]#1#2#3% {\listparameter{style} (#1 - #2 - #3) } \protect now you can say: \definelistplacement[MyListItem][none]#1#2#3% {\listparameter{style} (#1 - #2 - #3) } \setuplist [section] [style=\tfd, alternative=MyListItem, after=\blank, before=\blank] (btw, watch how one can ask for listparameters) \definelistplacement[MyListItem][none]#1#2#3% {\listparameter{style} (#1 - #2 - #3) } \setuplist [section] [style=\tfd, alternative=MyListItem, after=\blank, before=\blank] \definelistplacement[MyListItem][none]#1#2#3% {\listparameter{before} \listparameter{style} (#1 - #2 - #3) \listparameter{after}} 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
Re: [NTG-context] \placelist disturbs grid?
Hans Hagen wrote: Vit Zyka wrote: Hello Hans, Taco, and the next gurus, sorry for bother with another thing I can not understand. Very high glyphs like \v S disturb grid in the \placelist. The same glyph in the common paragraph with the same (intentionally) interline setting preserves grid: --- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt] \setuplayout[grid=yes,width=8cm] \showgrid \writetolist[section]{}{See the next line:} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \starttext \v Sejba\par Here grid is OK, but in \type{placelist}: \placelist[section] no! \stoptext -- I was looking in definitions for some font-size dependent line setting, I also tried to \setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt} but without success to lounging on the grid. this is the default ratio: \setupinterlinespace [height=.72, depth=.28] Thank you Hans; after some experimenting I understood: - height and depth in \setupinterlinespace are baseline-ratio/size of struts (add description to tex-show) - some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio - list items are typeset with struts (perhaps all alternative) - only alternative without strut is 'none' with command=\Mycommand def So I do know how to preserve grid. But I do not know HOW TO TYPESET \Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the restricted horizontal mode and continue on one long line. And another question/request: can the list distance param (alternative d,...) be glue instead of skip? For better line fitting. example: -- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt,height=.77,depth=.23] \setuplayout[grid=yes,width=8cm] \showgrid \setuplist[section] [style=\tfd,alternative=none,command=\MyListItem] \def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }} \starttext \writetolist[section]{}{See the next line} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \writetolist[section]{}{And the last one} \lineskiplimit=-10pt Line\par Anothet line of \v Sejba\par \placelist[section] \strut %% should be! why? After list line. \stoptext -- Vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist disturbs grid?
Vit Zyka wrote: Hello Hans, Taco, and the next gurus, sorry for bother with another thing I can not understand. Very high glyphs like \v S disturb grid in the \placelist. The same glyph in the common paragraph with the same (intentionally) interline setting preserves grid: --- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt] \setuplayout[grid=yes,width=8cm] \showgrid \writetolist[section]{}{See the next line:} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \starttext \v Sejba\par Here grid is OK, but in \type{placelist}: \placelist[section] no! \stoptext -- I was looking in definitions for some font-size dependent line setting, I also tried to \setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt} but without success to lounging on the grid. this is the default ratio: \setupinterlinespace [height=.72, depth=.28] you can change that (as long as it adds up to 1.0) 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] \placelist disturbs grid?
Hello Hans, Taco, and the next gurus, sorry for bother with another thing I can not understand. Very high glyphs like \v S disturb grid in the \placelist. The same glyph in the common paragraph with the same (intentionally) interline setting preserves grid: --- \setupbodyfont[10pt,rm] \setupinterlinespace[line=12pt] \setuplayout[grid=yes,width=8cm] \showgrid \writetolist[section]{}{See the next line:} \writetolist[section]{}{\v Sejba} \writetolist[section]{}{Another list line} \starttext \v Sejba\par Here grid is OK, but in \type{placelist}: \placelist[section] no! \stoptext -- I was looking in definitions for some font-size dependent line setting, I also tried to \setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt} but without success to lounging on the grid. Can somebody help me, please? vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist is influensed by \completeregister ??
Taco Hoekwater wrote: Vit Zyka wrote: Dear Hans, Taco, ... I noticed strange behaviour. When I use \completeregister lists I have defined are ignored: Your post is a specific example of a more generic truth: new lists are by default influenced by the sectioning commands The solution is to disable that influence, like so: \definelist[somelist][criterium=all] Otherwise you get only the entries defined within the 'Letter' section, and (in this case) there are none. Ahhh, now I understand parameter criterium. Thank you Taco for explanation. I added some notes/example about to texshow/setuplist. vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist is influensed by \completeregister ??
Vit Zyka wrote: Dear Hans, Taco, ... I noticed strange behaviour. When I use \completeregister lists I have defined are ignored: Your post is a specific example of a more generic truth: new lists are by default influenced by the sectioning commands The solution is to disable that influence, like so: \definelist[somelist][criterium=all] Otherwise you get only the entries defined within the 'Letter' section, and (in this case) there are none. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \placelist is influensed by \completeregister ??
Dear Hans, Taco, ... I noticed strange behaviour. When I use \completeregister lists I have defined are ignored: -- \defineregister[letter][letters] \definelist[somelist] \starttext Hello! \letter{Letter S} \writetolist[somelist]{List entry, part A}{List entry, part B} %\placeregister[letter] \completeregister[letter] \placelist[somelist] \stoptext - I discovered that the source of the bug is probably \headtext the line \expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}% in the \completeregister definition. Please can somebody have a look on it? vit -- \unprotect \def\docompleteregister[#1][#2]% {\iffirstargument \begingroup \edef\currentregister{#1}% % the expansion is needed because we don't want \v!'s in the tuo file (french) % \expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}% \placeregister[\currentregister][#2]% \page[\v!yes]% \endgroup \fi} \protect -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context