[NTG-context] interaction strangeness
Something strange happened here with the interaction in a pdf produced. There are chapters reacting when clicked in the table of contents but some are not. Moreover, this behaviour changes with the version of context used. I tried 3 versions of the beta: ConTeXt ver: 2013.10.15 13:52 MKIV beta ConTeXt ver: 2013.11.10 12:23 MKIV beta One specific chapter does not jump to the starting page when clicked. ConTeXt ver: 2013.12.04 11:34 MKIV beta Nothing changed in the source but now another chapter link also becomes inactive! There is no ready explanation I can think of. Because the document in question is about 500 pages I do not yet have a minimal example at hand. And as I suspect the problem can have its origin in the complexity and/or size of the document, I fear the construction of a minimal example will be difficult. Therefore I am first asking if this problem is known already. Afterwards I will try to find a small example, of course. Hans van der Meer ___ 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] wider item numbering in toc
In the table of contents my items are numbers 1, 2, etc. At the number the aligning is wrong, the tens are shifted to the right. I tried to remedy with a setup: \setupitemgroup[itemize][each][5,autointro][…] But changing width, distance, textdistance, itemalign do not have effect on the toc. How to accomplish? Hans van der Meer ___ 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] (critical edition) text reducing command
Hi Thomas, Luigi and Hans, I have a feature suggestion that might be interesting to implement for critical editions. Here is my code sample: \mainlanguage[la] \unexpanded\def\doVariant#1#2#3% {\startlinenote[#1]{#2] #3}#2% \prewordbreak\stoplinenote[#1]} \newcounter\VarCounter \unexpanded\def\Variant {\doglobal\increment\VarCounter \normalexpanded{\doVariant{Varia:\VarCounter}}} \starttext \startlinenumbering Gallia est omnis divisa in partes tres, \Variant{quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur}{{\em om} X}. \blank Gallia est omnis divisa in partes tres, \startlinenote[firstone]{quarum ... appelantur] {\em om} X}quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur\stoplinenote[firstone]. \stoplinenumbering \stoptext To automatically get the text reduced to the form that appears in the second paragraph, there should be a command for that. In this text reduction, one should be able to set how many words (no punctuation marks) should contain the text to be reduced, how many words should be printed before the separator, how many words should be printed after the separator and which is the separator. I don’t know whether this could be a good way of coding it: \definetextreduction[caesarcompressed] \setuptextreduction[caesarcompressed][totallength=5, wordsbeforesep=1, wordsaftersep=1, separator={...}] I think this feature may be especially relevant with TEI encoded texts. There is a shortcoming on my proposal: only words have to be counted and added to the output and punctuation signs should be ignored. But this is clearly limited, since exclamation and question marks (Spanish has both opening and closing marks for exclamation and question: ¿? ¡!) should not be counted as words (total, after or before), but they should be included in the reduced version of the text. The same happens with apostrophe. And I wonder whether the same rules should be applied to quotation marks. There is a special case: the semicolon is also used as question mark in Greek. I think it is clear than the semicolon should be removed for the reduced text in other languages than Greek, but it should be included (not counted) in Greek reduced texts. I hope the proposal and the issues it might arise are clear. Please, ask if they aren’t. Many thanks for your excellent work, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wider item numbering in toc
Am 06.12.2013 um 13:53 schrieb H. van der Meer h.vanderm...@uva.nl: In the table of contents my items are numbers 1, 2, etc. At the number the aligning is wrong, the tens are shifted to the right. I tried to remedy with a setup: \setupitemgroup[itemize][each][5,autointro][…] But changing width, distance, textdistance, itemalign do not have effect on the toc. How to accomplish? Where is the problem, in your table of contents which is controlled by \setuplist or in your itemize which is controlled by \setupitemgroup? 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] interaction strangeness
Some further experimentation: interchanging two chapters makes the problem go away. It is reproducible, because putting the chapters back als brings the problem back. Even stranger, sitting at chapter 5 it kills the interaction for chapter 6 and 8, leaving the interactivity for the intervening and later chapters intact. Addition of content to the start of chapter 5 helped for chapter 6 but not for chapter 8, which seems strange. Addition of content to the end of chapter 5 also helped for chapter 6 Addition of content to the start of chapter 7 did help to solve for chapter 8. So I fear it has in some way to do with the moment the output routine is called in relation to the reference processing in \startchapter[title=,reference=]. Hans van der Meer On 6 dec. 2013, at 12:42, H. van der Meer h.vanderm...@uva.nl wrote: Something strange happened here with the interaction in a pdf produced. There are chapters reacting when clicked in the table of contents but some are not. Moreover, this behaviour changes with the version of context used. I tried 3 versions of the beta: ConTeXt ver: 2013.10.15 13:52 MKIV beta ConTeXt ver: 2013.11.10 12:23 MKIV beta One specific chapter does not jump to the starting page when clicked. ConTeXt ver: 2013.12.04 11:34 MKIV beta Nothing changed in the source but now another chapter link also becomes inactive! There is no ready explanation I can think of. Because the document in question is about 500 pages I do not yet have a minimal example at hand. And as I suspect the problem can have its origin in the complexity and/or size of the document, I fear the construction of a minimal example will be difficult. Therefore I am first asking if this problem is known already. Afterwards I will try to find a small example, of course. Hans van der Meer ___ 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] wider item numbering in toc
The table of contents results from: \startfrontmatter \input front \let\ChapterTOC\relax % Only then chapters typeset !? \completecontent \stopfrontmatter The table of contents is typeset from the completecontent, so I guess the answer to your question will be \setuplist. There I have set \setupcombinedlist[content][list=chapter]% [list={chapter,section}] \setupcombinedlist[section][list=section] Why I have to use \let\ChapterTOC\relax is a riddle to me. I want the main toc giving the chapters, whereas in the seperate chapters the sections therin should appear in their own toc. Hans van der Meer On 6 dec. 2013, at 14:44, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 06.12.2013 um 13:53 schrieb H. van der Meer h.vanderm...@uva.nl: In the table of contents my items are numbers 1, 2, etc. At the number the aligning is wrong, the tens are shifted to the right. I tried to remedy with a setup: \setupitemgroup[itemize][each][5,autointro][…] But changing width, distance, textdistance, itemalign do not have effect on the toc. How to accomplish? Where is the problem, in your table of contents which is controlled by \setuplist or in your itemize which is controlled by \setupitemgroup? 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] wider item numbering in toc
Am 06.12.2013 um 14:59 schrieb H. van der Meer h.vanderm...@uva.nl: The table of contents results from: \startfrontmatter \input front \let\ChapterTOC\relax % Only then chapters typeset !? \completecontent \stopfrontmatter The table of contents is typeset from the completecontent, so I guess the answer to your question will be \setuplist. There I have set \setupcombinedlist[content][list=chapter]%[list={chapter,section}] \setupcombinedlist[section][list=section] Why I have to use \let\ChapterTOC\relax is a riddle to me. I want the main toc giving the chapters, whereas in the seperate chapters the sections therin should appear in their own toc. Which numbers are wrong, the section numbers or the page numbers? \starttext \title{Table of contents} \placecontent[list=chapter] \dorecurse{20} {\chapter{Chapter #1} \placecontent % lists are local unless you use criterium=all \dorecurse{5} {\section{Section #1.##1}}} \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wider item numbering in toc
Which numbers are wrong, the section numbers or the page numbers?The chapter numbers. See the jpg below. The 10 with its separator is too far to the right. Hans van der Meer On 6 dec. 2013, at 15:13, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:Am 06.12.2013 um 14:59 schrieb H. van der Meer h.vanderm...@uva.nl:The table of contents results from:\startfrontmatter \input front \let\ChapterTOC\relax % Only then chapters typeset !? \completecontent\stopfrontmatterThe table of contents is typeset from the completecontent, so I guess the answer to your question will be \setuplist.There I have set\setupcombinedlist[content][list=chapter]% [list={chapter,section}]\setupcombinedlist[section][list=section]Why I have to use \let\ChapterTOC\relax is a riddle to me. I want the main toc giving the chapters, whereas in the seperate chapters the sections therin should appear in their own toc.Which numbers are wrong, the section numbers or the page numbers?\starttext\title{Table of contents}\placecontent[list=chapter]\dorecurse{20} {\chapter{Chapter #1} \placecontent % lists are local unless you use criterium=all \dorecurse{5} {\section{Section #1.##1}}}\stoptextWolfgang___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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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] wider item numbering in toc
Am 06.12.2013 um 17:32 schrieb H. van der Meer h.vanderm...@uva.nl: Which numbers are wrong, the section numbers or the page numbers? The chapter numbers. See the jpg below. The 10 with its separator is too far to the right. This is normal because the numbers are aligned on the left margin, when the space for the number is too narrow you have to increase the width value, e.g. \setuplist[chapter][width=3em]. 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] interaction strangeness
I confirm the problem and the strange behavior when moving chapters around or adding dummy chapters and sections. I, too, have not yet been able to produce a minimal example, and we have little hope of getting this fixed until we can produce such a minimal example. Alan On Fri, 6 Dec 2013 14:50:20 +0100 H. van der Meer h.vanderm...@uva.nl wrote: Some further experimentation: interchanging two chapters makes the problem go away. It is reproducible, because putting the chapters back als brings the problem back. Even stranger, sitting at chapter 5 it kills the interaction for chapter 6 and 8, leaving the interactivity for the intervening and later chapters intact. Addition of content to the start of chapter 5 helped for chapter 6 but not for chapter 8, which seems strange. Addition of content to the end of chapter 5 also helped for chapter 6 Addition of content to the start of chapter 7 did help to solve for chapter 8. So I fear it has in some way to do with the moment the output routine is called in relation to the reference processing in \startchapter[title=,reference=]. Hans van der Meer On 6 dec. 2013, at 12:42, H. van der Meer h.vanderm...@uva.nl wrote: Something strange happened here with the interaction in a pdf produced. There are chapters reacting when clicked in the table of contents but some are not. Moreover, this behaviour changes with the version of context used. I tried 3 versions of the beta: ConTeXt ver: 2013.10.15 13:52 MKIV beta ConTeXt ver: 2013.11.10 12:23 MKIV beta One specific chapter does not jump to the starting page when clicked. ConTeXt ver: 2013.12.04 11:34 MKIV beta Nothing changed in the source but now another chapter link also becomes inactive! There is no ready explanation I can think of. Because the document in question is about 500 pages I do not yet have a minimal example at hand. And as I suspect the problem can have its origin in the complexity and/or size of the document, I fear the construction of a minimal example will be difficult. Therefore I am first asking if this problem is known already. Afterwards I will try to find a small example, of course. Hans van der Meer ___ 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] wider item numbering in toc
Indeed, \setuplist[chapter][width=3em] makes the chapternumber set in a wider field. But the alignment is as bad as it was: flushleft, i.e. the 1 of chapter 10 still aligns with the units from the lower chapters instead of aligning to the zero. I looked up \setuplist in the command catalogue but cannot find a parameter to align this number, either to the right or to the left. It just seems to stick with the builtin default. I tried something like \setupitemgroup[chapter][][][itemalign=left (also tried right)] but to no avail. Hans van der Meer On 6 dec. 2013, at 17:41, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 06.12.2013 um 17:32 schrieb H. van der Meer h.vanderm...@uva.nl: Which numbers are wrong, the section numbers or the page numbers? The chapter numbers. See the jpg below. The 10 with its separator is too far to the right. This is normal because the numbers are aligned on the left margin, when the space for the number is too narrow you have to increase the width value, e.g. \setuplist[chapter][width=3em]. 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] wider item numbering in toc
Am 06.12.2013 um 20:20 schrieb H. van der Meer h.vanderm...@uva.nl: Indeed, \setuplist[chapter][width=3em] makes the chapternumber set in a wider field. But the alignment is as bad as it was: flushleft, i.e. the 1 of chapter 10 still aligns with the units from the lower chapters instead of aligning to the zero. I looked up \setuplist in the command catalogue but cannot find a parameter to align this number, either to the right or to the left. It just seems to stick with the builtin default. \define[1]\ChapterListNumber {\simplealignedbox{\listparameter{width}}{flushright}{#1}} \setuplist[chapter][width=2em,distance=1em,numbercommand=\ChapterListNumber] \starttext \title{Table of contents} \placecontent \dorecurse{20}{\chapter{Chapter #1}} \stoptext I tried something like \setupitemgroup[chapter][][][itemalign=left (also tried right)] but to no avail. Why do you think lists use the itemgroup/itemize mechanism? 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] wider item numbering in toc
\define[1]\ChapterListNumber {\simplealignedbox{\listparameter{width}}{flushright}{#1}} \setuplist[chapter][width=2em,distance=1em,numbercommand=\ChapterListNumber] This now gives a toc looking the way I like. May I lay at your foot a plea for a change/additional parameter here? \setuplist[][itemalign=left/right] or something in that sense. For numbered chapters I consider an alignment as below most natural, although opinions may differ. 8 9 10 11 instead of 8 9 10 11 By the way, the \define[1] eludes me. Why this particular [1] there? Why do you think lists use the itemgroup/itemize mechanism? I didn’t think that exactly, but just tried it in despair and having the idea that toc items are set as an itemized list (it looks that way, isn’t it?). Hans van der Meer On 6 dec. 2013, at 20:36, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 06.12.2013 um 20:20 schrieb H. van der Meer h.vanderm...@uva.nl: Indeed, \setuplist[chapter][width=3em] makes the chapternumber set in a wider field. But the alignment is as bad as it was: flushleft, i.e. the 1 of chapter 10 still aligns with the units from the lower chapters instead of aligning to the zero. I looked up \setuplist in the command catalogue but cannot find a parameter to align this number, either to the right or to the left. It just seems to stick with the builtin default. \define[1]\ChapterListNumber {\simplealignedbox{\listparameter{width}}{flushright}{#1}} \setuplist[chapter][width=2em,distance=1em,numbercommand=\ChapterListNumber] \starttext \title{Table of contents} \placecontent \dorecurse{20}{\chapter{Chapter #1}} \stoptext I tried something like \setupitemgroup[chapter][][][itemalign=left (also tried right)] but to no avail. 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 ___