Re: [NTG-context] bug in current beta?
On 02/03/2015 09:40 PM, Otared Kavian wrote: Hi Pablo, I don’t have the font FreeSerif, but with another font (stix, to be precise) I get the attached PDF. My version is 2015.01.30 15:28. I can’t say much what you really expect and where there should be a bug… Hi Otared, sorry for being cryptic in my bug reports. Besides the fact that Hans fixed both the bug and my mistake (enabling languages before setting them up), the bug was having the first χαλεπὰ unhyphenated and the second one hyphenated. The output was: ho- la χαλεπὰ χα- λε- πὰ It should have been (as it is with beta from 2015.02.03 23:55): ho- la χα- λε- πὰ χα- λε- πὰ Sorry for the (unwanted) secrecy and 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in current beta?
On 02/03/2015 09:31 PM, Hans Hagen wrote: [...] more a side effect of a speedup in language switching (assuming no change in patterns after enabling a language) [...] actually, a \mainlanguage after \setuplanguage would work in your case Many thanks for your reply and the fix, Hans. 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 ___
[NTG-context] How to use \setuplist for formatting a chapter entry?
Hello list, I have one little problem that I need to solve to finish my work on a document. I want to format a list entry for the TOC for chapters like this: Hoofdstuk #1 -- #2 . . . . . . . . #3 Where #1 is the chapter number, #2 is the title and #3 the page number where the chapter begins. Of course the . . . entry is just like the normal cases where the dots fill the rest of the line. I have an *almost* correct solution using numbercommand and setting the width for the title, but this leaves a gap between the formatted chapter number and the title, because chapter 9 and chapter 10 don't take the same width. So, some other solution is needed. I tried using the command option, which needs 3 arguments, but could not get it to work. Here is how it looks now: \define[1]\ChapterNumberToc% {Hoofdstuk #1 -- } \definecombinedlist[content][chapter] \setupcombinedlist[content][level=4, alternative=c] \setuplist[chapter][headnumber=yes,style=bold,width=8em,numbercommand=\ChapterNumberToc] \starttext \completecontent \dorecurse{5}{ \chapter {Knuth} \input knuth \chapter {Zapf} \input zapf} \stoptext As you can see, there is a different between the 9-th and 10-th chapter, because title is set at a specific width, and doesn't adapt to the width of the formatted chapter number entry. How to solve this, so that the title is placed directly after the Hoofdstuk #1 -- entry, thereafter the filler with dots and finally the page number at the location where it is now. Thanks, Rob ___ 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] How to use \setuplist for formatting a chapter entry?
You have to write your own layout for the complete list entry. When you donât need hyperlinks for the list entries you can use âalternative=commandâ instead of âalternative=interactiveâ for \setuplist. \setupcombinedlist[content][list=chapter] \definefiller[ChapterFiller] \define[3]\ChapterListEntry {\vbox{Hoofdstuk #1 â #2 \filler[ChapterFiller] #3}} \setuplist[chapter][alternative=interactive,command=\ChapterListEntry] \starttext \completecontent \dorecurse{5}{ \chapter {Knuth} \input knuth \chapter {Zapf} \input zapf} \stoptext Wolfgang Hello Wolfgang, The example works. However, if I do the same changes you made to my example to my actual document, the result is different for some reason. The chapter entry in the list (TOC) gets printed like: #1 #2 . . . . . . . . . . . #3 So the Hoofdstuk and -- element is not printed, and title is on a fixed position. The entry IS interactive (printed green but not bold). Here are my changes (replaced \ChapterToc for \ChapterListEntry) \definefiller[ChapterFiller] \define[3]\ChapterToc% {\vbox{\bf Hoofdstuk #1 -- #2 \filler[ChapterFiller] #3}} \setuplist[chapter][alternative=interactive,command=\ChapterToc] And my list is defined like this: \definecombinedlist[content][chapter,section,intro,summary,appendix,back] \setupcombinedlist[content][level=4, alternative=c] I don't understand why making the same changes you did to the example, performed on my document, makes a difference. Can other \setuplist definitions have something to do with it? Here are some other definitions I used: \definehead[intro][chapter] \definehead[back][chapter] \definehead[appendix][chapter] \definehead[summary][section] \setuplist[chapter][alternative=interactive,command=\ChapterToc] \setuplist[section][headnumber=no] \setuplist[summary][headnumber=no] \setuplist[appendix][headnumber=no,style=bold,textcommand=\AppendixToc] \setuplist[back][headnumber=no,style=bold,textcommand=\BackToc] Entries for appendix chapter and back chapter get printed correctyly but they don't have chapter number, only normal chapters have that. Still puzzled by this... Rob ___ 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] How to use \setuplist for formatting a chapter entry?
Am 03.02.2015 um 12:15 schrieb Rob Heusdens robh...@xs4all.nl: You have to write your own layout for the complete list entry. When you donât need hyperlinks for the list entries you can use âalternative=commandâ instead of âalternative=interactiveâ for \setuplist. \setupcombinedlist[content][list=chapter] \definefiller[ChapterFiller] \define[3]\ChapterListEntry {\vbox{Hoofdstuk #1 â #2 \filler[ChapterFiller] #3}} \setuplist[chapter][alternative=interactive,command=\ChapterListEntry] \starttext \completecontent \dorecurse{5}{ \chapter {Knuth} \input knuth \chapter {Zapf} \input zapf} \stoptext Wolfgang Hello Wolfgang, The example works. However, if I do the same changes you made to my example to my actual document, the result is different for some reason. The chapter entry in the list (TOC) gets printed like: #1 #2 . . . . . . . . . . . #3 So the Hoofdstuk and -- element is not printed, and title is on a fixed position. The entry IS interactive (printed green but not bold). Here are my changes (replaced \ChapterToc for \ChapterListEntry) \definefiller[ChapterFiller] \define[3]\ChapterToc% {\vbox{\bf Hoofdstuk #1 -- #2 \filler[ChapterFiller] #3}} \setuplist[chapter][alternative=interactive,command=\ChapterToc] And my list is defined like this: \definecombinedlist[content][chapter,section,intro,summary,appendix,back] \setupcombinedlist[content][level=4, alternative=c] Remove the line above (the level key down’t work with MkIV) and use \setuplist to set “alternative=c” for the list entries where you want to apply this layout. 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] How to use \setuplist for formatting a chapter entry?
Remove the line above (the level key downât work with MkIV) and use \setuplist to set âalternative=câ for the list entries where you want to apply this layout. Wolfgang I commented out the \setupcombinedlist command and placed alternative=c into the other \setuplist entries (except for \setuplist[chapter] which has alternative=interactive Then the result is even worse: * the Introduction entry gets printed strangely like this: [intro: Inleiding 13] * the chapther entries are NOT interactive (black instead of green, but do have bold), and while containing the right entries, they are indented to the right. Other entries do print ok. If I also set alternative=c for the chapter list entry, the other errors go away, but the chapter line again looks like this: #1 #2 . . . . . #3 and interactive (green) but not bold. Still puzzled. Rob ___ 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] context wiki and luatex.org offline
Hi guys, The harddisk of the server that (amongst other things) runs the ConTeXt wiki and various luatex.org websites has apparently crashed. We are trying to get the server running again, but it could take some time before everything is back online. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug in current beta?
Dear list, beta from 2015.01.30 15:28 isn’t able to hyphenate the second word in this sample (also beta from 2014.11.26 21:43 doesn’t hyphenate it): \mainlanguage[es] \setuplanguage[es][patterns={es, agr}] \setupdirections[bidi=on,method=two] \definefontfamily[mainface][rm][FreeSerif] \setupbodyfont[mainface] \starttext \hsize\zeropoint hola χαλεπὰ {\agr χαλεπὰ} \stoptext Beta from 2014.07.14 19:25 hypehantes all three words. I’m afraid this may be a bug. Could someone else confirm it? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in current beta?
On 2/3/2015 8:55 PM, Pablo Rodriguez wrote: Dear list, beta from 2015.01.30 15:28 isn’t able to hyphenate the second word in this sample (also beta from 2014.11.26 21:43 doesn’t hyphenate it): \mainlanguage[es] \setuplanguage[es][patterns={es, agr}] \setupdirections[bidi=on,method=two] \definefontfamily[mainface][rm][FreeSerif] \setupbodyfont[mainface] \starttext \hsize\zeropoint hola χαλεπὰ {\agr χαλεπὰ} \stoptext Beta from 2014.07.14 19:25 hypehantes all three words. I’m afraid this may be a bug. Could someone else confirm it? more a side effect of a speedup in language switching (assuming no change in patterns after enabling a language) you can put this in cont-new.mkiv \unprotect \appendtoks \global\expandafter\let\csname\??languagenumbers\currentlanguage\endcsname\undefined \to \everysetuplanguage \protect actually, a \mainlanguage after \setuplanguage would work in your case Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in current beta?
Hi Pablo, I don’t have the font FreeSerif, but with another font (stix, to be precise) I get the attached PDF. My version is 2015.01.30 15:28. I can’t say much what you really expect and where there should be a bug… Best regards: OK greek-espanish.pdf Description: Adobe PDF document On 03 Feb 2015, at 20:55, Pablo Rodriguez oi...@gmx.es wrote: Dear list, beta from 2015.01.30 15:28 isn’t able to hyphenate the second word in this sample (also beta from 2014.11.26 21:43 doesn’t hyphenate it): \mainlanguage[es] \setuplanguage[es][patterns={es, agr}] \setupdirections[bidi=on,method=two] \definefontfamily[mainface][rm][FreeSerif] \setupbodyfont[mainface] \starttext \hsize\zeropoint hola χαλεπὰ {\agr χαλεπὰ} \stoptext Beta from 2014.07.14 19:25 hypehantes all three words. I’m afraid this may be a bug. Could someone else confirm it? 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://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] How to use \setuplist for formatting a chapter entry?
Am 03.02.2015 um 09:57 schrieb Rob Heusdens robh...@xs4all.nl: Hello list, I have one little problem that I need to solve to finish my work on a document. I want to format a list entry for the TOC for chapters like this: Hoofdstuk #1 -- #2 . . . . . . . . #3 Where #1 is the chapter number, #2 is the title and #3 the page number where the chapter begins. Of course the . . . entry is just like the normal cases where the dots fill the rest of the line. I have an *almost* correct solution using numbercommand and setting the width for the title, but this leaves a gap between the formatted chapter number and the title, because chapter 9 and chapter 10 don't take the same width. So, some other solution is needed. I tried using the command option, which needs 3 arguments, but could not get it to work. Here is how it looks now: \define[1]\ChapterNumberToc% {Hoofdstuk #1 -- } \definecombinedlist[content][chapter] \setupcombinedlist[content][level=4, alternative=c] \setuplist[chapter][headnumber=yes,style=bold,width=8em,numbercommand=\ChapterNumberToc] \starttext \completecontent \dorecurse{5}{ \chapter {Knuth} \input knuth \chapter {Zapf} \input zapf} \stoptext As you can see, there is a different between the 9-th and 10-th chapter, because title is set at a specific width, and doesn't adapt to the width of the formatted chapter number entry. How to solve this, so that the title is placed directly after the Hoofdstuk #1 -- entry, thereafter the filler with dots and finally the page number at the location where it is now. You have to write your own layout for the complete list entry. When you don’t need hyperlinks for the list entries you can use “alternative=command” instead of “alternative=interactive” for \setuplist. \setupcombinedlist[content][list=chapter] \definefiller[ChapterFiller] \define[3]\ChapterListEntry {\vbox{Hoofdstuk #1 – #2 \filler[ChapterFiller] #3}} \setuplist[chapter][alternative=interactive,command=\ChapterListEntry] \starttext \completecontent \dorecurse{5}{ \chapter {Knuth} \input knuth \chapter {Zapf} \input zapf} \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 ___