[NTG-context] bookmarks: frontpart, bodypart, etc. ???
Hello, The bookmark mechanism has changed in a very recent beta and now \startfrontmatter \stopfrontmatter \startbodymatter \stopbodymatter \startappendices \stopappendices \startbackmatter \stopbackmatter ALL now add bookmarks to the PDF document??? This is VERY strange! I am using: \setupinteraction [state=start,option=bookmark] \setupinteractionscreen [option=bookmark] \placebookmarks [part,chapter,title,section,subsection] [part,chapter,title] Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] important line in TikZ
Hi, Can someone confirm if \draw[important line] (0,0) -- (1,0); works in ConTeXt? Or is it my old version? Thanks, Xan. ___ 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 test the emptyness of a variable?
Hello, Lua way: \setuplabeltext[chapter=] \define[1]\MyCommand{\ctxcommand{doifelse(1==\currentsectioncountervalue)}{ONE}{#1}} \setuphead[chapter][deepnumbercommand=\MyCommand] \starttext \chapter{Cool} \chapter{Cat} \chapter{Mouse} \stoptext I'm sure there is also a cleaner TeX way, but I'm not experienced enough for that. Cheers, Lukas On Tue, 05 Nov 2013 22:56:54 +0100, Géry Ogam maggy...@gmail.com wrote: Any idea for achieving this behaviour? - When there is a chapter label (\setuplabeltext[chapter=CHAPTER~]), display : CHAPTER ONE Cool CHAPTER 2 Cat CHAPTER 3 Mouse etc. - When there is no chapter label (\setuplabeltext[chapter=]), display: 1 Cool 2 Cat 3 Mouse etc. My try achieves the first display, but not the second one since I don’t know how to test the emptyness of the chapter label. When I remove the chapter label, it displays: ONE Cool 2 Cat 3 Mouse instead of: 1 Cool 2 Cat 3 Mouse My code: \setuplabeltext[chapter=CHAPTER~] \define[1] \MyCommand{\doifelse{\currentsectioncountervalue}{1}{ONE}{#1}} \setuphead[chapter][deepnumbercommand=\MyCommand] \starttext \chapter{Cool} \chapter{Cat} \chapter{Mouse} \stoptext -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 t2.mkiv Description: Binary data t2.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 ___
Re: [NTG-context] bookmarks: frontpart, bodypart, etc. ???
On 11/7/2013 10:00 AM, Alan BRASLAU wrote: Hello, The bookmark mechanism has changed in a very recent beta and now \startfrontmatter \stopfrontmatter \startbodymatter \stopbodymatter \startappendices \stopappendices \startbackmatter \stopbackmatter ALL now add bookmarks to the PDF document??? This is VERY strange! I am using: \setupinteraction [state=start,option=bookmark] \setupinteractionscreen [option=bookmark] \placebookmarks [part,chapter,title,section,subsection] [part,chapter,title] the next beta will have \setupbookmarks [sectionblock=yes] (default=no) - 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] How to test the emptyness of a variable?
I'm sure there is also a cleaner TeX way, but I'm not experienced enough for that. I think you misunderstood my issue: your Lua way does the same thing than my TeX way: it displays: ONE Cool 2 Cat 3 Mouse but that is NOT what I want. What I want is: 1 Cool 2 Cat 3 Mouse So I need to check if the chapter label has been set empty or not by the user, because it is not empty (let's say the user chose the string CHAPTER~ for the chapter label) I want to display this: CHAPTER ONE Cool CHAPTER 2 Cat CHAPTER 3 Mouse The way to do that is to check if the variable \currentstructurelabel is empty, so the code must be: \define[1] \MyCommand{\doifelse{\currentsectioncountervalue}{1}{\doifnotemptyelse{\currentstructurelabel}{ONE}{#1}}{#1}} \setuphead[chapter][deepnumbercommand=\MyCommand] \starttext \setuplabeltext[chapter=CHAPTER~] \chapter{Cool} \chapter{Cat} \chapter{Mouse} \stoptext \starttext \setuplabeltext[chapter=] \chapter{Cool} \chapter{Cat} \chapter{Mouse} \stoptext But the problem is that in the second case, even if the chapter label is set empty the command \doifnotemptyelse{\currentstructurelabel} thinks the variable \currentstructurelabel is not empty. So there must be something invisible in it, like a strut or something. ___ 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] bookmarks: frontpart, bodypart, etc. ???
Le jeudi 7 novembre 2013, 10:00:00 Alan BRASLAU a écrit : Hello, The bookmark mechanism has changed in a very recent beta and now \startfrontmatter \stopfrontmatter \startbodymatter \stopbodymatter \startappendices \stopappendices \startbackmatter \stopbackmatter ALL now add bookmarks to the PDF document??? This is VERY strange! I am using: \setupinteraction [state=start,option=bookmark] \setupinteractionscreen [option=bookmark] \placebookmarks [part,chapter,title,section,subsection] [part,chapter,title] Alan This is because I asked for… See the joined discussion. You do not like it? Le lundi 4 novembre 2013, 20:11:25 Hans Hagen a �crit : On 10/21/2013 6:45 PM, pol stra wrote: Hello, In my document, when I use a meta-structure, I only get introduction and content bookmarks, while not using a meta-structure, I have my part and chapter (which is the desired behaviour). How can I get the same behaviour in both structures? (by the way, how can I change the bookmarks of the table of contents, I tried \completecontent[bookmark=mytitle] and \setupcombinedlist[mytitle] without success). Thank you all Here is my sample code: \setupinteraction [state=start] \placebookmarks[part, chapter, section, title, subject][force=yes] \setupcombinedlist[content][ list={title, part, chapter, subject, subsubject, section, subsection}, alternative=c] \setuphead[part][placehead=yes, bodypartlabel=part] \startmode[meta] \startfrontmatter \startchapter[title={Introduction}] % \component c_introduction \stopchapter \completecontent[criterium=all] \stopfrontmatter \startbodymatter \startpart[title={part}] \startchapter[title={chapter1}] \stopchapter \stoppart \stopbodymatter \stopmode \startmode[nonmeta] \startchapter[title={Introduction}] % \component c_introduction \stopchapter \completecontent[criterium=all] \startpart[title={part}] \startchapter[title={chapter1}] \stopchapter \stoppart \stopmode If you want to influence the bookmark title you should explicitly set if (and then not use \complete ... but \place...). Anyhow, I've added an extra level to the bookmarks where you can also set the block titles. \setupinteraction [state=start] \placebookmarks [part,chapter,section,title,subject] [force=yes] \setupcombinedlist [content] [list={part,chapter,section,subsection}, alternative=c] \setuphead [part] [placehead=yes, bodypartlabel=part] \starttext \startfrontmatter[bookmark=A fancy title] \startchapter[title={The introduction}] \stopchapter \startchapter[title=Contents] \placecontent[criterium=all] \stopchapter \stopfrontmatter \startbodymatter \startpart[title={part}] \startchapter[title={Some chapter}] \stopchapter \stoppart \stopbodymatter \stoptext - 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 - Thank you for the job Hans! ___ 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] conditional argument and \doifemptyelse
On 11/06/2013 10:33 PM, Wolfgang Schuster wrote: Am 06.11.2013 um 20:26 schrieb Pablo Rodriguez oi...@gmx.es: [...] Is there no way to make \MyCommand above work with \doifemptyelse even if its third argument is not defined? \def\MyCommand {\dotriplegroupempty\doMyCommand} \def\doMyCommand#1#2#3% {#1, #2, \ifthirdargument #3\else #1\fi} \starttext \MyCommand{first}{second}{third} \MyCommand{first}{second} \stoptext Wolfgang, many thanks for your reply and the fix. 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] bookmarks: frontpart, bodypart, etc. ???
On Thu, 7 Nov 2013 19:30:08 +0100 pol stra r...@hotmail.fr wrote: Le jeudi 7 novembre 2013, 10:00:00 Alan BRASLAU a écrit : Hello, The bookmark mechanism has changed in a very recent beta and now \startfrontmatter \stopfrontmatter \startbodymatter \stopbodymatter \startappendices \stopappendices \startbackmatter \stopbackmatter ALL now add bookmarks to the PDF document??? This is VERY strange! I am using: \setupinteraction [state=start,option=bookmark] \setupinteractionscreen [option=bookmark] \placebookmarks [part,chapter,title,section,subsection] [part,chapter,title] Alan This is because I asked for… See the joined discussion. You do not like it? Not at all, and certainly NOT by default. It seems that Hans has fixed this, adding an optional flag. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug in linenote?
Dear list, I have a sample of nested linenotes (containing an user-defined command): \setuppapersize[A8] \newcounter\MyCounter \def\CritApp#1#2{\increment\MyCounter% \startlinenote[Varia:\MyCounter]{#1] #2}#1% \prewordbreak\stoplinenote[Varia:\MyCounter]} \starttext \startlinenumbering \startlinenote[one]{hyphenated}this is a test on \startlinenote[two]{with nested linenote}hyphenation\prewordbreak\stoplinenote[two]\stoplinenote[one] \CritApp{this is a test on \CritApp{hyphenation}{nested linenote: bad line number}}{not hyphenated} \stoplinenumbering \showhyphens{legibility} \stoptext Nesting the above defined \CritApp makes the line number to be 0 and disables hyphenation of the nested text (at least). I think this is a bug in ConTeXt. Could anyone confirm this? 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] bookmarks: frontpart, bodypart, etc. ???
On Thu, 7 Nov 2013 16:51:40 +0100 Hans Hagen pra...@wxs.nl wrote: On 11/7/2013 10:00 AM, Alan BRASLAU wrote: Hello, The bookmark mechanism has changed in a very recent beta and now \startfrontmatter \stopfrontmatter \startbodymatter \stopbodymatter \startappendices \stopappendices \startbackmatter \stopbackmatter ALL now add bookmarks to the PDF document??? This is VERY strange! I am using: \setupinteraction [state=start,option=bookmark] \setupinteractionscreen [option=bookmark] \placebookmarks [part,chapter,title,section,subsection] [part,chapter,title] the next beta will have \setupbookmarks [sectionblock=yes] (default=no) Would it not be cleaner, rather, to have: \placebookmarks [sectionblock,part,chapter,title,section,subsection] [sectionblock,part,chapter,title] instead of a special setupbookmarks option? Just a suggestion. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bookmarks: frontpart, bodypart, etc. ???
On 11/7/2013 9:07 PM, Alan Braslau wrote: On Thu, 7 Nov 2013 16:51:40 +0100 Hans Hagen pra...@wxs.nl wrote: On 11/7/2013 10:00 AM, Alan BRASLAU wrote: Hello, The bookmark mechanism has changed in a very recent beta and now \startfrontmatter \stopfrontmatter \startbodymatter \stopbodymatter \startappendices \stopappendices \startbackmatter \stopbackmatter ALL now add bookmarks to the PDF document??? This is VERY strange! I am using: \setupinteraction [state=start,option=bookmark] \setupinteractionscreen [option=bookmark] \placebookmarks [part,chapter,title,section,subsection] [part,chapter,title] the next beta will have \setupbookmarks [sectionblock=yes] (default=no) Would it not be cleaner, rather, to have: \placebookmarks [sectionblock,part,chapter,title,section,subsection] [sectionblock,part,chapter,title] instead of a special setupbookmarks option? Just a suggestion. sectionblock is not in the category of part, chapter etc (ok, maybe nowadays i would make it zero level but such a change is not on the short term agenda) 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] Index - 'sort as' parameter for secondary and tertiary index entries
Dear All, while there is a sorting parameter for the primary index entry: \index[primary]{primary} I cannot find any method how to define 'sort as' parameter for next two levels: \index{primary+aaa} \index{primary+bbb} I want to have aaa before bbb in my index. Any idea? Thanks, Jan ___ 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] Index - ranges
Dear All, 1) when a range for my subject index entry is specified and the text between doesn't overflow to the next page, even in this case the range of pages 1-1 is created. Is there any option to normalize it to a single page number? \startregister[index][range_01]{primary} Dummy text. \stopregister[index][range_01] 2) when ranges are used heavily, confusing results are produced. In following examples I would expect a single range 1-6: a) 1-3, 3-6 b) 1-6, 2-4 c) 1-6, 5-6 3) when several single index entries are used on consecutive pages, the result 1,2,3,4,5 is produced. Is there any option to create a range from this? Thanks, Jan ___ 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] Index - custom sorting
Dear All, czech sorting has a quite complex logic. How can a default index entries sorting be overridden? Using a macro or somewhere under the hood via a lua code? I am a total noob in this. Btw, as a Java programmer I have it implemented already in Java so I hope it won't be a huge task to convert it into something else... Any hint is appreciated. Jan ___ 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] Index - custom sorting
Am 07.11.2013 um 23:11 schrieb honyk j.tosov...@email.cz: Dear All, czech sorting has a quite complex logic. How can a default index entries sorting be overridden? Using a macro or somewhere under the hood via a lua code? I am a total noob in this. Btw, as a Java programmer I have it implemented already in Java so I hope it won't be a huge task to convert it into something else… When you have \mainlanguage[cz] in your document context should use the czech sorting mechanism, when you english as main language you can use them in the register with \placeregister[index][language=cz]. You can also influence the sorting with the method key for \placeregister: http://www.ntg.nl/pipermail/ntg-context/2010/052950.html 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] Index - entries in section titles
Dear All, what is the correct placing indext entries somewhere in the section title? I use it for both ranges (when covering the whole section) and sometimes also for individual entries: (A) \section{\startregister[index][primary_range_01]{primary}Primary} (B) \section{\index{primary}Primary} This syntax is however: (1) used 'as is' in bookmark labels (\index{primary}Primary instead of Primary) (2) producing page references also from TOC (labels are correct, but the index entry instances are kept together there internally) How can I get rid of it? Thanks, Jan ___ 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] Index - entries in section titles
Am 07.11.2013 um 23:43 schrieb honyk j.tosov...@email.cz: Dear All, what is the correct placing indext entries somewhere in the section title? I use it for both ranges (when covering the whole section) and sometimes also for individual entries: (A) \section{\startregister[index][primary_range_01]{primary}Primary} (B) \section{\index{primary}Primary} (C) \section{Primary}\index{primary} 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] Index - 'sort as' parameter for secondary and tertiary index entries
On 2013-11-07 honyk wrote: while there is a sorting parameter for the primary index entry: \index[primary]{primary} I cannot find any method how to define 'sort as' parameter for next two levels: \index{primary+aaa} \index{primary+bbb} I've tried '+' analogy and it seems to be working! \index[+aaa]{primary+aaa} \index{primary+bbb} \index{brimary+ccc} \index[+bbb]{brimary+bbb} \index[+aaa]{brimary+aaa} It would be nice to mention this possibility in the wiki: http://wiki.contextgarden.net/Registers Jan ___ 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] Index - entries in section titles
On 2013-11-07 Wolfgang Schuster wrote: Am 07.11.2013 um 23:43 schrieb honyk j.tosov...@email.cz: what is the correct placing indext entries somewhere in the section title? I use it for both ranges (when covering the whole section) and sometimes also for individual entries: (A) \section{\startregister[index][primary_range_01]{primary}Primary} (B) \section{\index{primary}Primary} (C) \section{Primary}\index{primary} :-) I usually place it at the beginning to ensure visibility of the title when the page in the index is clicked in a large zoom (which should be preserved) - it should be scrolled accordingly. Is that index entry on the same line as the title or the next one? I found I am not able to test it: Even with the 'focus=standard' when any page in the index is clicked, the zoom is set to FitPage :-( Preserving of zoom seems to be working for TOC only... \setupinteraction[state=start,focus=standard] \starttext \startfrontmatter \completecontent \blank \section{Primary}\index{primary} Dummy text. \stopbodymatter \startbackmatter \completeindex \stopbackmatter \stoptext Jan ___ 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 ___