[NTG-context] [***SPAM***] Re: \startnarrower and ToC
I did not check why it doesn't work. But to add a left margin you can use: \setuplist [margin=3cm] Yes, it’s possible to fix it on this way. But what is the right conversion of 1*left in mm/em? ___ 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] [***SPAM***] Re: \startnarrower and ToC
Yes, it’s possible to fix it on this way. But what is the right conversion of 1*left in mm/em? left, middle and right depend on the font size: left=1.5\emwidth right=1.5\emwidth which means for your example: \setuplist [margin=7.5em] Marco signature.asc Description: Digital signature ___ 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] \startnarrower and ToC
Am 07.02.2013 um 13:22 schrieb Marco Patzer home...@lavabit.com: On 2013–02–07 Markus Finke wrote: \startnarrower doesn’t work for the left margin in lists. What is wrong in my minimal example? I did not check why it doesn't work. But to add a left margin you can use: \setuplist [margin=3cm] Both environments use the same register to indent the content and the list overwrites the narrower value. 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] No number of chapter in TOC
Am 06.02.2013 um 13:22 schrieb H. Özoguz h.oezo...@mmnetz.de: Hi there, after each chapter I begin with a section. So in the table of content every chapter has the same page-number as the section, which comes directly after the chapter-title (so no text is between them). \setuplist[chapter][pagenumber=no] 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] Indentation in TOC
Hello, I am trying to indent my section/subsection etc. progressively. I am using *numbercommand* and added *hspace* before the numbers. But the section title is not moved to the right along with the section number and overlaps with it. I tried adding *loffset=2cm* (since all the options of *\framed* are valid for *setuplist*) also, but doesn't seem to have any effect. Please point out the mistake. Regards, Devendra *MWE* \definehspace[myem][2em] \def\secnum#1{\hspace[myem]#1} \setuplist [section] [numbercommand={\secnum}] \starttext \completecontent[alternative=c] \chapter{A} \section{B} \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 ___
Re: [NTG-context] Indentation in TOC
Am 04.02.2013 um 21:11 schrieb Devendra Ghate devendra.gh...@gmail.com: Hello, I am trying to indent my section/subsection etc. progressively. I am using *numbercommand* and added *hspace* before the numbers. But the section title is not moved to the right along with the section number and overlaps with it. I tried adding *loffset=2cm* (since all the options of *\framed* are valid for *setuplist*) also, but doesn't seem to have any effect. Please point out the mistake. Regards, Devendra *MWE* \definehspace[myem][2em] \def\secnum#1{\hspace[myem]#1} \setuplist [section] [numbercommand={\secnum}] \setuplist[…][margin=2em] 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] Indentation in TOC
On 02/05/2013 01:47 AM, Wolfgang Schuster wrote: Am 04.02.2013 um 21:11 schrieb Devendra Ghate devendra.gh...@gmail.com: Hello, I am trying to indent my section/subsection etc. progressively. I am using *numbercommand* and added *hspace* before the numbers. But the section title is not moved to the right along with the section number and overlaps with it. I tried adding *loffset=2cm* (since all the options of *\framed* are valid for *setuplist*) also, but doesn't seem to have any effect. Please point out the mistake. Regards, Devendra *MWE* \definehspace[myem][2em] \def\secnum#1{\hspace[myem]#1} \setuplist [section] [numbercommand={\secnum}] \setuplist[…][margin=2em] Wolfgang Thank you very much. Devendra ___ 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] Table of Contents Spacing
On 2013–01–29 Troy Henderson wrote: How do I change the vertical spacing between chapter/section list items in the Table of Contents? \setuplist [chapter] [before={\blank[5ex]}] \setuplist [section] [before={\blank[.6ex]}] Marco signature.asc Description: Digital signature ___ 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] Table of Contents Spacing
\setuplist [chapter] [before={\blank[5ex]}] Thank you! Troy ___ 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 module simpleslides' SideToc
Hello PengCZ, This is not exactly what you want, because it took me very long to remember to look at SideToc.pdf. But it is close, and I have tried to put in a lot of comments. Hopefully you can solve it from here? Cheers, and good luck, Sietse % * We use \Topic to set the current topic, and to % record it in the topic list % * \setuptexttexts places the topic list in the left margin % on every page % http://wiki.contextgarden.net/Command/setuptexttexts % (needs improving) % * \setupbackgrounds sets the backgrond color of the left % margin on every page: this highlights the TOC area % http://wiki.contextgarden.net/Command/setupbackgrounds % * the entry typesetting command (called \FancyTopic) typesets % entries inside a \framed block as wide as the margin is. % This allows highlighting the background of the current topic, % and also allows linebreaks etc. % http://wiki.contextgarden.net/Command/framed \setuppapersize[A6,landscape][A6,landscape] \setuplayout [leftmargin=5cm, backspace=6cm, width=6cm, ] % Color for the margin (topic list area) \definecolor[colMyTopics][r=1,g=0.7,b=0.7] % pink % Color for the current topic (in the topic list) % I like white, because it attaches the current topic to the % main area; but perhaps you prefer pale yellow? % \definecolor[colCurrentTopic][r=1,g=1,b=0.7] % pale yellow \definecolor[colCurrentTopic][r=1,g=1,b=1] % white % When \placelist[MyTopics] is called, it calls this \FancyEntry % function to typeset each individual entry. % #1: entry (i.e. topic name) to typeset % \MyMark: section (i.e. topic name) we are currently in (set by % \Topic). \define[3]\FancyEntry { \ifnum\structurelistrealpagenumber=\realpageno\relax SAME \else OTHER \fi PAGE \blank[medium] \doifelse \rawstructurelistfirst \MyMark {\framed[frame=off, align=normal, width=5cm, % same as leftmargin in \setuplayout background=color, backgroundcolor=colCurrentTopic]{% --- current mark's entry \par \color[red]{--- arg (entry): #1}\par \color[red]{--- mark: \MyMark} }} {\framed[frame=off, align=normal]{% --- other entry \par \color[blue]{--- arg (entry): #1}\par \color[blue]{--- mark: \MyMark} }} \blank[medium] } % Show the margin areas, headers, footers, etc. \showframe % Color the margin area. \setupbackgrounds must be called after % \showframe, or \showframe will 'overwrite' \setupbackgrounds. \setupbackgrounds[text][leftmargin][ background=color, backgroundcolor=colMyTopics] \definelist[MyTopics][criterium=all] \def\MyMark{} % \Topic takes one optional argument: #1, the topic name. \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% % let it be known that we are in section #1 (used by \FancyTopic) \def\MyMark{#1}% % let topic #1 appear in the TOC (well, the MyTopics list) \writetolist[MyTopics]{#1}{}% } \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] % On every page, place the TOC in the margin, plzkthx \setuptexttexts[margin][\vbox{\placelist[MyTopics]}][] \starttext \Topic[First] 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 ___
Re: [NTG-context] How to use module simpleslides' SideToc
On 01/08/2013 03:10 PM, Alan BRASLAU wrote: Yes, Many simpleslides styles seem to be broken. Thomas seems to be aware of this but has not gotten to looking into it. (t-slidesvisualcounter.tex is part of the simpleslides module: texmf-modules/tex/context/third/simpleslides) Alan I hope there aren't that many broken styles... Anyway, I'm not teaching this year, so I don't use the module too often, so this slips by me. I looked at the SideToc style, but I can't figure out the problem; something must have changed in the core. So all I can do is give a minimal example for what fails and hope that one of the real experts will have an idea. Most of the clever code in the example is actually Wolfgang's... So here comes: \setuplayout [leftmargin=4cm, backspace=5cm] \define[3]\FancyEntry {\doifelse{#1}{\MyMark}% {\color[red]{#1 = \MyMark}\blank[medium]} {\color[blue]{#1 = \MyMark}\blank[medium]} } \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \def\MyMark{#1}% \writetolist[MyTopics]{#1}{}% } \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setuptexttexts[margin][\vbox{\placelist[MyTopics]}][] \starttext \Topic[First] First Topic \page \Topic[Second] Second Topic \stoptext The problem is that the \doifelse always evaluates to false, even when \MyMark is defined and equal to the topic; I hope the example clarifies this. [tested with latest beta mkiv] All best 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] How to use module simpleslides' SideToc
hi, I compiled the following code, \setuplayout [leftmargin=4cm, backspace=5cm] \define[3]\FancyEntry { \ifnum\structurelistrealpagenumber=\realpageno\relax SAME \else OTHER \fi PAGE \blank[medium] \doifelse \rawstructurelistfirst \MyMark {\color[red] {#1 = \MyMark}} {\color[blue]{#1 = \MyMark}} \blank[medium] } \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \def\MyMark{#1}% \writetolist[MyTopics]{#1}{}% } \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setuptexttexts[margin][\vbox{\placelist[MyTopics]}][] \starttext \Topic[First] First Topic \page \Topic[Second] Second Topic \stoptext but I can not get the right pdf, please check the attachment! context version: 2013.01.08 01:19 LuaTeX, Version beta-0.74.0-2012122510 Thanks! BEST REGARDS PengCZ 2013/1/9 Hans Hagen pra...@wxs.nl On 1/8/2013 11:26 PM, Thomas A. Schmitz wrote: \define[3]\FancyEntry {\doifelse{#1}{\MyMark}% {\color[red]{#1 = \MyMark}\blank[medium]} {\color[blue]{#1 = \MyMark}\blank[medium]} } When you're back in teaching mode I'll tell you how to do it properly, so here's a quick hack: \define[3]\FancyEntry { \ifnum\**structurelistrealpagenumber=\**realpageno\relax SAME \else OTHER \fi PAGE \blank[medium] \doifelse \rawstructurelistfirst \MyMark {\color[red] {#1 = \MyMark}} {\color[blue]{#1 = \MyMark}} \blank[medium] } In your case you compare an unexpandable macro with a regular one so that will always be false. Last year the list macros became more flexible and more properties are available as either unexpandable or expandable macro 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 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/http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __**__** ___ sidetuc.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] something about the placelist
On 24-10-2012 09:53, feng wrote: hi! I am a newer. I am studying the context. I think the context is very good. I had study the latex in past years. I have a question: there is a null string line above the \placelist, I don't want it. who can help me? \framed[background=frame_mp,frame=on,align=middle,width=80pt]{% \blank[-12pt] \placelist [section] [alternative=d, maxwidth=\hsize, width=\hsize, maxwidth=75pt, offset=0pt, criterium=all, align=meddle, style=\tfa] } thank you! ps. I am a chinese, my english is poor. \setuplist[section][before=] - 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] Fwd: Re: something about the placelist
Original Message Subject: Re: [NTG-context] something about the placelist Date: Wed, 24 Oct 2012 10:43:00 +0200 From: Hans Hagen pra...@wxs.nl To: feng fengi...@gmail.com On 24-10-2012 10:23, feng wrote: 在 Wed, 24 Oct 2012 16:03:53 +0800,Hans Hagen pra...@wxs..nl 写道: sorry, there is still a null string line.But I find that if there is a string before the \placelist the null string is disappear. like this: \setuplist[section][before=] \framed[background=frame_mp,frame=on,align=middle,width=80pt]{% add: strut=no to the \framed command (first run with \showstruts and you see what happens) string %%this is the string % \placelist [section] [alternative=d, % command, % none, maxwidth=\hsize, width=\hsize, maxwidth=75pt, before=, after=, offset=91pt, criterium=all,%important align=meddle, style=\tfa] } the output is like: - |string | |1 ass sss 1.| |2 ass sss 1.| |3 ass sss 1.| -- but if no the string the output is like: - | | |1 ass sss 1.| |2 ass sss 1.| |3 ass sss 1.| -- On 24-10-2012 09:53, feng wrote: hi! I am a newer. I am studying the context. I think the context is very good. I had study the latex in past years. I have a question: there is a null string line above the \placelist, I don't want it. who can help me? \framed[background=frame_mp,frame=on,align=middle,width=80pt]{% \blank[-12pt] \placelist [section] [alternative=d, maxwidth=\hsize, width=\hsize, maxwidth=75pt, offset=0pt, criterium=all, align=meddle, style=\tfa] } thank you! ps. I am a chinese, my english is poor. \setuplist[section][before=] - 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 - -- - 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] Fwd: Re: something about the placelist
在 Wed, 24 Oct 2012 16:43:36 +0800,Hans Hagen pra...@wxs.nl 写道: I see. Thank you very much. I think I love the context. It is so good. I think it is better than the latex. Thank you for your job very much. Thanks.!!!(@_@) Original Message Subject: Re: [NTG-context] something about the placelist Date: Wed, 24 Oct 2012 10:43:00 +0200 From: Hans Hagen pra...@wxs.nl To: feng fengi...@gmail.com On 24-10-2012 10:23, feng wrote: 在 Wed, 24 Oct 2012 16:03:53 +0800,Hans Hagen pra...@wxs..nl 写道: sorry, there is still a null string line.But I find that if there is a string before the \placelist the null string is disappear. like this: \setuplist[section][before=] \framed[background=frame_mp,frame=on,align=middle,width=80pt]{% add: strut=no to the \framed command (first run with \showstruts and you see what happens) string %%this is the string % \placelist [section] [alternative=d, % command, % none, maxwidth=\hsize, width=\hsize, maxwidth=75pt, before=, after=, offset=91pt, criterium=all,%important align=meddle, style=\tfa] } the output is like: - |string | |1 ass sss 1.| |2 ass sss 1.| |3 ass sss 1.| -- but if no the string the output is like: - | | |1 ass sss 1.| |2 ass sss 1.| |3 ass sss 1.| -- On 24-10-2012 09:53, feng wrote: hi! I am a newer. I am studying the context. I think the context is very good. I had study the latex in past years. I have a question: there is a null string line above the \placelist, I don't want it. who can help me? \framed[background=frame_mp,frame=on,align=middle,width=80pt]{% \blank[-12pt] \placelist [section] [alternative=d, maxwidth=\hsize, width=\hsize, maxwidth=75pt, offset=0pt, criterium=all, align=meddle, style=\tfa] } thank you! ps. I am a chinese, my english is poor. \setuplist[section][before=] - 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 - -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ ___ 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] combinedlist: different behaviour in mkiv
Hi I have defined a two-level head structure with independent numbering. It works as intended with mkii, but with mkiv, the top-level number is prepended to all second-level heads in the table of contents. With mkii, I get: Part A First 1 One 2 Two ... with mkiv: Part A First A.1 One A.2 Two ... How can I fix this? Kind regards Stefan % Top level head \definehead [AgendaPart] [section] \setuphead [AgendaPart] [ownnumber=yes, number=yes, numbercommand={Part }, style=\bf\tfb] \newcounter\AgendaPartNumber \define [1] \agendapart { \doglobal\increment\AgendaPartNumber \AgendaPart{\Character{\AgendaPartNumber}}{#1} } % Second level head, idependently numbered \definehead [AgendaItem] [subsubsection] \setuphead [AgendaItem] [ownnumber=yes, number=yes, style=\bf] \newcounter\AgendaItemNumber \define [1] \agendaitem { \doglobal\increment\AgendaItemNumber \AgendaItem{\AgendaItemNumber}{#1} } \definelist [AgendaPart] \setuplist [AgendaPart] [width=1.5cm, style=bold, numbercommand={Part }] \definelist [AgendaItem] \setuplist [AgendaItem] [width=1.5cm, ownnumber=yes] \definecombinedlist [toc] [AgendaPart, AgendaItem] \setupcombinedlist [toc] [pagenumber=no] % Test \starttext \placetoc \agendapart{First} \agendaitem{One} \agendaitem{Two} \agendapart{Second} \agendaitem{Three} \agendaitem{Four} \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 ___
Re: [NTG-context] combinedlist: different behaviour in mkiv
Am 21.09.2012 um 11:24 schrieb Philipp Gesang ges...@stud.uni-heidelberg.de: Hi Stefan, ···date: 2012-09-20, Thursday···from: Stefan Rothe··· % Top level head \definehead [AgendaPart] [section] \setuphead [AgendaPart] [ownnumber=yes, number=yes, numbercommand={Part }, style=\bf\tfb] \newcounter\AgendaPartNumber \define [1] \agendapart { \doglobal\increment\AgendaPartNumber \AgendaPart{\Character{\AgendaPartNumber}}{#1} } % Second level head, idependently numbered \definehead [AgendaItem] [subsubsection] \setuphead [AgendaItem] [ownnumber=yes, number=yes, style=\bf] %% Adjust the “sectionsegments” parameter to include only the %% head’s own structure level. (Multiple levels need to be %% separated by cola (“:”)). \definehead [AgendaItem] [subsubsection] [ ownnumber=yes, number=yes, style=\bf, sectionsegments=subsubsection, ] Btw why does your structure go section-subsubsection? Afair these have depth 3 and 5 respectively, so it would look more consistent to use section-subsection (3-4). +1 I wonder also why he uses such a complicated method for his headings when there is a better way. \defineresetset [none][][0] \definehead [agendapart] [section] [sectionresetset=none,sectionsegments=agendapart,style=\bfb,conversion=A,bodypartlabel=part] \definehead [agendaitem] [subsection] [sectionresetset=none,sectionsegments=agendaitem,style=\bf] \setuplist [agendapart] [width=1.5cm,pagenumber=no,style=bold,label=yes] \setuplist [agendaitem] [width=1.5cm,pagenumber=no] \definecombinedlist [agenda] [agendapart,agendaitem] \starttext \placeagenda \agendapart{First} \agendaitem{One} \agendaitem{Two} \agendapart{Second} \agendaitem{Three} \agendaitem{Four} \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] Publicationlist
2012-09-19 Eidenbenz Michael eidenb...@arch.ethz.ch: Hi Michael is there a way to setup the layout of the publicationlist? I would like to add a blank line after every entry. untested: \setuplist [pubs] [after=\blank] 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] Publicationlist
works like a charm! didn't know it is so easy. thanks michael Am 19.09.2012 um 14:27 schrieb Marco Patzer: 2012-09-19 Eidenbenz Michael eidenb...@arch.ethz.ch: Hi Michael is there a way to setup the layout of the publicationlist? I would like to add a blank line after every entry. untested: \setuplist [pubs] [after=\blank] 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 ___ ___ 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] beta
Hi, Le vendredi 10 août 2012, Hans Hagen a écrit : On 10-8-2012 00:31, Mojca Miklavec wrote: On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url=http://www.contextgarden.net/Command/setuplist; sh: http://www.contextgarden.net/Command/setuplist: No such file or directory So what would be the right way? Is there some abstract shortcut to the preferred browser? On unix shells, 'xdg-open' open any file or URL with the appropriate program. All the best. -- Romain Diss romain.d...@yahoo.fr ___ 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] beta
···date: 2012-08-10, Friday···from: Romain Diss··· Hi, Le vendredi 10 août 2012, Hans Hagen a écrit : On 10-8-2012 00:31, Mojca Miklavec wrote: On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url=http://www.contextgarden.net/Command/setuplist; sh: http://www.contextgarden.net/Command/setuplist: No such file or directory So what would be the right way? Is there some abstract shortcut to the preferred browser? On unix shells, 'xdg-open' open any file or URL with the appropriate program. No, I beg you, don’t use xdg-open. It does not respect the environment variables set by the user and is the reason why I have made /usr/bin/firefox into a script that calls my *real* browser. xdg-open is not a standard (yet) and will confuse people. Please, consult https://wiki.archlinux.org/index.php/Default_Applications#xdg-open, especially the section “how it should work”, before you make the choice. Thanks Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpJGY6RknVP8.pgp Description: PGP signature ___ 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] beta
Hi, There is a new feature in mtxrun: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url=http://www.contextgarden.net/Command/setuplist; Actually, one can also use this: mtxrun --gethelp --url=http://www.contextgarden.net/Command/%command%; --command=setuplist So, in scite I do: mtxrun --gethelp --url=http://www.contextgarden.net/Command/%command%; --command=$(CurrentWord) and hitting F1 takes the current word and runs this command. On windows it effective boils down to start the url I have no clue what happens on unix. Ps 1: Isn't it possible to also support /command on the wiki? It looks like the url resolver is case sensitive. Ps 2: one can also run mtxrun --script server --start --auto and then use mtxrun --gethelp --url=http://localhost:31415/mtx-server-ctx-help.lua?command=%command%; --command=$(CurrentWord) but the garden provides more info. 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] beta
On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote: Hi, There is a new feature in mtxrun: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url=http://www.contextgarden.net/Command/setuplist; sh: http://www.contextgarden.net/Command/setuplist: No such file or directory Mojca ___ 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] beta
On 10-8-2012 00:31, Mojca Miklavec wrote: On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote: Hi, There is a new feature in mtxrun: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url=http://www.contextgarden.net/Command/setuplist; sh: http://www.contextgarden.net/Command/setuplist: No such file or directory So what would be the right way? Is there some abstract shortcut to the preferred browser? 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] beta
On Fri, Aug 10, 2012 at 12:35 AM, Hans Hagen wrote: On 10-8-2012 00:31, Mojca Miklavec wrote: On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote: Hi, There is a new feature in mtxrun: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url=http://www.contextgarden.net/Command/setuplist; sh: http://www.contextgarden.net/Command/setuplist: No such file or directory So what would be the right way? Is there some abstract shortcut to the preferred browser? On Mac OS X it is open url/file or open -a SomeApplicationInCaseYouDontWantDefault url/file. Mojca ___ 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] beta
On 10-8-2012 00:39, Mojca Miklavec wrote: On Fri, Aug 10, 2012 at 12:35 AM, Hans Hagen wrote: On 10-8-2012 00:31, Mojca Miklavec wrote: On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote: Hi, There is a new feature in mtxrun: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url=http://www.contextgarden.net/Command/setuplist; sh: http://www.contextgarden.net/Command/setuplist: No such file or directory So what would be the right way? Is there some abstract shortcut to the preferred browser? On Mac OS X it is open url/file or open -a SomeApplicationInCaseYouDontWantDefault url/file. Ah, i remember, so we can adapt os.launch I'll send you a test 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] beta
···date: 2012-08-10, Friday···from: Hans Hagen··· On 10-8-2012 00:31, Mojca Miklavec wrote: On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote: Hi, There is a new feature in mtxrun: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url=http://www.contextgarden.net/Command/setuplist; sh: http://www.contextgarden.net/Command/setuplist: No such file or directory So what would be the right way? Is there some abstract shortcut to the preferred browser? Hi Hans, there’s the environment variable $BROWSER, as in: Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio return os.getenvBROWSER /usr/bin/opera So ``$BROWSER http://www.foo.bar`` launches the browser from a shell. Philipp - 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpx6cPvd7rc3.pgp Description: PGP signature ___ 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] Draft version of document
@Roger: I just realised I called you Robert. Sorry about that, moment of inattention. Hi Hans, Actually, this is something that should be doable with user data weren't it that for floats that's not yet available. So I've added it to the core (will be in next upload) ... Ah, nifty; and fantastically quick, as always. I've not heard of ConTeXt's user data feature before. Where can I find more on that? Is there a list e-mail I should search for? I'm trying to work out how to describe the new feature, so I can add that to the documentation. I think I see two features, but I'm not sure. Can you tell me if the below is correct? New feature 1: previously we could only do \startplacefigure[reference=fig:mill, title={A Mill}] or \startsection[reference=sec:sheep, title={The Sheep}] but now we can do \startplacefigure[reference=fig:mill, title={A Mill}][resource=mill] or \startsection[reference=sec:sheep, title={The Sheep}][mykey=myvalue] Nothing is done with the parameters in the second key=value list, but they are stored as part of the object when the object is written to its figures/sections/whatever list; and there they can be used in constructing the Table of figures/contents/whatever. New feature 2: the command \rawstructurelistuservariable{#1} . This command can be used by custom list entry macros like \mylistentrymacro below: \setuplist[somelist][alternative=command, command=\mylistentrymacro] The command gets a property from the current list entry object, like so: \rawstructurelistuservariable{resource} %-- mill Question: does this work, too, or can we only access values in the *second* key=value list? \rawstructurelistuservariable{reference} %-- fig:mill Cheers, Sietse ___ 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] Draft version of document
Am 08.08.2012 um 17:04 schrieb Sietse Brouwer sbbrou...@gmail.com: I'm trying to work out how to describe the new feature, so I can add that to the documentation. I think I see two features, but I'm not sure. Can you tell me if the below is correct? New feature 1: previously we could only do \startplacefigure[reference=fig:mill, title={A Mill}] or \startsection[reference=sec:sheep, title={The Sheep}] but now we can do \startplacefigure[reference=fig:mill, title={A Mill}][resource=mill] or \startsection[reference=sec:sheep, title={The Sheep}][mykey=myvalue] Nothing is done with the parameters in the second key=value list, but they are stored as part of the object when the object is written to its figures/sections/whatever list; and there they can be used in constructing the Table of figures/contents/whatever. Yes, the user variables are only stored in the utility file and can be used when you print the list entries. New feature 2: the command \rawstructurelistuservariable{#1} . This command can be used by custom list entry macros like \mylistentrymacro below: \setuplist[somelist][alternative=command, command=\mylistentrymacro] The command gets a property from the current list entry object, like so: \rawstructurelistuservariable{resource} %-- mill Question: does this work, too, or can we only access values in the *second* key=value list? \rawstructurelistuservariable{reference} %-- fig:mill The arguments you give with the first argument are processed by context before they are written to the utility file and only three values can be used when you create your own list layout, the user variables on the other side are written to the utility file without any modification and whatever you write here can be used in the list. 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] Draft version of document
On 7-8-2012 14:51, Sietse Brouwer wrote: Hi Robert, Debugged and all, here you go. Cheers, Sietse \useexternalfigure[img:fig:cow][cow.pdf] \useexternalfigure[img:fig:mill][mill.png] \starttext Actually, this is something that should be doable with user data weren't it that for floats that's not yet available. So I've added it to the core (will be in next upload) ... % macros=mkvi \unprotect % let's pick up two arguments \unexpanded\def\strc_floats_start_place#tag% {\flushnotes \page_otr_command_flush_side_floats % here ! \strc_floats_begin_group \strc_floats_set_current_tag{#tag}% \dodoubleempty\strc_floats_start_place_indeed} % and store the user data for a while \def\strc_floats_start_place_indeed[#settings][#userdata]% {\strc_floats_reset_variables \edef\savedfloatlocation{\floatcaptionparameter\c!location}% \setupcurrentfloatcaption[\c!location=,\c!reference=,\c!title=,\c!marking=,\c!list=,\c!bookmark=,#settings]% \def\savedfloatuserdata{#2}% \edef\floatlocation{\floatcaptionparameter\c!location}% \setupcurrentfloatcaption[\c!location=\savedfloatlocation]% \ifx\floatlocation\empty \edef\floatlocation{\floatparameter\c!default}% \fi \doifinsetelse\v!split\floatlocation\strc_floats_place_next_box_split\strc_floats_place_next_box_normal \bgroup \ignorespaces} % here we need to expand it one level (else detokenize will spoil it) \def\strc_floats_place_packaged_boxes {\expandafter\strc_floats_place_packaged_boxes_indeed\expandafter{\savedfloatuserdata}} \def\strc_floats_place_packaged_boxes_indeed#userdata% {\bgroup \ifconditional\usesamefloatnumber \globallet\currentfloatnumber \previousfloatnumber \globallet\currentfloatattribute \empty \globallet\currentfloatsynchronize\relax \else \ifnofloatnumber \else \ifnofloatcaption \else \strc_counters_increment{\strc_counters_the\currentfloat}% \fi \fi \strc_counters_register_component {float}% \setupcurrentfloatcaption \floatcaptionparameter \detokenizedfloatcaptionparameter \relax \relax \relax [\c!name=\currentfloat,% \s!counter=\strc_counters_the\currentfloat,% \s!hascaption=\ifnofloatcaption \v!no\else\v!yes\fi,% \s!hasnumber=\ifnofloatnumber \v!no\else\v!yes\fi,% \s!hastitle=\ifemptyfloatcaption\v!no\else\v!yes\fi]% [#userdata]% \globallet\previousfloatnumber \m_strc_counters_last_registered_index \globallet\currentfloatnumber \m_strc_counters_last_registered_index \globallet\currentfloatattribute \m_strc_counters_last_registered_attribute \globallet\currentfloatsynchronize\m_strc_counters_last_registered_synchronize \fi % \global\setfalse\usesamefloatnumber % one shot % check float box \strc_floats_set_natural_dimensions\nextbox \global\setbox\floatbox\vbox{\floatparameter\c!command{\box\nextbox}}% \strc_floats_set_natural_dimensions\floatbox \ifdim\htdp\floatbox=\zeropoint \showmessage\m!floatblocks{11}\empty \global\setbox\floatbox\vbox {\dostarttagged\t!floatcontent\empty \strc_floats_place_empty_box \dostoptagged}% \fi % deal with lack of caption \global\setbox\floatbox\vbox \floatcaptionattribute {\doifelsemainfloatbody\currentfloatsynchronize\donothing \unvbox\floatbox \ifnofloatcaption \vss \fi}% gets rid of the depth (unless tabulate) \egroup % place the float \strc_floats_set_box \strc_floats_get_box \global\insidefloatfalse} % we need a raw untagged and expandable fetch: \def\rawstructurelistuservariable#name% {\ctxcommand{listuserdata(\currentlist,\currentlistindex,#name)}} \protect % so, after some 5 lines patching we can do: \starttext \startplacefigure[reference=fig:mill,title={A Mill}][resource=mill] \externalfigure[mill] \stopplacefigure \startplacefigure[reference=fig:cow,title={A Cow}][resource=cow] \externalfigure[cow] \stopplacefigure \page \unexpanded\def\FigureListEntry#1#2#3% {\dontleavehmode \tbox{\hbox to 2cm{\externalfigure[\rawstructurelistuservariable{resource}][height=1cm]\hss}}% \hbox to 2em{#1\hss}% #2\hfill \hbox to 2em{\hss#3}% \blank} \setuplist[figure][alternative=command,command=\FigureListEntry] \placelist[figure] \stoptext Of course, the 'command' is not that nice looking but that's for others to improve. (In a similar fashion one can associate a resource or whatever to a section head and use it in a toc.) 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
[NTG-context] alternative command for lists
Hi all, At the moment I am busy to build a custom TOC. I stumble overt the fact, that ConTeXt seems to forget all parameters set in \setuplist once you issue alternative=command, command=… Could anyone of you enlighten me whether I miss something? Kind regards Willi P.S. Please refer to the attached minimal example. test-listcommand.tex Description: Binary data ___ 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] alternative command for lists
On Fri, Aug 3, 2012 at 12:00 PM, Willi Egger cont...@boede.nl wrote: Hi all, At the moment I am busy to build a custom TOC. I stumble overt the fact, that ConTeXt seems to forget all parameters set in \setuplist once you issue alternative=command, command=… Could anyone of you enlighten me whether I miss something? Kind regards Willi P.S. Please refer to the attached minimal example. Hm I think I don't understand... if you issue your command, then it means that you will provide all the other parameters, so those ones specified in \setuplist are ignored. -- luigi ___ 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] alternative command for lists
On 3-8-2012 12:00, Willi Egger wrote: Hi all, At the moment I am busy to build a custom TOC. I stumble overt the fact, that ConTeXt seems to forget all parameters set in \setuplist once you issue alternative=command, command=… Could anyone of you enlighten me whether I miss something? Kind regards Willi P.S. Please refer to the attached minimal example. indeed command is pretty basic ... btw, this is the future: % there will be some helpers \unprotect \def\listboxproperties {\strc_lists_get_reference_attribute} \def\listrenderingsetup {\the\t_lists_every_renderingtext} \def\listrenderingsynchronize{\the\t_lists_every_renderingsynchronize} \protect % now you can say: \definelistalternative [willi:1] [renderingsetup=willi:1] \startsetups[willi:1] \listparameter{before} \vbox \listboxproperties{all} { \forgetall \dontleavehmode \listrenderingsynchronize \bgroup \useliststyleandcolor{pagestyle}{pagecolor} \currentlistentrypagenumber \egroup \hskip3em \bgroup \useliststyleandcolor{numberstyle}{numbercolor} \currentlistsymbol \egroup .\space \bgroup \useliststyleandcolor{textstyle}{textcolor} \currentlistentrytitle \egroup \par } \par \listparameter{after} \stopsetups \setuplist [section] [before={\blank[line]}, after=, style=\bf, numberstyle=\bf, textstyle=\bs, prefix=no, alternative=willi:1] so, you *do* have access to \listparameter as well as \listrenderingparameter the main tricky thing to keep in mind is the interation related properties and some synchronization - 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] alternative=d gives attr
Hi, \starttext \subject{Contents} \setuplist[section][alternative=d] \placecontent \section{One} \section{Two} \stoptext while the minimal example above works nicely, my more complex project adds a attr in front off the section number (ie. a): attr a) Test one 47 attr b) Test two 51 Any idea where this attr2 comes from, and how to get rid of it?? Second question: how can I add a separator, like this: a) Test one 47 – b) Test two 51 Thanks, Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] alternative=d gives attr
On Mon, Jul 30, 2012 at 12:32 PM, Steffen Wolfrum cont...@st.estfiles.dewrote: Hi, \starttext \subject{Contents} \setuplist[section][alternative=d] \placecontent \section{One} \section{Two} \stoptext while the minimal example above works nicely, my more complex project adds a attr in front off the section number (ie. a): attr a) Test one 47 attr b) Test two 51 Any idea where this attr2 comes from, and how to get rid of it?? With latest mkiv I see this: Contents 1 One 1 2 Two 1 1 One 2 Two -- luigi ___ 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] alternative=d gives attr
On 2012-07-30 Steffen Wolfrum cont...@st.estfiles.de wrote: Hi Steffen, Any idea where this attr2 comes from, and how to get rid of it?? Sorry, no clue. Second question: how can I add a separator, like this: a) Test one 47– b) Test two 51 \setuplist [section] [alternative=d, textcommand=\SectionCommand] \define[1]\SectionCommand{#1 --} 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] alternative=d gives attr
Am 30.07.2012 um 12:46 schrieb luigi scarso: On Mon, Jul 30, 2012 at 12:32 PM, Steffen Wolfrum cont...@st.estfiles.de wrote: Hi, \starttext \subject{Contents} \setuplist[section][alternative=d] \placecontent \section{One} \section{Two} \stoptext while the minimal example above works nicely, my more complex project adds a attr in front off the section number (ie. a): attr a) Test one 47 attr b) Test two 51 Any idea where this attr2 comes from, and how to get rid of it?? With latest mkiv I see this: Contents 1 One 1 2 Two 1 1 One 2 Two me too. only my real project gives instead: attr a) Test one 47 attr b) Test two 51 ... and none of my style/environment files contain the phrase attr!! Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] alternative=d gives attr
Am 30.07.2012 um 12:51 schrieb Steffen Wolfrum cont...@st.estfiles.de: Am 30.07.2012 um 12:46 schrieb luigi scarso: On Mon, Jul 30, 2012 at 12:32 PM, Steffen Wolfrum cont...@st.estfiles.de wrote: Hi, \starttext \subject{Contents} \setuplist[section][alternative=d] \placecontent \section{One} \section{Two} \stoptext while the minimal example above works nicely, my more complex project adds a attr in front off the section number (ie. a): attr a) Test one 47 attr b) Test two 51 Any idea where this attr2 comes from, and how to get rid of it?? With latest mkiv I see this: Contents 1 One 1 2 Two 1 1 One 2 Two me too. only my real project gives instead: attr a) Test one 47 attr b) Test two 51 ... and none of my style/environment files contain the phrase attr!! It comes from the lists code which contain something like “\hbox attr …” but since “attr” is a valid parameter for a box like “stretch” it shouldn’t appear in the output. 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] alternative=d gives attr
Am 30.07.2012 um 12:47 schrieb Marco Patzer: On 2012-07-30 Steffen Wolfrum cont...@st.estfiles.de wrote: Hi Steffen, Any idea where this attr2 comes from, and how to get rid of it?? Sorry, no clue. Second question: how can I add a separator, like this: a) Test one 47 – b) Test two 51 \setuplist [section] [alternative=d, textcommand=\SectionCommand] \define[1]\SectionCommand{#1 --} sorry, but this results in: 1 One – 1 2 Two – 1 what I am looking for is this: 1 One 1 – 2 Two 1 ie. a seperator between consecutive entries Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Broken for a while now...
I've noticed two things that seem to be broken in the betas, and they've been broken for a while now. \resetpagenumber \setuppagenumber[number=1] sets the page number to zero rather than 1. Also, the width= setting in \setuplist doesn't work anymore, either. I apologise if I sound like I'm whining. I just wanted to bring it to your attention. --DB ___ 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] Broken for a while now...
Am 17.07.2012 um 05:04 schrieb DB: I've noticed two things that seem to be broken in the betas, and they've been broken for a while now. \resetpagenumber \setuppagenumber[number=1] Put \resetpagenumber after \setuppagenumber or use \setcounter[userpage][1] sets the page number to zero rather than 1. Also, the width= setting in \setuplist doesn't work anymore, either. Do you have a example because this works: \setuplist[section][width=4cm] \starttext \completecontent \dorecurse{4} {\chapter{Chapter #1} \dorecurse{6}{\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 ___
[NTG-context] Table of Contents Section Numbering
Dear all, I'm quite new to ConTeXt and I'm just trying to set up a template for my first project. I'm using MkIV and the ConTeXt Standalone nightlies. I've encountered the problem that I was not able to create a table of contents (neither \placelist,\placecontents, with setuplist or without worked). I do not get any error, but there is also no list generated. I think, I tried every hint I found on this list. At that point I thought it might be a problem with the version I'm using and upgraded to the latest beta. However the problem remains. I'm using the project features, frontmater/backmatter and custom headers, but also with everything turned off the placelist does not work? Does anybody know what the problem could be? Another problem, which occured only with the latest nightlies, is that Chapters, Sections and Subsesctions all apparently share the same counter and simply count up from 1, so the first section has number 2 instead of 1.1 and so on. Is this a temporary bug or did something change that needs specific setup? Thanks in advance! Malte ___ 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] Table of Contents Section Numbering
2012/7/10 Malte Harder m...@malteharder.de: Dear all, I'm quite new to ConTeXt and I'm just trying to set up a template for my first project. I'm using MkIV and the ConTeXt Standalone nightlies. I've encountered the problem that I was not able to create a table of contents (neither \placelist,\placecontents, with setuplist or without worked). I do not get any error, but there is also no list generated. I think, I tried every hint I found on this list. It’s a bug in the current beta (or the syntax changed, I don’t think so...) Wait for the next one. Greetlings, Hraban ___ 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] Problems with \completecontent
Am 01.07.2012 um 00:08 schrieb Marcin Borkowski: Hi, I'd like to make the distance between the chapter number and the title (and between the title and pagenumber with alternative=a) smaller. How to do that? [distance=0.5em] didn't work. Also, I'd like to have the pagenumbers slanted; I tried [pagestyle=slanted], but it didn't work either. Any ideas? \setuplist[chapter][alternative=a,width=1em,pagestyle=slanted] \starttext \completecontent \chapter{Chapter} \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 ___
[NTG-context] Lists and alternative=command
I'd love help with this: I have list that uses alternative=command, and it stopped working when I switched from last year's TeXLive context to a recent beta. I've minimized the problem to this example: \definelist [MyList] \define[3]\MyListEntry{:#1:#2:#3:} \setuplist [MyList] [alternative=command,command=\MyListEntry] \starttext \writetolist[MyList]{First}{Second} \placelist[MyList] \stoptext It generates the following error three times, once per argument in \MyListEntry, I suppose. ConTeXt ver: 2012.05.14 16:00 MKIV fmt: 2012.5.16 int: english/english ... ! Argument of \MyListEntry has an extra }. system tex error on line 11 in file foo1789.tex: Argument of ... 1 \definelist [MyList] 2 \define[3]\MyListEntry{:#1:#2:#3:} 3 \setuplist [MyList] [alternative=command,command=\MyListEntry] 4 \starttext 5 \writetolist[MyList]{First}{Second} 6 \placelist[MyList] 7 \stoptext inserted text \par to be read again } \12:79:command ...ernativeparameter \c!command } \ifx \p_command \empty [\c... \strc_lists_apply_renderingsetup ...nderingsetup } \relax \the \t_lists_every... \strclistsentryprocess ... \fi \fi \fi \endcsname \dostoptagged \listextrapa... l.11 {} ... l.7 \stoptext Thanks, Michael This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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] [***SPAM***] Custom TOC problem
Hi, this is the first time I am writing here so let me just say a big THANK YOU for all the awesome work everyone is doing. Now, to the point. I have been trying to customize table of contents with my own commands, yet I get an error that might be from within ConTeXt. The cutomary minimal example follows: \define[3]\M{#3 some #2 magic #1} \setuplist[section][alternative=command,command=\M] \starttext \section{A} \completecontent \stoptext and the error from the log: ConTeXt ver: 2012.03.30 16:16 MKIV fmt: 2012.4.2 int: english/english ! Argument of \M has an extra }. Best regards Michał Goliński ___ 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] Custom TOC problem
Hi Michał, Am 02.04.2012 um 11:57 schrieb Michał Goliński: Hi, this is the first time I am writing here so let me just say a big THANK YOU for all the awesome work everyone is doing. Now, to the point. I have been trying to customize table of contents with my own commands, yet I get an error that might be from within ConTeXt. The cutomary minimal example follows: \define[3]\M{#3 some #2 magic #1} \setuplist[section][alternative=command,command=\M] \starttext \section{A} \completecontent \stoptext and the error from the log: ConTeXt ver: 2012.03.30 16:16 MKIV fmt: 2012.4.2 int: english/english ! Argument of \M has an extra }. Best regards Michał Goliński I use this: \unexpanded\def\M#1#2#3{#3 some #2 magic #1} \setuplist[section][alternative=command,command=\M] \starttext \section{A} \completecontent \stoptext Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuphead and \startchapter request
Am 19.03.2012 um 16:16 schrieb Alan BRASLAU: Wolfgang, Thank you for the suggestions. However, I have tried many such, things… Is this what you want? \setuphead[title][incrementnumber=list] \setuplist[title][width=2em] % default value for chapter entry \setuphead[chapter][insidesection=\texsetup{chapter:list}] \startsetups[chapter:list] \doif{\structureuservariable{list}}{yes}{\placelist[section]} \stopsetups \setupinteraction[state=start] \placebookmarks[chapter,title] \starttext \startfrontmatter \starttitle[saveinlist=no,title=Content] \placelist[chapter,title] \stoptitle \stopfrontmatter \startbodymatter \starttitle[title=This is a \tex{title}] \input knuth \stoptitle \startchapter[title=This is a \tex{chapter}][list=yes] \startsection[title=Tufte] \input tufte \stopsection \startsection[title=Ward] \input ward \stopsection \stopchapter \startchapter[title=This is another \tex{chapter}] \startsection[title=Knuth] \input knuth \stopsection \startsection[title=Zapf] \input zapf \stopsection \stopchapter \stopbodymatter \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 ___
[NTG-context] Bug in \setuplist
Hi Guru's While typesetting an old book (original is from 1853) I need to tweak the table of contents. It looks as follows: CHAPTER II. BEES CAPABLE OF DOMESTICATION. Astonishment of persons at their tameness, 25. Bees intended for the comfort of man. Properties fitting them for domestication. Bees never attack when filled with honey, 26. I have attached a minimal example which works in Context version 2011.07.19 but not in 2012.01.25 nor in todays beta. Compilation stops with an error complaining that the \MycommandA has an extra }. Further there is the question how to get roman numerals when using the \Mycommand. - I realize, that all optional keys are ignored at the moment that the alternative=command is used. Kind regards Willi test-placelist.pdf Description: Adobe PDF document test-placelist.tex Description: Binary data ___ 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 \setuplist
Am 15.03.2012 um 11:25 schrieb Willi Egger: Hi Guru's While typesetting an old book (original is from 1853) I need to tweak the table of contents. It looks as follows: CHAPTER II. BEES CAPABLE OF DOMESTICATION. Astonishment of persons at their tameness, 25. Bees intended for the comfort of man. Properties fitting them for domestication. Bees never attack when filled with honey, 26. I have attached a minimal example which works in Context version 2011.07.19 but not in 2012.01.25 nor in todays beta. Compilation stops with an error complaining that the \MycommandA has an extra }. You have to replace \define[3]\…{…} with \unexpanded\def\…#1#2#3{…}. Further there is the question how to get roman numerals when using the \Mycommand. - I realize, that all optional keys are ignored at the moment that the alternative=command is used. You can use \convertnumber but which numbers are wrong when you use your own command? 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] Bug in \setuplist
Hi Wolfgang, thank you very much for solving my problem! -- Indeed this works well. What I need to do is to convert the chapter number into a roman number. CHAPTER XIV. BEES CAPABLE OF DOMESTICATION. Astonishment of persons at their tameness, 25. Bees intended for the comfort of man. Properties fitting them for domestication. Bees never attack when filled with honey, 26. As you can see there are only chapter numbers given. All other entries in the TOC are not even headings in the text (!). So I will have to set these texts up with \writetolist. The texts in the TOC never match any text and are only indications on the subject dealt with on the given page. -- I seems that this was common in those days, I prepared earlier another book written in Dutch showing a similar setup. Thank you for your kind help Willi On 15 Mar 2012, at 13:59, Wolfgang Schuster wrote: \unexpanded\def\…#1#2#3{…} ___ 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 \setuplist
Am 15.03.2012 um 17:21 schrieb Willi Egger: Hi Wolfgang, thank you very much for solving my problem! -- Indeed this works well. What I need to do is to convert the chapter number into a roman number. CHAPTER XIV. BEES CAPABLE OF DOMESTICATION. Astonishment of persons at their tameness, 25. Bees intended for the comfort of man. Properties fitting them for domestication. Bees never attack when filled with honey, 26. …. You get the same number format as you use for the chapters in the text, when I change the format of the number to roman numerals I get them also in the TOC. \definestructureconversionset[willi][][R] \setuphead[chapter][sectionconversionset=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 ___
Re: [NTG-context] Bug in \setuplist
Hi, replying to my self: I was not aware of this macro \convert{new_form}{number_to_be_converted} So in the meantime the commands which give the correct result become: \unexpanded\def\Mychaptercommand#1#2#3{\blank CHAPTER~\convertnumber{R}{#1}.\blank{#2}.\hskip0.25\bodyfontsize} \unexpanded\def\Mysectioncommand#1#2#3{#2, \hskip0.5\bodyfontsize #3.\hskip0.25\bodyfontsize} used in \setuplist [chapter] [prefix=no, sectionnumber=no, headnumber=no, alternative=command, command=\Mychaptercommand] \setuplist [section] [prefix=no, sectionnumber=no, headnumber=no, alternative=command, command=\Mysectioncommand] Again thank you Wolfgang! Willi On 15 Mar 2012, at 17:21, Willi Egger wrote: Hi Wolfgang, thank you very much for solving my problem! -- Indeed this works well. What I need to do is to convert the chapter number into a roman number. CHAPTER XIV. BEES CAPABLE OF DOMESTICATION. Astonishment of persons at their tameness, 25. Bees intended for the comfort of man. Properties fitting them for domestication. Bees never attack when filled with honey, 26. As you can see there are only chapter numbers given. All other entries in the TOC are not even headings in the text (!). So I will have to set these texts up with \writetolist. The texts in the TOC never match any text and are only indications on the subject dealt with on the given page. -- I seems that this was common in those days, I prepared earlier another book written in Dutch showing a similar setup. Thank you for your kind help Willi On 15 Mar 2012, at 13:59, Wolfgang Schuster wrote: \unexpanded\def\…#1#2#3{…} ___ 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] Bug in \setuplist
Hi Wolfgang, you are of course right. - When testing I switched to a test-file, where I did not set the romannumerals conversion in \setuphead. - Sorry ;-( Is the use of the option-key in \setuphead[chapter][conversion=Romannumerals] depreciated? Willi On 15 Mar 2012, at 17:33, Wolfgang Schuster wrote: Am 15.03.2012 um 17:21 schrieb Willi Egger: Hi Wolfgang, thank you very much for solving my problem! -- Indeed this works well. What I need to do is to convert the chapter number into a roman number. CHAPTER XIV. BEES CAPABLE OF DOMESTICATION. Astonishment of persons at their tameness, 25. Bees intended for the comfort of man. Properties fitting them for domestication. Bees never attack when filled with honey, 26. …. You get the same number format as you use for the chapters in the text, when I change the format of the number to roman numerals I get them also in the TOC. \definestructureconversionset[willi][][R] \setuphead[chapter][sectionconversionset=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] Bug in \setuplist
Am 15.03.2012 um 17:45 schrieb Willi Egger: Hi Wolfgang, you are of course right. - When testing I switched to a test-file, where I did not set the romannumerals conversion in \setuphead. - Sorry ;-( Is the use of the option-key in \setuphead[chapter][conversion=Romannumerals] depreciated? It’s available for backwards compatibility but not recommended, with \definestrcutureconversionset you have also a nice way to set different conversion for each section block. @Hans: Is there a reason why \setuphead use “conversion” and not “sectionconversion”? 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] is there a reason not to fix this bug?
Dear community, Wolfgang kindly suggested this fix (that works also with beta from today): strc-lst.mkvi: \def\strc_lists_place_indeed#tag#list#settings% {\begingroup \edef\currentlist{#tag}% \setupcurrentlist[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag}}% \doplacestructurelist % maybe inline {#list}% {\listparameter\c!criterium}% {\listparameter\c!number}% {\listparameter\c!extras}% {\listparameter\c!order}% % \stoplistreferences + \par \endgroup \strc_lists_set_mode} to fix the following bug with beta (first item on content list is indented, but the second isn't): \setuplist[chapter][alternative=d,margin=2em] \starttext \completecontent \part{Part} \chapter{Chapter} a \part{Part} \chapter{Chapter} b \stoptext I'm probably missing something, but this was reported two betas ago and I reported this again on the previous beta. I don't know whether this bug might not be fixed due to other reasons or it was simply forgotten. Many thanks for your awesome 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 ___
[NTG-context] confirmed bug with \setuplist[alternative=d, margin=2em]
Hello Hans, the following code shows a bug with latest beta (first item on content list is indented, but the second isn't): \setuplist[chapter][alternative=d,margin=2em] \starttext \completecontent \part{Part} \chapter{Chapter} a \part{Part} \chapter{Chapter} b \stoptext Wolfgang kindly suggested this fix (that works also with latest beta): strc-lst.mkvi: \def\strc_lists_place_indeed#tag#list#settings% {\begingroup \edef\currentlist{#tag}% \setupcurrentlist[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag}}% \doplacestructurelist % maybe inline {#list}% {\listparameter\c!criterium}% {\listparameter\c!number}% {\listparameter\c!extras}% {\listparameter\c!order}% % \stoplistreferences + \par \endgroup \strc_lists_set_mode} I wonder whether it could be included in latest beta. 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] TOC: alternative=c not working?
On 5-3-2012 21:30, Wolfgang Schuster wrote: Am 05.03.2012 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, the following sample doesn't give the dotted style (#.# Name page) of the TOC - dots are missing: t-TOC.mkiv \setupcombinedlist[content][alternative=c] \starttext \completecontent \page \section{Sec} \subsection{SSec} \subsubsection{SSSec} \input knuth \stoptext My fault or something is broken or a new approach? Use \setuplist[section,…][alternative=c]. in the latest beta the alternative option works but not other settings (like width) as they are rather list specific 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] TOC: alternative=c not working?
Am 05.03.2012 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, the following sample doesn't give the dotted style (#.# Name page) of the TOC - dots are missing: t-TOC.mkiv \setupcombinedlist[content][alternative=c] \starttext \completecontent \page \section{Sec} \subsection{SSec} \subsubsection{SSSec} \input knuth \stoptext My fault or something is broken or a new approach? Use \setuplist[section,…][alternative=c]. 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] TOC: alternative=c not working?
... That is! Thank you. Lukas On Mon, 05 Mar 2012 21:30:57 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2012 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, the following sample doesn't give the dotted style (#.# Name page) of the TOC - dots are missing: t-TOC.mkiv \setupcombinedlist[content][alternative=c] \starttext \completecontent \page \section{Sec} \subsection{SSec} \subsubsection{SSSec} \input knuth \stoptext My fault or something is broken or a new approach? Use \setuplist[section,…][alternative=c]. Wolfgang -- 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 244 062 238 Fax: +420 244 461 038 ___ 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 with \setuplist[alternative=d,margin=2em]?
On 02/26/2012 09:45 PM, Wolfgang Schuster wrote: Am 26.02.2012 um 16:32 schrieb Pablo Rodríguez: Hi there, \setuplist[alternative=d,margin=2em] is shown right on the first item from the sample below, but not on the last one: [] This happens since previous beta and I guess it might be a bug. This fix should help. strc-lst.mkvi: \def\strc_lists_place_indeed#tag#list#settings% {\begingroup \edef\currentlist{#tag}% \setupcurrentlist[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag}}% \doplacestructurelist % maybe inline {#list}% {\listparameter\c!criterium}% {\listparameter\c!number}% {\listparameter\c!extras}% {\listparameter\c!order}% % \stoplistreferences + \par \endgroup \strc_lists_set_mode} Many thanks, Wolfgang. It works fine now. 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] bug with \setuplist[alternative=d,margin=2em]?
Hi there, \setuplist[alternative=d,margin=2em] is shown right on the first item from the sample below, but not on the last one: \setuplist[part][alternative=b] \setuplist[chapter][alternative=d,margin=2em] \starttext \completecontent \part{Part} \chapter{Chapter} a \part{Part} \chapter{Chapter} b \stoptext This happens since previous beta and I guess it might be 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug with \setuplist[alternative=d,margin=2em]?
Am 26.02.2012 um 16:32 schrieb Pablo Rodríguez: Hi there, \setuplist[alternative=d,margin=2em] is shown right on the first item from the sample below, but not on the last one: \setuplist[part][alternative=b] \setuplist[chapter][alternative=d,margin=2em] \starttext \completecontent \part{Part} \chapter{Chapter} a \part{Part} \chapter{Chapter} b \stoptext This happens since previous beta and I guess it might be a bug. This fix should help. strc-lst.mkvi: \def\strc_lists_place_indeed#tag#list#settings% {\begingroup \edef\currentlist{#tag}% \setupcurrentlist[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag}}% \doplacestructurelist % maybe inline {#list}% {\listparameter\c!criterium}% {\listparameter\c!number}% {\listparameter\c!extras}% {\listparameter\c!order}% % \stoplistreferences + \par \endgroup \strc_lists_set_mode} 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] \setuplist[alternative=g] bug with interactive document
Am 19.02.2012 um 23:00 schrieb Pablo Rodríguez: Hi Wolfgang, I have a with \setuplist[alternative=g] in an interactive document. Here you have the minimal sample: \setupinteraction[state=start] \setupcombinedlist[content][interaction=all] \setuplist[part][alternative=g] \setuplist[chapter][alternative=d] \starttext \completecontent \part{part} \chapter{chapter} \part{part} \stoptext The second \part should start a new line. I now that you told me that I was misusing “alternative=g”, because it was meant for interactive documents (but this is exactly what I have). Sorry, but since I got no reply, I'm still wondering whether this is a bug or an illegitimate use of “alternative=g”. Would you be so kind to explain what is wrong here. The alternative d put’s all entries in a single line and this works perfect when you have a parent with alternative a–c. The alternatives e–g have also this requirement but I guess they aren’t meant to be used in combination with other alternatives. 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] \setuplist[alternative=g] bug with interactive document
On 20-2-2012 10:58, Wolfgang Schuster wrote: The alternative d put’s all entries in a single line and this works perfect when you have a parent with alternative a–c. The alternatives e–g have also this requirement but I guess they aren’t meant to be used in combination with other alternatives. e-g are mostly meant for screen documents and for instance have framed content (for menus etc) and such lists are normally not nested in a-c one can do things like pagenumber=no to simplify a list 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] \setuplist[alternative=g] bug with interactive document
On 02/20/2012 12:56 PM, Hans Hagen wrote: On 20-2-2012 10:58, Wolfgang Schuster wrote: The alternative d put’s all entries in a single line and this works perfect when you have a parent with alternative a–c. The alternatives e–g have also this requirement but I guess they aren’t meant to be used in combination with other alternatives. e-g are mostly meant for screen documents and for instance have framed content (for menus etc) and such lists are normally not nested in a-c one can do things like pagenumber=no to simplify a list. Many thanks, Wolfgang and Hans, for your replies. 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] \setuplist[alternative=d, margin=2em] not working on latest beta
Hi Hans, in the following sample, the first chapter has the correct margin on the content list, but the second one doesn't have any margin. \setuplist[part][alternative=b] \setuplist[chapter][alternative=d,margin=2em] \starttext \completecontent \part{Part} \chapter{Chapter} a \part{Part} \chapter{Chapter} b \stoptext I'm afraid this might be a bug introduced in latest beta. 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 ___
[NTG-context] \setuplist[alternative=g] bug with interactive document
Hi Wolfgang, I have a with \setuplist[alternative=g] in an interactive document. Here you have the minimal sample: \setupinteraction[state=start] \setupcombinedlist[content][interaction=all] \setuplist[part][alternative=g] \setuplist[chapter][alternative=d] \starttext \completecontent \part{part} \chapter{chapter} \part{part} \stoptext The second \part should start a new line. I now that you told me that I was misusing “alternative=g”, because it was meant for interactive documents (but this is exactly what I have). Sorry, but since I got no reply, I'm still wondering whether this is a bug or an illegitimate use of “alternative=g”. Would you be so kind to explain what is wrong here. 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] pack_black_rule_pickup ?
Am 18.02.2012 um 20:04 schrieb luigi scarso: I think a separate key for the command is better because this \setupnote[footnote][rule=\MyRule] can also be \setupnote[…][rule={on,right,\MyRule}] which is ugly and two step mechanism like \setuplist[…][alternative=command,command=\MyList] are better but that’s only my opinion. 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] pack_black_rule_pickup ?
On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 18.02.2012 um 20:04 schrieb luigi scarso: I think a separate key for the command is better because this \setupnote[footnote][rule=\MyRule] can also be \setupnote[…][rule={on,right,\MyRule}] which is ugly and two step mechanism like \setuplist[…][alternative=command,command=\MyList] are better but that’s only my opinion. it's ok for me -- it was a quick fix for Steffen -- luigi ___ 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] pack_black_rule_pickup ?
Am 18.02.2012 um 20:19 schrieb luigi scarso: On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 18.02.2012 um 20:04 schrieb luigi scarso: I think a separate key for the command is better because this \setupnote[footnote][rule=\MyRule] can also be \setupnote[…][rule={on,right,\MyRule}] which is ugly and two step mechanism like \setuplist[…][alternative=command,command=\MyList] are better but that’s only my opinion. it's ok for me -- it was a quick fix for Steffen ;o) Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pack_black_rule_pickup ?
On Sat, Feb 18, 2012 at 9:18 PM, Steffen Wolfrum cont...@st.estfiles.de wrote: Am 18.02.2012 um 20:19 schrieb luigi scarso: On Sat, Feb 18, 2012 at 8:12 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: can also be \setupnote[…][rule={on,right,\MyRule}] which is ugly and two step mechanism like \setuplist[…][alternative=command,command=\MyList] are better but that’s only my opinion. it's ok for me -- it was a quick fix for Steffen ;o) Hm I don't know ;o) : smiley (non-commutative ? ) algebra ;o) = ;-) + :o) :-) = :o) + ;-) -- luigi ___ 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] Turning off special chapter headings
Thanks for your suggestion, but it didn't seem to work. I just discovered the answer myself and that was to create a new chapter command: \def\uchap#1#2{#2} and then follow as per the wiki: \definehead[ans][chapter] \setuphead[ans][command=\uchap,number=no] \definecombinedlist[content][ans,chapter,section] \setuplist[ans][headnumber=no] Then finally \ans{Answers to Exercises} cheers, Alasdair On Fri, Feb 17, 2012 at 4:05 PM, Otared Kavian ota...@gmail.com wrote: Hi, Didn't you see my answer? As suggested below, you can use \chapter[title={Answer to all the questions},number=no]. On 16 févr. 2012, at 08:59, Otared Kavian wrote: Hi Alasdair, Is this what you want? begin \starttext \completecontent \chapter{Chapter one} \section{First section} \section{Second section} \chapter{Chapter two} \section{First section} \section{Second section} \chapter[title={Answer to all the questions},number=no] \stoptext % end Best regards: OK Best regards: OK On 17 févr. 2012, at 01:48, Alasdair McAndrew wrote: I'm using the following: \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}] for my chapter headings. But one chapter: Answers to Exercises I want unnumbered, without the Chapter text, and also in the table of contents. Can anybody point me to the simplest way of achieving this? (I've tried various combinations of \setuphead, \definehead, but nothing so far has given me what I want.) Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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 ___ -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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] Two columns type problem
Hello, I'm using: current version: 2012.02.08 21:58 but this problem happens in more versions. See example document: http://bruxy.regnet.cz/tmp/twocols_fight.pdf http://bruxy.regnet.cz/tmp/twocols_fight.ctex After 4th chapter, there is unwanted blank page. The blank page appears every time, when the chapter is on the top of page. I want to prepare two columns layout, but chapters should be overlaid over two cols. I played also with \definecolumns and columnset environment, but columns were not balanced and doesn't work as I expected. The source code: 8 8 8 8 8 8 8 8 \mainlanguage[cz] \language[cz] \enableregime[utf] % latin2 \pdfminorversion=4 % verze pdf \setupbodyfont[9pt] % \setuppapersize[A4, portrait][A4, portrait] % A3, A4, A5, A6; landscape \setuplayout[ width=175mm, height=285mm, %285mm topspace=5mm, header=5mm, headerdistance=10mm, footer=11mm, %10mm bottomspace=5mm, bottom=0mm, ] % Pouziti barev \setupcolors[state=start] \setupcolor[rgb] \setupinterlinespace[medium] \setupwhitespace[medium] \setuptabulate[header=repeat] \setupbodyfontenvironment[default][em=italic] \startuseMPgraphic{PageDeco} size := 8mm; pickup pencircle scaled 0.5mm; draw fullcircle scaled size; % shifted (0,-25mm); label(textext(\pagenumber), (0,0)); %shifted (0,-25mm); krizy := -size/2 - size/4; draw (0, -size/2)--(0, -size); draw (0,krizy)--(-size/4,krizy); draw (0,krizy)--(size/4,krizy); \stopuseMPgraphic \defineoverlay[PageDeco][\uniqueMPgraphic{PageDeco}] \def\Page#1{ \framed[background={PageDeco}, align=center, frame=off] {~}%\vbox{\bf\rm\switchtobodyfont[48pt] \color[ChapterNumber]{#1}}} } \setuppagenumbering[% alternative=doublesided, location={footer, center}, % header, middle, inleft, inmargin command=\Page, ] \setupinteraction[state=start,color=black] % klikaci dokument \setupurl[style=type,color=black] \setupcombinedlist[content][level=1,alternative=c] \setuplist[chapter][width=10mm,style=bold] \setupwhitespace[none] % velikost odsazeni \setupindenting[small,next] % none, small, medium, bix, next, first, [rozmer] \indenting[yes] % Nastaveni hlavicky \setupheader[style=\tfx\sc] \startuseMPgraphic{NumberDeco} size := 1.5cm; pickup pencircle scaled 2mm; draw fullcircle scaled size; % shifted (0,-25mm); label(textext(\bf\ss\switchtobodyfont[28pt] \namedheadnumber{chapter}), (0mm,0mm)); %shifted (0,-25mm); z0 = (size/2 * cos(45), size/2 * sin(45)); z1 = (size/2 * cos(45), size/2 * sin(45)) + (size/2, size/2); linecap := butt; draw z0--z1; linecap := squared; draw z1--z1+(-size/2,0); draw z1--z1+(0,-size/2); \stopuseMPgraphic \defineoverlay[NumberDeco][\uniqueMPgraphic{NumberDeco}] \def\MyChapter#1#2{ %2 -- text, 1 -- cislo \framedtext[width=\overlaywidth, offset=10pt, strut=no, frame=off, % bottomframe=on, align=right]{% \vbox{#2}\vbox{#1} } } \def\Cislovani#1{ \framed[background={NumberDeco}, width=3cm, offset=5mm, align=center, frame=off] {~}%\vbox{\bf\rm\switchtobodyfont[48pt] \color[ChapterNumber]{#1}}} } \setuphead[chapter][ numbercommand=\Cislovani, style={\bf\switchtobodyfont[28pt]\ss}, before={\blank[0.5cm]}, after={\blank[0.5cm]}, page=no, ] \def\uv#1{\quotation{#1}} \setupcaption[location=none] %\definecolumnset[two][n=2] \def\bdvoj{ \startcolumns[n=2] %\startcolumnset[two] } \def\edvoj{ \stopcolumns %\stopcolumnset } \starttext \setuppagenumber[state=stop] \startfrontmatter \blank[5cm,force] \startalignment[middle] {\switchtobodyfont[32pt] Two cols fight} \stopalignment \stopfrontmatter \startbodymatter \setuppagenumber[state=start,number=5] \setupbackgrounds[header][text][frame=off,bottomframe=on] \setupheadertexts[{My two col book}][chapter] \title{Obsah} \placelist[chapter][alternative=c,interaction=no] \page \dorecurse{10} { \chapter{Pokus} \bdvoj \input knuth \input knuth \edvoj } \stopbodymatter \stoptext 8 8 8 8 8 8 8 8 Thanks for help... -- Martin Bruchanov Skype : bruxytronics WWW : http://bruxy.regnet.cz/ GPG-Key : http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53) Linked-In : http://www.linkedin.com/in/bruxy Google+ : http://gplus.to/BruXy pgpTirVicqMyi.pgp Description: PGP signature ___ If your question
Re: [NTG-context] TOC with wrong lines in latest beta
Am 10.02.2012 um 18:15 schrieb Pablo Rodríguez: Hi there, in the following sample, the TOC has chapter 2 on the same line as section 1. \setuplist[chapter][alternative=g,align=middle,aligntitle=yes] \setuplist[section][alternative=d] \starttext \completecontent \chapter{chapter 1} \section{section 1} \chapter{chapter 2} \section{section 2} \stoptext I'm afraid that this i a bug, since chapter 2 should be on a new line. No it isn’t. You shouldn’t also misuse the “g” alternative which is meant for interactive document to center the entry, instead use the “command” alternative. \definelistplacement[ChapterList][command]% {\endgraf \midaligned{#2}% \endgraf} \setuplist[chapter][alternative=ChapterList] 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] TOC with wrong lines in latest beta
On 02/11/2012 07:30 PM, Wolfgang Schuster wrote: Am 10.02.2012 um 18:15 schrieb Pablo Rodríguez: [...] I'm afraid that this i a bug, since chapter 2 should be on a new line. No it isn’t. You shouldn’t also misuse the “g” alternative which is meant for interactive document to center the entry, instead use the “command” alternative. Thanks for your reply, Wolfgang. I'm not sure I understand what the g alternative is for. I'm trying to get a centered entry which can be clicked. Isn't this what alternative g is meant for? I thought it should be something like that: \setupinteraction[state=start,focus=standard] \setupcombinedlist[content][interaction=all] \setuplist[part][alternative=g] \setuplist[section][alternative=d] \starttext \completecontent \part{part} \chapter{chapter} \section{section} footnote\footnote{Looses focus} \part{part} \chapter{chapter} \subsection{subsection} \stoptext By the way, I included a footnote, because standard focus is lost when clicked on any of the footnote n numbers. Thanks for your help, Pablo -- http://www.oudeis.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] TOC with wrong lines in latest beta
Hi there, in the following sample, the TOC has chapter 2 on the same line as section 1. \setuplist[chapter][alternative=g,align=middle,aligntitle=yes] \setuplist[section][alternative=d] \starttext \completecontent \chapter{chapter 1} \section{section 1} \chapter{chapter 2} \section{section 2} \stoptext I'm afraid that this i a bug, since chapter 2 should be on a new line. Just in case it helps, Pablo -- http://www.oudeis.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] Questions on Table of Contents
On 2012-02-07 Kip Warner k...@thevertigo.com wrote: On Tue, 2012-02-07 at 08:36 +0100, Marco wrote: \setuplist [chapter] [color=yellow, pagecolor=green] \setuplist [section] [color=blue, numbercolor=red] Thanks Marco. Where can I find a list of the parameters relevant to chapter, section, and subsection for \setuplist? Since they are all implemented using the lists mechanism, all parameters of the lists apply. See the manual (http://pmrb.free.fr/contextref.pdf), chapter 12.1 or the wiki. But you're right, neither pagecolor nor numbercolor are mentioned. However, pagestyle and numberstyle are listed. The …style and …color commands always (somebody correct me if there are exceptions) come in pairs. That means you can be almost certain that if a color command works, also a style command will work and vice versa. 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] Questions on Table of Contents
On Tue, 2012-02-07 at 08:36 +0100, Marco wrote: \setuplist [chapter] [color=yellow, pagecolor=green] \setuplist [section] [color=blue, numbercolor=red] Thanks Marco. Where can I find a list of the parameters relevant to chapter, section, and subsection for \setuplist? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Questions on Table of Contents
On 2012-02-06 Kip Warner k...@thevertigo.com wrote: I am familiar with the \completecontent command, but was wondering if there is a way to also typeset just a summary of the table of contents (e.g. just chapters and no sections, sub sections, etc.)? \placelist [chapter] I've also noticed that all of the colours in my table of contents appear to be the same. I don't know if it has always been this way or if it is a recent bug or something has changed in ConTeXt. I don't quite understand. By default the colour is black. When interaction is activated the links are green. Regardless, I wonder if someone could tell me how to customize the colours of the various parts of the table of contents, such as the chapter/section number, the name, and the page number it starts on. \setuplist [chapter] [color=yellow, pagecolor=green] \setuplist [section] [color=blue, numbercolor=red] 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] bug with setuplist alternative?
Am 29.01.2012 um 00:23 schrieb Pablo Rodríguez: Hi there, in the following sample: \setuplist[chapter][alternative=g] \setuplist[section][alternative=d] \starttext \completecontent \chapter{chapter} \section{section} \chapter{chapter} \subsection{subsection} I get the second chapter on the same line as the section. I'm afraid this might be a bug. BTW, how can I get a table of contents with heading that doesn't contain subsections? The wiki only offers the option \placecontent[chapter,section], but I need the heading. \completecontent == \title{Contents} + \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] bug with setuplist alternative?
On 01/29/2012 01:06 PM, Wolfgang Schuster wrote: [...] BTW, how can I get a table of contents with heading that doesn't contain subsections? The wiki only offers the option \placecontent[chapter,section], but I need the heading. \completecontent == \title{Contents} + \placecontent Thanks, Wolfgang, for the reply. I didn't know that. Adding it to the wiki. Pablo -- http://www.oudeis.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] bug with setuplist alternative?
Hi there, in the following sample: \setuplist[chapter][alternative=g] \setuplist[section][alternative=d] \starttext \completecontent \chapter{chapter} \section{section} \chapter{chapter} \subsection{subsection} I get the second chapter on the same line as the section. I'm afraid this might be a bug. BTW, how can I get a table of contents with heading that doesn't contain subsections? The wiki only offers the option \placecontent[chapter,section], but I need the heading. Thanks for your help, Pablo -- http://www.oudeis.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] another surprising change (line break in TOC)
On Tue, Jan 17, 2012 at 1:14 PM, Steffen Wolfrum cont...@st.estfiles.dewrote: And this interlineskip is ignored in your solution, test the following please: \def\TOCstyleBF{\switchtobodyfont[9pt]\bf\setupinterlinespace[line={40pt}]} \definelistplacement[MyListItemIT][none]#1#2#3% {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay,align=middle,style=TOCstyleBF]{#2}\hfill\tf#3} % here the interlinespace is ignored % {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\TOCstyleBF\midaligned{#2}}\hfill\tf#3} % here the interlinespace worked \setuplist[chapter] [alternative=MyListItemIT] \definecombinedlist[TOCtoc] [chapter] \setupcombinedlist[TOCtoc] [aligntitle=yes,criterium=text,interaction=all] \starttext \placeTOCtoc[criterium=text,interaction=all] \startchapter[ title={Das Krankenhaus als Leistungserbringer in der GKV}, marking={Das Krankenhaus als Leistungserbringer in der GKV}, list={Das Krankenhaus\\als Leistungserbringer in der GKV}, bookmark={Das Krankenhaus als Leistungserbringer in der GKV}] \stopchapter \stoptext Now the above example it's ok for me with # context --version mtx-context | main context file: /opt/luatex/standalone/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2012.01.16 18:33 -- luigi ___ 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] another surprising change (line break in TOC)
Am 16.01.2012 um 17:18 schrieb Hans Hagen: On 16-1-2012 15:39, Steffen Wolfrum wrote: Send a example where we can see how the list entries are formatted. Wolfgang Sorry, no example now: I am just about to leave the desk. Back again ... Here is the corresponding minimal example: \definelistplacement[MyListItemIT][none]#1#2#3% {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\bf\midaligned{#2}}\hfill\tf#3} \setuplist[chapter] [alternative=MyListItemIT] \definecombinedlist[TOCtoc] [chapter] \setupcombinedlist[TOCtoc] [aligntitle=yes,criterium=text,interaction=all] \starttext \placeTOCtoc[criterium=text,interaction=all] \startchapter[ title={Das Krankenhaus als Leistungserbringer in der GKV}, marking={Das Krankenhaus als Leistungserbringer in der GKV}, list={Das Krankenhaus\\als Leistungserbringer in der GKV}, bookmark={Das Krankenhaus als Leistungserbringer in der GKV}] \stopchapter \stoptext Best, Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] another surprising change (line break in TOC)
Am 17.01.2012 um 12:19 schrieb luigi scarso: Probably a bug, but this is ok \definelistplacement[MyListItemIT][none]#1#2#3% {\hfill\kern-1em\it#1% \hfill\strut\crlf\strut\hfill\hphantom{\tf#3}% \framedtext[frame=off,offset=overlay,align=middle,style=bold]% {#2}% \hfill\tf#3 } Not really ok. That's a pitfall with minimal examples ... the devil is in the details ;o) For getting it minimal I wrote \bf, but in the original file it is used as a bold style with a certain size and a certain interlineskip: \TOCstyleBF And this interlineskip is ignored in your solution, test the following please: \def\TOCstyleBF{\switchtobodyfont[9pt]\bf\setupinterlinespace[line={40pt}]} \definelistplacement[MyListItemIT][none]#1#2#3% {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay,align=middle,style=TOCstyleBF]{#2}\hfill\tf#3} % here the interlinespace is ignored % {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay]{\TOCstyleBF\midaligned{#2}}\hfill\tf#3} % here the interlinespace worked \setuplist[chapter] [alternative=MyListItemIT] \definecombinedlist[TOCtoc] [chapter] \setupcombinedlist[TOCtoc] [aligntitle=yes,criterium=text,interaction=all] \starttext \placeTOCtoc[criterium=text,interaction=all] \startchapter[ title={Das Krankenhaus als Leistungserbringer in der GKV}, marking={Das Krankenhaus als Leistungserbringer in der GKV}, list={Das Krankenhaus\\als Leistungserbringer in der GKV}, bookmark={Das Krankenhaus als Leistungserbringer in der GKV}] \stopchapter \stoptext --- Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : 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 to be read again , \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}][] to be read again \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 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 ___
Re: [NTG-context] \placelist and \writetolist
Wolfgang Schuster schuster.wolfg...@googlemail.com 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 ___
[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 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 ___
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 ___
[NTG-context] Bad linebreak in ToC
Hello, I don’t understand the behaviour in the second line – this line is not really filled, but there is a linebreak (in case of some hyphenations quite ugly too) Any solution? Markus \usemodule [simplefonts] \definefontfeature [default] [default] [mode=node, script=latn] \setupbodyfont [12pt] \definefontsize [g] \setupbodyfontenvironment [default] [g=0.95] \setuplist [section] [alternative=b, width=1.2em, style=\tt\tfg] \usemodule [typearea] \setupTypeArea [alphabets=1.8] \starttext \completelist \startsection [title={Sectiontitle}, list={Sectiontitle abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc}] \stopsection \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 ___
Re: [NTG-context] Unnumbered chapters (titles) etc in TOC
Am 29.11.2011 um 12:20 schrieb Marcin Borkowski: Hi, I tried this: \definecombinedlist[content][chapter,title,subject,section] \setuphead[title,subject][incrementnumber=list] \starttext \placecontent \title{Unnumbered chapter} \subject{First} \subject{Second} \chapter{Numbered chapter} \section{Third} \section{Fourth} \stoptext and I have a few questions. 1. If I replace \definecombinedlist with \setupcombinedlist (which seems natural, given that content is already defined), it stops working; why? \setupcombinedlist does two things: 1. It passes the argument to \setuplist for each heading in the list, 2. It is used to set certain options for the given list 2. The \setuphead line seem to be necessary; why? Old option from MkII where this was needed. because combinedlist was a little bit different. 3. And the worst: indenting of \titles and \subjects is the same (and of \subsubjects also, if I add them). How to change this? \title, \subject etc. use the default values for the “width” key while \chapter etc. have explicit settings, you can change this with \setuplist[heading][width=dimension] 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] page number placement in multiline TOC entry
On 07.11.2011, at 15:51, Michael Guravage wrote: Greetings, At the recent ConTeXt workshop someone mentioned that they had achieved placing a pagenumber to the right of the first line of a multiline table of contents entry. Can anyone describe how to acomplish this? Hi, something like this? \define[3]\ChapterList {\bTABLE[offset=0pt,rulethickness=0pt,strut=yes,frame=off,width=broad] \bTR \bTD[width=2em] \begstrut#1\endstrut \eTD \bTD\begstrut#2\endstrut \eTD \bTD[width=2em,align={left,high}] \begstrut#3\endstrut \eTD \eTR \eTABLE} \setuplist[chapter][alternative=command,command=\ChapterList] \starttext \showframe \placelist[chapter] \dorecurse{3}{\chapter{Some very long title. Some very long title. Some very long title. Some very long title. Some very long title. }} \stoptext Regards Andreas ___ 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] Some more ToC questions
Am 26.10.2011 um 05:41 schrieb Alasdair McAndrew: Thanks to the great expertise of folk on this mailgroup, I have my chapter headings set so that each one comes out as Chapter n Name of Chapter However, I have a few more questions. First: if I use completecontent to display the contents, how can I have the Contents title display without my Chapter line? That is, is there a way of turning off my chapter command temporarily? (I've found that title doesn't work here: If I use \title{Contents} \placecontent I still get a Chapter line.) Second: I'm writing out a book of student notes, and each chapter ends with a set of exercises. I'd like these exercises to be typeset as unnumbered sections (subjects), and appear so in the ToC. Like: 4.4 Second last section 4.5 Last section Exercises What is the best way of doing this (MkII)? I've tried \definehead[exercise][section] \setuphead[exercise][number=no] \setuplist[exercise][headnumber=no] but that doesn't work on its own, and when paired with \definecombinedlist[content][exercise,chapter,section] wipes out the contents completely. Any advice (or even pointers to a web page) would be most welcome. \defineheadplacement[MyChapter][vertical]{\vbox{#1\crlf#2}} \setuplabeltext[chapter=Chapter ] \setuphead[chapter][alternative=MyChapter] \definehead[exercise][subject][incrementnumber=list] \starttext \title{Contents} \placelist[chapter,section,exercise] \chapter{Chapter} \section{Section} \exercise{Exercise} \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 ___
[NTG-context] Some more ToC questions
Thanks to the great expertise of folk on this mailgroup, I have my chapter headings set so that each one comes out as Chapter n Name of Chapter However, I have a few more questions. First: if I use completecontent to display the contents, how can I have the Contents title display without my Chapter line? That is, is there a way of turning off my chapter command temporarily? (I've found that title doesn't work here: If I use \title{Contents} \placecontent I still get a Chapter line.) Second: I'm writing out a book of student notes, and each chapter ends with a set of exercises. I'd like these exercises to be typeset as unnumbered sections (subjects), and appear so in the ToC. Like: 4.4 Second last section 4.5 Last section Exercises What is the best way of doing this (MkII)? I've tried \definehead[exercise][section] \setuphead[exercise][number=no] \setuplist[exercise][headnumber=no] but that doesn't work on its own, and when paired with \definecombinedlist[content][exercise,chapter,section] wipes out the contents completely. Any advice (or even pointers to a web page) would be most welcome. Thanks, Alasdair ___ 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] about \startstructureblockenvironment
Dear all, There is an error message, undefined control sequence as below when I use \startstructureblockenvironment: mtx-context | run 1: luatex --fmt=/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en --lua=/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui --backend=pdf ./test4.tex \stoptext This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) \write18 enabled. (test4.tex ConTeXt ver: 2011.10.08 11:42 MKIV fmt: 2011.10.12 int: english/english system cont-new.mkiv loaded (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test4.top loaded (test4.top) fonts latin modern fonts are not preloaded languages language en is active ! Undefined control sequence. system tex error on line 6 in file test4.tex: Undefined control sequence ... 1 \definestructureconversionset[frontpart:pagenumber][][romannumerals] 2 \definestructureconversionset[bodypart:pagenumber] [][numbers] 3 4 \setuplist[chapter][pageconversionset=pagenumber] 5 6 \startstructureblockenvironment[frontpart] 7 \setupuserpagenumber[numberconversion=romannumerals] 8 \setuppagenumber[number=1] 9 \stopstructureblockenvironment 10 11 \startstructureblockenvironment[bodypart] 12 \setuppagenumber[number=1] 13 \stopstructureblockenvironment 14 15 \startcomponent Test 16 l.6 \startstructureblockenvironment [frontpart] ? I followed an example in the wiki - http://wiki.contextgarden.net/Table_of_Contents Would you please tell me what is wrong? Here is a sample code. \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \startstructureblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuppagenumber[number=1] \stopstructureblockenvironment \startstructureblockenvironment[bodypart] \setuppagenumber[number=1] \stopstructureblockenvironment \startcomponent Test \startbodymatter \chapter{One} \input knuth \chpater{Two} \input knuth \stopbodymatter \stopcomponent Thank you. Best regards, Dalyoung ___ 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] Setup of the title of Contents
Hello, I wish I were able to set tup my custom title (for example, for table of contents). I have chapter titles split over two lines and with different sizes so I need something different as a title of Contents. I know about many possibilities of \setuplist options but can't find anything about changing the title style. It seems the basic style is simply derived from the chapter title style. Any advice? Thanks, Honza Hejzl ___ 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] Setup of the title of Contents
On 09/13/2011 04:48 PM, Honza Hejzl wrote: I wish I were able to set tup my custom title (for example, for table of contents). I have chapter titles split over two lines and with different sizes so I need something different as a title of Contents. I know about many possibilities of \setuplist options but can't find anything about changing the title style. It seems the basic style is simply derived from the chapter title style. Use \placetableofcontents instead of \completetableofcontents and generate the title with your customized title command. ___ 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 ___