Re: [NTG-context] goto(box) and setuplist questions
On Wed, Aug 6, 2008 at 4:15 PM, Alan Stone [EMAIL PROTECTED] wrote: On Wed, Aug 6, 2008 at 3:26 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Depends on the situation, for left aligned numbers it didn't matter because you can't see where the space comes from (1) but for right aligned numbers you need a postive value for distance (2). (1) Left aligned number: \starttext \bTABLE[frame=off] \bTR\bTD[width=1cm] 1 \eTD\bTD header \eTD\eTR \eTABLE \bTABLE[frame=off,distance=5mm] \bTR\bTD[width=5mm] 1 \eTD\bTD header \eTD\eTR \eTABLE \stoptext (2) Right aligned number: \starttext \bTABLE[frame=off] \bTR\bTD[width=1cm,align=flushright] 1 \eTD\bTD header \eTD\eTR \eTABLE \bTABLE[frame=off,distance=5mm] \bTR\bTD[width=5mm,align=flushright] 1 \eTD\bTD header \eTD\eTR \eTABLE \stoptext I'm impressed... So you really have an MBA in Klingon! :O) Hans wrote: - maxwidth ? just try it on long entries .. it prevents too long lines this is a very long entry this is a very ... Ok I see. Now, in \placecontent or \setuplist, which parameter allows to influence where long lines are cut off in two (or more) ? Like... (number) This long long chapter title (pagenumber) vs. (number) This long long chapter title(pagenumber) Using the brute force tactic I tried setting width and textwith which didn't work. It could be textcommand. If so what does \command#1 mean ( see main manual pg 150 ) ? The effect for maxwidth (3cm in my example) is this: \starttext \limitatetext {This long long chapter title} {3cm} {\unknown} \stoptext Wolfgang I just tried with style={\switchtobodyfont[small]\setuplinewidth[(x)pt]\setupinterlinespace[line=2.4ex]} \starttext \framed{text} \thinrule \setuplinewidth[small] \framed{text} \thinrule \setuplinewidth[1cm] \framed{text} \thinrule \stoptext and several values for (x) in \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, %style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]}, style={\switchtobodyfont[small]\setuplinewidth[150pt]\setupinterlinespace[line=2.4ex]}, interaction=all, before={\blank[small]\startnarrower[left,right]}, after={\stopnarrower\blank[medium]}] \stopinteractionmenu but that generates a compile error. Grrr... You could try style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]}, or style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]}, The better way is to define you own list alternative. \define[3]\ChapterList {\hbox {\hbox to .5em{#1}\hskip.5em \vtop{\hsize150pt\relax#2}% \hfil#3}} \setuplist[chapter][alternative=command,command=\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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
On Wed, Aug 6, 2008 at 4:15 PM, Alan Stone [EMAIL PROTECTED] wrote: On Wed, Aug 6, 2008 at 3:26 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Depends on the situation, for left aligned numbers it didn't matter because you can't see where the space comes from (1) but for right aligned numbers you need a postive value for distance (2). (1) Left aligned number: \starttext \bTABLE[frame=off] \bTR\bTD[width=1cm] 1 \eTD\bTD header \eTD\eTR \eTABLE \bTABLE[frame=off,distance=5mm] \bTR\bTD[width=5mm] 1 \eTD\bTD header \eTD\eTR \eTABLE \stoptext (2) Right aligned number: \starttext \bTABLE[frame=off] \bTR\bTD[width=1cm,align=flushright] 1 \eTD\bTD header \eTD\eTR \eTABLE \bTABLE[frame=off,distance=5mm] \bTR\bTD[width=5mm,align=flushright] 1 \eTD\bTD header \eTD\eTR \eTABLE \stoptext I'm impressed... So you really have an MBA in Klingon! :O) Hans wrote: - maxwidth ? just try it on long entries .. it prevents too long lines this is a very long entry this is a very ... Ok I see. Now, in \placecontent or \setuplist, which parameter allows to influence where long lines are cut off in two (or more) ? Like... (number) This long long chapter title (pagenumber) vs. (number) This long long chapter title(pagenumber) Using the brute force tactic I tried setting width and textwith which didn't work. It could be textcommand. If so what does \command#1 mean ( see main manual pg 150 ) ? The effect for maxwidth (3cm in my example) is this: \starttext \limitatetext {This long long chapter title} {3cm} {\unknown} \stoptext I just tried with style={\switchtobodyfont[small]\setuplinewidth[(x)pt]\setupinterlinespace[line=2.4ex]} and several values for (x) in \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, %style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]}, style={\switchtobodyfont[small]\setuplinewidth[150pt]\setupinterlinespace[line=2.4ex]}, interaction=all, before={\blank[small]\startnarrower[left,right]}, after={\stopnarrower\blank[medium]}] \stopinteractionmenu but that generates a compile error. Grrr... Was the empty line also in your source, if your answer is yes remove 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
On Wed, Aug 6, 2008 at 5:03 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Was the empty line also in your source, if your answer is yes remove it. No, it wasn't in my sauce, correction: source. Although... My source sometimes looks like a messed up sauce. :O) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
On Wed, Aug 6, 2008 at 4:59 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: \starttext \framed{text} \thinrule \setuplinewidth[small] \framed{text} \thinrule \setuplinewidth[1cm] \framed{text} \thinrule \stoptext I don't see the output difference between \framed{text} \thinrule \setuplinewidth[small] \framed{text} \thinrule \setuplinewidth[big] \framed{text} while \setuplinewidth[1cm] \framed{text} is fascinating. You could try style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]}, or style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]}, These work, however not entirely to my satisfaction because then the right margin setting is modified due to text/head and pagenumber being grouped ( re: drawing, manual pg 150 ). The better way is to define you own list alternative. \define[3]\ChapterList {\hbox {\hbox to .5em{#1}\hskip.5em \vtop{\hsize150pt\relax#2}% \hfil#3}} \setuplist[chapter][alternative=command,command=\ChapterList] I'll try that... Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
The better way is to define you own list alternative. \define[3]\ChapterList {\hbox {\hbox to .5em{#1}\hskip.5em \vtop{\hsize150pt\relax#2}% \hfil#3}} \setuplist[chapter][alternative=command,command=\ChapterList] I'll try that... #1, #2, #3 being parameters which can be passed to \ChapterList, aka \ChapterList[#1,#2,#3]. Is that correct ? Best, Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
Thanks for these finishing touches Wolfgang. I'm troubled by the following though... - whatever the dimension (number and/or unit) I set for \setupnarrower[left=1pt,right=1pt] the left and right margin remain the same - when setting for example \setuplist[chapter][align=middle,distance=1em] ( or whatever else for distance ) it has no effect upon the distance between the chapter number and the chapter title ConTeXt ver: 2008.07.10 08:40 MKIV fmt: 2008.7.10 int: english/english Alan On Tue, Aug 5, 2008 at 10:29 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Slightly modfied: \setuppapersize[S6][S6] \setupbodyfont[14.4pt] \setuplayout [width=360pt, headerheight=7pt, footerheight=7pt, margin=0pt, backspace=25pt, topheight=7pt, bottomheight=7pt, rightedgedistance=20pt, rightedge=180pt] \setuplist[chapter,section][aligntitle=yes,criterium=all] \setuplist[chapter][align=middle] \setuphead[chapter][number=yes] \setuphead[section][number=no] \setupbackgrounds[text][rightedge][frame=on] \setupinteraction[ state=start, menu=on, page=yes] \setupnarrower[left=1pt,right=1pt] \defineinteractionmenu[myMenu][right] \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]}, interaction=all, before={\blank[small]\startnarrower}, after={\stopnarrower\blank[medium]}, ] \stopinteractionmenu \setupinteractionmenu[myMenu][state=start] \setupinteractionmenu[right][distance=overlay] \starttext \chapter{This Long Chapter Title} \section{This Long Section Title A} \input knuth \section{This Long Section Title B} \input zapf \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
On Tue, Aug 5, 2008 at 1:07 PM, Alan Stone [EMAIL PROTECTED] wrote: Thanks for these finishing touches Wolfgang. I'm troubled by the following though... - whatever the dimension (number and/or unit) I set for \setupnarrower[left=1pt,right=1pt] the left and right margin remain the same Use \startnarrower[left,right]. - when setting for example \setuplist[chapter][align=middle,distance=1em] ( or whatever else for distance ) it has no effect upon the distance between the chapter number and the chapter title \setuplist[chapter][align=middle,distance=0pt,width=1em] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
On Mon, Aug 4, 2008 at 10:57 PM, Alan Stone [EMAIL PROTECTED] wrote: I'm looking to have in the menu... - chapter title centered - section title left aligned - for long chapter/section titles split over more than 1line, vertical space between these chapter/section lines to be smaller - left and right margin of (x)pt \setuppapersize[S6][S6] \setupbodyfont[14.4pt] %\showframe \setuppagenumbering[alternative=singlesided] \setuplayout [width=360pt, headerheight=7pt, footerheight=7pt, margin=0pt, backspace=25pt, topheight=7pt, bottomheight=7pt, rightedgedistance=20pt, rightedge=180pt] \setuplist[chapter,section][ criterium=all, aligntitle=yes, interaction=all] \setuphead[chapter][number=yes] \setuphead[section][number=no] \setupbackgrounds[text][rightedge][frame=on] \setupinteraction[ state=start, menu=on, page=yes] \setupnarrower[left=1pt,right=1pt] %\setupnarrower[left=5pt,right=5pt] \defineinteractionmenu[myMenu][right] \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, %distance=2pt,% no effect style=\tfx, % \tfxx is too small to read %offset=5pt,% no effect %margin=5pt, % only sets left margin %width=.9\rightedgewidth, % chapter title gets whacked out of rightedge %maxwidth=.9\rightedgewidth, % no effect interaction=all, before=\startnarrower, % sets a default left and right margin, i.e. independent after=\stopnarrower]% of left/right setting %before=, %after=] \stopinteractionmenu \setupinteractionmenu[myMenu][state=start] \setupinteractionmenu[right][ %offset=5pt,% no effect %width=.9\rightedgewidth, % no effect %maxwidth=.9\rightedgewidth, % no effect %before=\startnarrower, % no effect %after=\stopnarrower,% no effect distance=overlay] \starttext \chapter{This Long Chapter Title} \section{This Long Section Title A} \input knuth \section{This Long Section Title B} \input zapf \stoptext Slightly modfied: \setuppapersize[S6][S6] \setupbodyfont[14.4pt] \setuplayout [width=360pt, headerheight=7pt, footerheight=7pt, margin=0pt, backspace=25pt, topheight=7pt, bottomheight=7pt, rightedgedistance=20pt, rightedge=180pt] \setuplist[chapter,section][aligntitle=yes,criterium=all] \setuplist[chapter][align=middle] \setuphead[chapter][number=yes] \setuphead[section][number=no] \setupbackgrounds[text][rightedge][frame=on] \setupinteraction[ state=start, menu=on, page=yes] \setupnarrower[left=1pt,right=1pt] \defineinteractionmenu[myMenu][right] \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]}, interaction=all, before={\blank[small]\startnarrower}, after={\stopnarrower\blank[medium]}, ] \stopinteractionmenu \setupinteractionmenu[myMenu][state=start] \setupinteractionmenu[right][distance=overlay] \starttext \chapter{This Long Chapter Title} \section{This Long Section Title A} \input knuth \section{This Long Section Title B} \input zapf \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] goto(box) and setuplist questions
Hi, (1) \goto(box) (1a) What's the difference between - goto and gotobox ? (1b) With \goto{Table of Contents}[contents] each word separately is interactive, not the whole word. How do you make so ? (3) \setuplist (3a) what is - depth ? - maxwidth ? (3b) margin=xpt sets the left margin to xpt How to set the right margin to xpt ? Thanks, Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
Alan Stone wrote: Hi, (1) \goto(box) (1a) What's the difference between - goto and gotobox ? (1b) With \goto{Table of Contents}[contents] each word separately is interactive, not the whole word. How do you make so ? gotobox does not split, just try both commands on a combination of words; also, gotobox does not check if the area is comfortable clickable (so you might need to add struts) (in a lists there are optins like interaction-all which makes the whole toc entry clockable) (3) \setuplist (3a) what is - depth ? detail .. sometimes you need to manipulat ethe depth of lines; seldom needed - maxwidth ? just try it on long entries .. it prevents too long lines this is a very long entry this is a very ... (3b) margin=xpt sets the left margin to xpt How to set the right margin to xpt ? depends, sometimes setting the width works ok, otherwise wrap the whole in narrower - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
(3b) margin=xpt sets the left margin to xpt How to set the right margin to xpt ? depends, sometimes setting the width works ok, otherwise wrap the whole in narrower I'm out of inspiration... \setupnarrower[left=.6pt,right=.6pt] \startinteractionmenu[right] % \startnarrower % sets a wide right margin, whatever \setnarrower left/right settings \placecontent[ %criterium=all, criterium=chapter, alternative=b, style=\tfx, %offset=5pt, % no effect at all %margin=5pt,% only sets left margin %width=.90\rightedge,% no effect at all %before=\startnarrower, % no effect at all %after=\stopnarrower,% no effect at all interaction=all] % \stopnarrower \stopinteractionmenu % \startnarrower % blank menu \setupinteractionmenu[right][ %offset=5pt, % no effect at all % width=.95\rightedge, % no effect at all %before=\startnarrower, % sets a wide right margin, %after=\stopnarrower, % whatever \setnarrower left/right settings distance=overlay] % \stopnarrower Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
On Mon, Aug 4, 2008 at 4:44 PM, Alan Stone [EMAIL PROTECTED] wrote: (3b) margin=xpt sets the left margin to xpt How to set the right margin to xpt ? depends, sometimes setting the width works ok, otherwise wrap the whole in narrower I'm out of inspiration... \setupnarrower[left=.6pt,right=.6pt] \startinteractionmenu[right] % \startnarrower % sets a wide right margin, whatever \setnarrower left/right settings \placecontent[ %criterium=all, criterium=chapter, alternative=b, style=\tfx, %offset=5pt, % no effect at all %margin=5pt,% only sets left margin %width=.90\rightedge,% no effect at all %before=\startnarrower, % no effect at all %after=\stopnarrower,% no effect at all interaction=all] % \stopnarrower \stopinteractionmenu % \startnarrower % blank menu \setupinteractionmenu[right][ %offset=5pt, % no effect at all % width=.95\rightedge, % no effect at all %before=\startnarrower, % sets a wide right margin, %after=\stopnarrower, % whatever \setnarrower left/right settings distance=overlay] % \stopnarrower Make a real example. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] goto(box) and setuplist questions
I'm looking to have in the menu... - chapter title centered - section title left aligned - for long chapter/section titles split over more than 1line, vertical space between these chapter/section lines to be smaller - left and right margin of (x)pt \setuppapersize[S6][S6] \setupbodyfont[14.4pt] %\showframe \setuppagenumbering[alternative=singlesided] \setuplayout [width=360pt, headerheight=7pt, footerheight=7pt, margin=0pt, backspace=25pt, topheight=7pt, bottomheight=7pt, rightedgedistance=20pt, rightedge=180pt] \setuplist[chapter,section][ criterium=all, aligntitle=yes, interaction=all] \setuphead[chapter][number=yes] \setuphead[section][number=no] \setupbackgrounds[text][rightedge][frame=on] \setupinteraction[ state=start, menu=on, page=yes] \setupnarrower[left=1pt,right=1pt] %\setupnarrower[left=5pt,right=5pt] \defineinteractionmenu[myMenu][right] \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, %distance=2pt,% no effect style=\tfx, % \tfxx is too small to read %offset=5pt,% no effect %margin=5pt, % only sets left margin %width=.9\rightedgewidth, % chapter title gets whacked out of rightedge %maxwidth=.9\rightedgewidth, % no effect interaction=all, before=\startnarrower, % sets a default left and right margin, i.e. independent after=\stopnarrower]% of left/right setting %before=, %after=] \stopinteractionmenu \setupinteractionmenu[myMenu][state=start] \setupinteractionmenu[right][ %offset=5pt,% no effect %width=.9\rightedgewidth, % no effect %maxwidth=.9\rightedgewidth, % no effect %before=\startnarrower, % no effect %after=\stopnarrower,% no effect distance=overlay] \starttext \chapter{This Long Chapter Title} \section{This Long Section Title A} \input knuth \section{This Long Section Title B} \input zapf \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Luatex arranging
Wolfgang and Hans have just solved a problem and I'm here again to ask for help. Is arranging already supported in Luatex? If I call context --arrange (undocumented) with the following simple code I get the toc, but the text is only on the left side of the paper. \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setuplist[section][alternative=c] \starttext \placelist[section] \section{One} \dorecurse{15}{\input ward} \section{Two} \dorecurse{10}{\input knuth} \section{Last} \dorecurse{20}{\input tufte} \stoptext Thanks in advance -- Diego Depaoli ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Luatex arranging
Diego Depaoli wrote: Wolfgang and Hans have just solved a problem and I'm here again to ask for help. Is arranging already supported in Luatex? If I call context --arrange (undocumented) with the following simple code I get the toc, but the text is only on the left side of the paper. \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setuplist[section][alternative=c] \starttext \placelist[section] \section{One} \dorecurse{15}{\input ward} \section{Two} \dorecurse{10}{\input knuth} \section{Last} \dorecurse{20}{\input tufte} \stoptext just use texexec in that case - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] table of contents strangeness...
this works... \setuplist[chapter][ style=bold, aligntitle=yes, after=\blank] --- that's too much vertical blank space this doesn't... \setuplist[chapter][ style=bold, aligntitle=yes, after=\blank[small]] strange ( see log in attachement ), or not ? alan dummy_book.log 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] table of contents strangeness...
On Jun 25, 2008, at 10:13 AM, Alan Stone wrote: this doesn't... \setuplist[chapter][ style=bold, aligntitle=yes, after=\blank[small]] try \setuplist[chapter][ style=bold, aligntitle=yes, after={\blank[small]}] (untested) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] table of contents strangeness...
Alan Stone wrote: this works... \setuplist[chapter][ style=bold, aligntitle=yes, after=\blank] --- that's too much vertical blank space this doesn't... \setuplist[chapter][ style=bold, aligntitle=yes, after=\blank[small]] strange ( see log in attachement ), or not ? the blank adapts to the style (size); also, keep in mind that the largest of (blank,whitespace) counts - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] table of contents strangeness...
On Wed, Jun 25, 2008 at 10:13 AM, Alan Stone [EMAIL PROTECTED] wrote: this works... \setuplist[chapter][ style=bold, aligntitle=yes, after=\blank] --- that's too much vertical blank space this doesn't... \setuplist[chapter][ style=bold, aligntitle=yes, after=\blank[small]] after={\blank[small]}] strange ( see log in attachement ), or not ? No. Regards, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unusual TOC
On Mon, Jun 16, 2008 at 8:45 PM, Maurício [EMAIL PROTECTED] wrote: Hi, I'm typesetting a book where prose and verse alternate in chapters, i.e., you have one chapter of prose, one of verse, one of prose etc. I would like to generate a TOC for that book, but chapters have no name or numbers. I was told by the author that the usual thing to do is to take the first few words of each chapter and use those in the index. I know how to do that using a few small tricks, but I would like to know if there's a standard way to do that. Are you aware of any? \defineselector[title][max=2,n=2] \setuplist [chapter] [width=0pt] \setuphead [chapter] [number=no, incrementnumber=list] \starttext \start \setupselector[title][n=1] \completecontent \stop \chapter{\select{title}{Short header}{Long header version}} \chapter{\select{title}{Another header}{Another long version for the text}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC columns
Paul Gideon Dann wrote: Hi there, I've got a table of contents for a document that's split into two large sections. I'm trying to display a centered heading for each section, and subsections listed in two columns underneath each section heading. Hopefully this illustrates something of what I'm trying to achieve: \midaligned{Section1} \startcolumns[n=2] Subsection1 \stopcolumns \midaligned{Section2} \startcolumns[n=2] Subsection1 \stopcolumns Does anyone know how to automate this for a table of contents? % \setuplist % [chapter] % [after={\startcolumns\placelist[section]\stopcolumns}] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC columns
Thanks, that's genius! However, the problem I now have is that the sections from *both* chapters are displayed below each chapter heading. That is, \placelist[section] generates the same content in both contexts. Paul Hans Hagen wrote: Paul Gideon Dann wrote: Hi there, I've got a table of contents for a document that's split into two large sections. I'm trying to display a centered heading for each section, and subsections listed in two columns underneath each section heading. Hopefully this illustrates something of what I'm trying to achieve: \midaligned{Section1} \startcolumns[n=2] Subsection1 \stopcolumns \midaligned{Section2} \startcolumns[n=2] Subsection1 \stopcolumns Does anyone know how to automate this for a table of contents? % \setuplist % [chapter] % [after={\startcolumns\placelist[section]\stopcolumns}] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC columns
On Wed, May 7, 2008 at 1:38 PM, Paul Gideon Dann [EMAIL PROTECTED] wrote: Thanks, that's genius! However, the problem I now have is that the sections from *both* chapters are displayed below each chapter heading. That is, \placelist[section] generates the same content in both contexts. The followings works for me, give us a example. \setuplist [chapter] [after={\startcolumns\placelist[section]\stopcolumns}] \starttext \placelist[chapter] \dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC columns
On Wed, May 7, 2008 at 2:05 PM, Paul Gideon Dann [EMAIL PROTECTED] wrote: The same example produces the problem for me. Maybe I have an older version? I got MacTex pretty recently (two weeks ago), but the version is: 2007.01.12 15:56. Here's the exact source: \definecombinedlist[content][chapter] \setuplist[chapter][after={\startcolumns\placelist[section]\stopcolumns}] \placecontent \starttext \dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext Hi Paul, I could reproduce the problem also with a recent ConTeXt, replace \placecontent with \placelist[chapter] and it works, I found no way to get the same result with combinedlist. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC columns
Thanks Wolfgang. It's unfortunate that I can't use combinedlist, but I think I'll be OK without. Thanks again for your time, and I'll get in touch if I have any more difficulties :) Paul Wolfgang Schuster wrote: On Wed, May 7, 2008 at 2:05 PM, Paul Gideon Dann [EMAIL PROTECTED] wrote: The same example produces the problem for me. Maybe I have an older version? I got MacTex pretty recently (two weeks ago), but the version is: 2007.01.12 15:56. Here's the exact source: \definecombinedlist[content][chapter] \setuplist[chapter][after={\startcolumns\placelist[section]\stopcolumns}] \placecontent \starttext \dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext Hi Paul, I could reproduce the problem also with a recent ConTeXt, replace \placecontent with \placelist[chapter] and it works, I found no way to get the same result with combinedlist. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC columns
The same example produces the problem for me. Maybe I have an older version? I got MacTex pretty recently (two weeks ago), but the version is: 2007.01.12 15:56. Here's the exact source: \definecombinedlist[content][chapter] \setuplist[chapter][after={\startcolumns\placelist[section]\stopcolumns}] \placecontent \starttext \dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext Paul Wolfgang Schuster wrote: On Wed, May 7, 2008 at 1:38 PM, Paul Gideon Dann [EMAIL PROTECTED] wrote: Thanks, that's genius! However, the problem I now have is that the sections from *both* chapters are displayed below each chapter heading. That is, \placelist[section] generates the same content in both contexts. The followings works for me, give us a example. \setuplist [chapter] [after={\startcolumns\placelist[section]\stopcolumns}] \starttext \placelist[chapter] \dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table of contents customization
Am 2008-04-29 um 13:27 schrieb Wolfgang Schuster: \setuplist [chapter,section,...] [numbercommand=\DotAfterNumber] \def\DotAfterNumber#1{\doiftext{#1}{#1.}} Just wikified that: http://wiki.contextgarden.net/Table_of_Contents Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Table of contents customization
Hi all, I've been using ConTeXT for quite a while now, and I am trying to build my own customized environnment. I have some trouble customizing my content table. I tried everything I could, including reading the manual twice over, and I still can't figure out why none of my ideas will work! In fact, my configuration looks like this: \setupcombinedlist[content][level=4,alternative=c] \setuplist[chapter][width=7mm,style=bold] \setuplist[section][width=10mm,margin=10mm] \setuplist[subsection] [width=13mm,style=slanted,pagestyle=normal,margin=21mm] What I would like is the number to be separated from the page name by a ., which would give something like: 1. Chapter name. 32 I tried \setupcombinedlist[content][level=4,alternative=c, separator={.}], but it doesn't work. Although 'separator' is documented as the separator between the number and the pagename, it appears to be the separator between the number and subnumbers, like, with separator={ppp}: 1 MyChapter 1ppp1 Mysection.. Which is not quite what I expect! So i tried setting something like \def\mycommand#1{#1.} \setupcombinedlist[content][level=4,alternative=c, numbercommand={\mycommand}] Which works, except for the fact that when there is no number (like in my frontmatter), the . is shown anyway... So I naturally tried: \def\mycommand#1{\doifnotempty{#1}{#1.}} Which doesn't work! I still get something like . Preamble 1. ChapterOne 1.1 Section So even if no number is given, the doifnotempty block still is executed! I tried a lot of combinations, like \def\mycommand#1{\doifdefined{#1}{#1.}} or \def\mycommand#1{\doifnot{#1}{}{#1.}} But none of these will compile... So at this point, I don't see any solution, which is why I really would appreciate any suggestion! Thank you very much! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table of contents customization
On Tue, Apr 29, 2008 at 11:23 AM, Noé Cuneo [EMAIL PROTECTED] wrote: Hi all, I've been using ConTeXT for quite a while now, and I am trying to build my own customized environnment. I have some trouble customizing my content table. I tried everything I could, including reading the manual twice over, and I still can't figure out why none of my ideas will work! In fact, my configuration looks like this: \setupcombinedlist[content][level=4,alternative=c] \setuplist[chapter][width=7mm,style=bold] \setuplist[section][width=10mm,margin=10mm] \setuplist[subsection] [width=13mm,style=slanted,pagestyle=normal,margin=21mm] What I would like is the number to be separated from the page name by a ., which would give something like: 1. Chapter name. 32 I tried \setupcombinedlist[content][level=4,alternative=c, separator={.}], but it doesn't work. Although 'separator' is documented as the separator between the number and the pagename, it appears to be the separator between the number and subnumbers, like, with separator={ppp}: 1 MyChapter 1ppp1 Mysection.. Which is not quite what I expect! So i tried setting something like \def\mycommand#1{#1.} \setupcombinedlist[content][level=4,alternative=c, numbercommand={\mycommand}] Which works, except for the fact that when there is no number (like in my frontmatter), the . is shown anyway... So I naturally tried: \def\mycommand#1{\doifnotempty{#1}{#1.}} Which doesn't work! I still get something like . Preamble 1. ChapterOne 1.1 Section So even if no number is given, the doifnotempty block still is executed! I tried a lot of combinations, like \def\mycommand#1{\doifdefined{#1}{#1.}} or \def\mycommand#1{\doifnot{#1}{}{#1.}} But none of these will compile... So at this point, I don't see any solution, which is why I really would appreciate any suggestion! Thank you very much! \setuplist [chapter,section,subsection] [stopper={.}] Greetings Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table of contents customization
Hi Wolfgang! Thanks a lot for your answer! However, I have no idea why, but I still get: . Preamble 1. ChapterOne 1.1. Section With the stopper being displayed even when there is no number! And I am 100% sure this doesn't come from somewhere else, because if I set stoper={ppp}, I get ppp Preamble 1ppp ChapterOne 1.1ppp Section So clearly this stopper is called even when it should not... Here is the exact code I used (according to your suggestion): \setupcombinedlist[content][level=4,alternative=c] \setuplist[chapter,section,subsection,subsubsection][stopper={ppp}] \setuplist[section][width=7mm,style=bold] \setuplist[subsection][width=10mm,margin=10mm] \setuplist[subsubsection] [width=13mm,style=slanted,pagestyle=normal,margin=21mm] Any idea? Thank you very much! \setuplist [chapter,section,subsection] [stopper={.}] Greetings Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table of contents customization
Hi Wolfgang! It works impeccably! Thanks a lot for your help! \setuplist [chapter,section,...] [numbercommand=\DotAfterNumber] \def\DotAfterNumber#1{\doiftext{#1}{#1.}} ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Adding custom key/value pairs
On Tue, Apr 15, 2008 at 5:34 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Hi Wolfgang, On Tue, 15 Apr 2008, Wolfgang Schuster wrote: On Mon, Apr 14, 2008 at 6:11 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Mon, 14 Apr 2008, Taco Hoekwater wrote: Wolfgang Schuster wrote: Why not, I have nothing against a few predefined title pages layouts. Somewhat related: it would be nice if there was some common code for titles (books as well as articles). [snip] Anyway, the maps module contains all the code to do everything. And the same is true for the TUG module. And for quite a few others I have laying around. Lots of duplicate code all over, so a common framework would be great. I've been meaning to write one for a long time, but somehow I never quite get around to actually doing it. Just saying this to let you know that I would really welcome a module with commands like \setuptitle, \definetitle, and \placetitle. I agree with that. It will be really nice to have a module that does a few simple titles (alternate=(a|b|c), etc.) For one of my personal modules, I was following something along the lines of the maps module. But I find Wolfgang's solution on the wiki to be more ConTeXtish than what all other modules use. Hi Aditya, could you use a few lines what do you expect from a placetitle/placetitlepage command or a titlepage environment. Some of the things that I use \placetitle for: * Writing academic papers. Currenly, I have a macro that I use like this: \article [title ={...}, author={...}, publication={...},% This just goes to pdf subtitle date={...}, bottom={...}, %text placed at page bottom, %usually current revision number thanks={...}, %placed on the footer of the first page ] \startabstract ... \stopabstract \startkeywords \stopkeywords The abstract environment places a head (Abstract) followed by its content. The formatting depends on whether it is a journal article, or a conference article. keyword also places a head followed by its content. Currently, what I have is that \article places all its contents, and so do abstract and keyword. So, I do not have to store anything. * TUGBoat articles: This uses a style file originally by Hans, which I have modified considerably, but still uses the same interface. This uses \setvariables [tugboat] [title={...}, author={...}, address={...}, email={...}, year={...}, volume={..}, number={...}, page={...}] The title and the author go to the document title. The address and email go at the end of the article. The year, volume, number, and page go to the header and footer of the article. The rest of the article is somethng like \starttext \startArticle \startAbstract \stopAbstract ... \stopArticle \stoptext This structure is the reason I think something like \setuptitle (or \setupdocumenttitle) is needed. * Practex journal, which uses http://wiki.contextgarden.net/Modules/Pracjourn * My Ways which use http://wiki.contextgarden.net/Modules/MyWay * and finally Maps which use http://wiki.contextgarden.net/Modules/Maps Notice that almost all of them so similar things, but in slightly different manner. What I wish for is a common interface, and I really like your idea of \setuptitle. In fact, I think that something like that should be part of the core. I module should be enogh for the start, makes it easier to test without the need to create a new relase or replace one of the core files and to generate a new format file. The module does not need to take care of all the formatting requirements: just provide the interface. For a particular publications, the module for that publication can modify the \placetitle command to do what they want. With this, the user documentation can just say that use \setuptitle[title=...,author=..., date=] %and maybe setups={...} So, we will have a consistent user inteferface for all documents. What should we do with the abstract, did it depend on the document title ... In general, the formatting of the abstract will depend on the kind of the document. Just need something like \definetitlesubstructure% or something more appropriate [abstract] [headtext={Abstract}, headstyle=bold, headcolor=blue, headalign=middle, inbetween=\blank,%between the head and the body style=small, %for the contents color=black, %for the contents ] I would replace headetext with \setuphead[abstract] and the format for the table of content (is this what do you mean with for the content) with \setuplist but should abstract use a own command to place the title \definehead[abstract] or can we use one of the predefined ones (title -- new page or subject -- if you need a abstract in different languages on one page). This should
Re: [NTG-context] chapter setup / table of contents
On Mon, Apr 14, 2008 at 10:06 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: Ahoi! In a volume of proceedings, each chapter has an author and title and sometimes a subtitle. The ToC entry should look like: Author: Title \hfill Page (no indents!) At the moment I've this setup: --- \def\Titel#1#2#3{% author, title, subtitle \page% {\writebetweenlist[chapter]{\placeongrid{\noindent #1:}} \switchtobodyfont[12pt]\noindent #1% \chapter{\noindent #2}% {\ss\bf #3}% \blank[2*big]}% } \setuphead[chapter][page=no, number=no, align= {flushleft,nothyphenated,verytolerant}, style={\ss\bfa}, before={}, after={\blank}] \definecombinedlist[toc][chapter][level=chapter, placehead=no, criterium=all, alternative=b, offset=none] \setupcombinedlist [toc] [partnumber=no] --- Please don't cry, I know it's ugly... ;-) What it does is close, but nood good enough. - Is there a way to use the normal chapter (or any head) mechanism with such feathered titles? - How do I get my special ToC? I've seen in core-lst % \setuplist % [section] % [alternative=MyListItem, %after=\blank, %before=\blank] % % \definelistplacement[MyListItem][none]#1#2#3% % {(#1) (#2) (#3)} Maybe this can help you ? -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter setup / table of contents
Am 2008-04-14 um 22:26 schrieb luigi scarso: I've seen in core-lst % \setuplist % [section] % [alternative=MyListItem, %after=\blank, %before=\blank] % % \definelistplacement[MyListItem][none]#1#2#3% % {(#1) (#2) (#3)} Maybe this can help you ? I guess not - these 3 parameters are AFAIK part no., title and page no., and it's called automatically for the ToC entry, so I don't know how I could replace #2 with author: #2 i.e. alternative in \setuplist is only for defining a different format for the ToC line, not for changing the *content* of it. Probably I must utilize that, too, but it doesn't solve my problem on its own. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter setup / table of contents
a bit of lua code ? \startluacode MyStuff = {} SecCount = 0 SecIndexCount = 0 \stopluacode \definelistplacement[MyListItem][none]#1#2#3{% \ctxlua{SecIndexCount = SecIndexCount +1} %% Do something with %%\ctxlua{tex.sprint(MyStuff[SecIndexCount])} %% } \setuplist[section][alternative=MyListItem, ] \def\SectionHeadCommand#1#2{% \ctxlua{SecCount = SecCount +1} %% Here set MyStuff %% \ctxlua{MyStuff[SecCount] = }% %% } \setuphead[section][command={\SectionHeadCommand}] I guess not - these 3 parameters are AFAIK part no., title and page no., and it's called automatically for the ToC entry, so I don't know how I could replace #2 with author: #2 i.e. alternative in \setuplist is only for defining a different format for the ToC line, not for changing the *content* of it. Probably I must utilize that, too, but it doesn't solve my problem on its own. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Spacing on TOC using alternative a
On Fri, 7 Mar 2008 19:34:22 -0500 John Culleton [EMAIL PROTECTED] wrote: The example on page 15 of the manual shows the title and the page number spaced enough to avoid confusion. When I use similar code the page number is jammed up next to the title. I have tried the text parameter but it has no effect. Here is my code: \setuphead[chapter][head=nomarking,number=no] \setuphead[section][number=no,textcommand=\bf] \setuphead[subsection][number=no] \setuphead[subsubsection][number=no] \setupinteraction[state=start,color=blue] \setuplist[section][alternative=f,style=bold,interaction=sectionnumber] \setuplist[subsection][alternative=f,interaction=no] \setuplist[subsubsection][alternative=a,interaction=all] \setuplist [subsubsection] [alternative=a, interaction=all, pagecommand=\PageNumberDistance] \def\PageNumberDistance#1{\quad#1} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Spacing on TOC using alternative a
The example on page 15 of the manual shows the title and the page number spaced enough to avoid confusion. When I use similar code the page number is jammed up next to the title. I have tried the text parameter but it has no effect. Here is my code: \setuphead[chapter][head=nomarking,number=no] \setuphead[section][number=no,textcommand=\bf] \setuphead[subsection][number=no] \setuphead[subsubsection][number=no] \setupinteraction[state=start,color=blue] \setuplist[section][alternative=f,style=bold,interaction=sectionnumber] \setuplist[subsection][alternative=f,interaction=no] \setuplist[subsubsection][alternative=a,interaction=all] -- John Culleton Resources for every author and publisher: http://wexfordpress.com/tex/shortlist.pdf http://wexfordpress.com/tex/packagers.pdf http://www.creativemindspress.com/newbiefaq.htm http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-ifying Kile
# \processaction # \processallactionsinset \processblocks[names][names] # \processcommacommand # \processcommalist # \processfirstactioninset \processpage[names][yes|no] # \processXMLbuffer # \processXMLelement # \processXMLfile # \processXMLfilegrouped # \product \program[name] # \project # \protect \publication[reference] \quotation{text} \quote{text} \ran{text} # \readfile \ref[t|p|r|s|e][reference] \reference[reference]{text} \referral[options] \referraldate \register[text]{register+register+register} \reservefloat[options][text][references]{text} \reset[names] # \resetlayer \resetmarking[name] \rightaligned{text} \Romannumerals{text} \romannumerals{text} \rotate[settings]{text} # \saveXMLasdata # \saveXMLdata # \saveXMLelement # \sbox \scale[options]{text} # \scratchbox # \scratchcounter # \scratchdimen # \scratchskip \screen \section[references]{text} \seeregister[text]{text}{text+text+text} \selectblocks[names][names][critererium] \selectpaper[options] \selectversion # \setcollector # \setevalue # \setevariables # \setflag # \setfontstrut # \setgvalue # \setgvariables # \setlayer # \setlayerframed # \setlocalhsize # \setstrut \settextvariable[name]{text} \setupalign[options] \setuparranging[options] # \setupattachments \setupbackground[options] \setupbackgrounds[position][position][state][settings] \setupblackrules[options] \setupblank[options] \setupblock[names][options] \setupbodyfont[options] \setupbodyfontenvironment[settings][settings] \setupbottom[settings][settings] \setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber] \setupbuffer[name][options] \setupbuttons[state][settings] \setupcapitals[title=yes|no][sc=yes|no] \setupcaption[name][settings] \setupcaptions[options] \setupclipping[options] \setupcolor[name] \setupcolors[options] \setupcolumns[options] \setupcombinations[options] \setupcombinedlist[name][levels and options] \setupcomment[options] \setupdescriptions[names][options] # \setupencoding \setupenumerations[names][settings] \setupexternalfigures[options] \setupfield[name][label|horizontal|vertical|frame][settings] \setupfields[names][reset|label|horizontal|vertical|frame][options][settings][settings] \setupfillinlines[options] \setupfillinrules[options] \setupfloat[name][options] \setupfloats[options] \setupfloatsplitting[options] # \setupFLOWcharts # \setupFLOWlines # \setupFLOWshapes # \setupfontsynonym \setupfooter[text|margin|edge][options] \setupfootertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber] \setupfootnotedefinition[settings] \setupfootnotes[options] \setupforms[method=HTML|FDF] \setupformulae[options] \setupframed[options] \setupframedtexts[options] \setuphead[sections][options] \setupheader[text|margin|edge][options] \setupheadertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber] \setupheadnumber[section][number|+number|-number] \setupheads[options] \setupheadtext[language code][name=text] \setuphyphenmark[sign=-|--|---|( )|=|/] \setupindentations[names][options] \setupindenting[none|small|medium|big|next|first|normal|odd|even|dimension] \setupinmargin[left|right|number][options] \setupinteraction[options] \setupinteractionbar[options] \setupinteractionscreen[options] \setupinterlinespace[reset|small|medium|auto|big|on|off][options] \setupitemgroup[name][number|each][options][options] \setupitems[options] \setuplabeltext[language code][name=text] \setuplanguage[language code][settings] # \setuplayer \setuplayout[options] \setuplegend[options] \setuplinenumbering[options] \setuplines[options] \setuplinewidth[dimension] \setuplist[names][options] \setupmakeup[name][options] \setupmarginblocks[options] \setupmarginrules[level=number|rulethickness=dimension] \setupmarking[name][options] \setupnarrower[options] \setupnumbering[options] \setupoppositeplacing[options] \setupoutput[names] \setuppagenumber[number][state=start|stop|keep] \setuppagenumbering[options] \setuppagetransitions[options] \setuppalet[name] \setuppaper[options] \setuppapersize[typesetting papersize][printing papersize] \setupparagraphnumbering[options] \setupparagraphs[name][number|each][options] \setuppositioning[options] \setupprofiles[options] \setupprograms[directory=text] \setuppublications[options] \setupquote[options] \setupreferencelist[names][options] \setupreferencing[options] \setupregister[singular][name][options] \setuprotate[options] \setuprule[name][options] # \setups \setupscreens[options] \setupsection[name][name][options] \setupsectionblock[name][options] \setupsorting[name][options] \setupspacing[broad|packed] \setupstrut[yes|no|cap|text] \setupsubpagenumber[options] \setupsymbolset[name] \setupsynchronization[state=start|stop] \setupsynchronizationbar[options] \setupsynonyms[name][options] \setupsystem[options] \setuptab[options] # \setupTABLE \setuptables[options] \setuptabulate[name][options] \setuptext[text|margin|edge][options
Re: [NTG-context] First document — problems with bi b module and layout
] \setuppapersize[a4][a4] % hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter, % sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število \setupsectionblock[frontpart][page=no] \setupsectionblock[bodypart][page=no] \setupsectionblock[appendix][page=no] \setupsectionblock[backpart][page=no] %%% %%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta %%% % da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu \input spec-tst % pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF \setupinteraction [state=start, title={\naslov}, subtitle={\tip}, author={\avtor}, keyword={\tip, \kljucnebesede} ] % ustvari kazalo v PDF \placebookmarks[chapter,section,subsection] %%% %%% kazalo %%% \setupcombinedlist[content][alternative=c] \setuplist[chapter][style=bold,alternative=b,width=1.5em] \setuplist[section][margin=1.5em,width=2em] \setuplist[subsection][margin=3.5em,width=3em] \setuplist[subsubsection][margin=6.5em,width=4em] %%% %%% oblika poglavij ipd. %%% % zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju \setuphead [title] [align=middle, textstyle=\sc, style=\bfd, before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill}, after= { (\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga} \vfill Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje} \crlf Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor} \vfill Ljubljana, \currentdate{} \stopalignment \page } ] % poglavja \setuphead [chapter] [header=empty, textstyle=\sc, style=\bfb, before={\page\noindentation\hairline\blank[line]}, after={\nowhitespace\hairline\blank[4*line]} ] % oddelki \setuphead [section] [page=yes, textstyle=\sc, style=\tfa, align=right, before={\blank[2*line]}, after={\blank[line]} ] % pododdelki \setuphead [subsection] [style=\it, align=right, before={\blank[2*line]}, after={\blank[line]} ] %%% %%% splošna oblika teksta %%% \setupindenting[1.5em] \setupindenting[yes] \setupwhitespace[medium] %%% %%% definicije za citiranje in bibliografijo %%% % da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki \usemodule[bib] \input moja_bibliografija.bbl % splošne nastavitve za citiranje %TODO — predeli ...je sam začasna oblika % \setupcite % [num] % [pubsep={, } % ] \setuppublications [sorttype=cite, refcommand=authoryears,%deluje, ampak je daleč od tega, da bi mi bilo všeč :( numbering=yes, autohang=yes, % monthconversion=Romannumerals, criterium=cite ] \setuppublicationlist [totalnumber=5, author=\normalshortauthor, title=\title ] % splošne nastavitve za bibliografijo %TODO — sploh ustvari!! % zakonodaja %TODO — predeli ...je sam začasna oblika \setuppublicationlayout[zakon]{% \inserttitle{}{. }{}% \insertkratko{(}{) }{}% \insertjournal{}{, }{}% \insertissue{št. }{/}{}% \insertvolume{}{, }{}% \insertspremembe{}{.}{}% } \setuppublicationlayout[clanek]{ \insertauthors{}{}{}% \insertkratko{, }{}{}% \insertjournal{, v: }{}{}% \insertvolume{, }{}{}% \insertpubyear{ (}{)}{}% \insertissue{, }{}{}% \insert } %TODO — prenesi vse kar se le da iz glavnega dokumenta sem %TODO — citiranje (to bo še komplicirano!) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First document — problems with bi b module and layout
Matija Šuklje wrote: Hullo, I'm just making my first real document in ConTeXt and although I'm thinking more and more how this was a great idea. I also decided to simultaneously write an external document/module containing all definitions to fit the But as a newbie, of course, I stumbled upon some beginner's problems: 1. Chapter heading is not like I would expect — I would like to have the line above the chapter as long as the one below it You need a \noindentation in the setuphead command: before={\page\noindentation\hairline\blank[line]}, this is not very obvious, but the \hairline is indented just like a normal paragraph if you don't add the \noidentation. 2. The empty page at the end of the document annoys me and doesn't want to go away. This is a FAQ: Large documents that have front- and backmatters are likely books, and books should have an even number of pages. On a small document (article, letter), you would simply not use the section block commands at all. In any case, from the wiki page http://wiki.contextgarden.net/Empty_page_at_the_end comes this solution/workaround \setupsectionblock[appendix][page=no] 3. The citations won't show any content, neither does the list of publications — I'm clearly doing something very wrong here. What I want is numbered citation with short references at the bottom and full references in the list of publications in the appendices. Here you've hit a number of problems, some of which are in the bib module, not your doing. * the module does not currently support all types of \cite across section block boundaries, and that is why you do not get output from your \cite commands. Solution: none. it is not possible to combine 'short' citation and mainmatter/backmatter/appendices. (this problem is nasty, but quite hard to fix). * the module also has a different problem; this time with your file name (konkurenčnaklavzula_context.tex). One of the internal references the bib module creates attaches the input file name to a reference, and if the document name is not 7-bit ascii this apparently fails. It is something I have never tested. Workaround: only use visible ASCII in your file names (for now, I intend to fix this). * You have to be a bit more careful about the \startpublication arguments: - watch out for extra space characters. The only ones that are ignored are the ones just before a key. - if a value contains equals signs, square brackets, or commas, you have to wrap it in braces. * The \author command inside bbl files takes three arguments: \author{Matija}{}{Šuklje} * monthconversion takes a 'conversion specifier', not a macro name. So you need this instead: \setuppublications[monthconversion=Romannumerals] Finally, if you want to have 'short' keys in the publication list, it makes sense to add a set up like this: \setuppublications[numbering=short,autohang=yes] \setuppublicationlist[samplesize=ZOFVI] After all those changes, fixes, and workarounds, I ended up with the attached files. 4. If I want to include 'pf_ul.tex' and 'moja_bibliografija.bbl' into my user's local modules in Linux, where should I place the link to them? It's a bit annoying to have to place links to them in each directory where I make a new new file that uses them. And clearly, there will be many yet to come! The normal place would be texmf/tex/context/user in one of the texmf directories that is searched by context. You have to re-run maketexlsr after adding files to that directory, and then context should be able to find your files just like it knows where knuth.tex etc. are. Best wishes, Taco %d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske %d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani %c Avtor: Matija Å uklje, [EMAIL PROTECTED], http://matija.suklje.name %c Avtor dovoljuje (in spodbuja) uporabo vsebino tega âdelaâ pod pogoji v licenci GPL. %d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis %d on the Law faculty, University of Ljubljana %c Author: Matija Å uklje, [EMAIL PROTECTED], http://matija.suklje.name %c The author permits (and encourages) the usage of this work under the terms of the GPL licence. %%% %%% sploÅ¡ne definicije dokumenta %%% % jezik, UTF-8 in velikost papirja \mainlanguage[sl] \enableregime[utf8] \setuppapersize[a4][a4] %%% %%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta %%% % da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu \input spec-tst % pobere iz glavnega dokumenta definicije in jih zapiÅ¡e v informacije v PDF \setupinteraction [state=start, title={\naslov}, subtitle={\tip}, author={\avtor}, keyword={\tip, \kljucnebesede} ] % ustvari kazalo v PDF \placebookmarks[chapter,section,subsection] %%% %%% kazalo %%% \setupcombinedlist[content][alternative=c] \setuplist[chapter][style=bold,alternative=b,width=1.5em] \setuplist[section
Re: [NTG-context] First document — problems with bi b module and layout
=galic_vloga, a=Galic, t=annuali, y=2002 ] \title{Vloga sodnika pri spodbujevanju sodnih poravnav} \kratko{Vloga sodnika} \author{Aleš}[A.]{}{Galič} \journal{Zbornik znanstvenih razprav} \issue{63} \pubyear{2002} \stoppublication %%% %%% pravni viri %%% %TODO — zlo grdi hack-i na mestih — nekak morš rešt to :/ \startpublication[ k=SPZ, t=zakon, y=2002, s=SPZ, u=http://www.uradni-list.si/1/objava.jsp?urlid=200287stevilka=4360 ] \title{Stvarnopravni zakonik} \kratko{SPZ} \title_eng{Law of Property Code} \organization{Državni zbor RS} \journal{Ur. l. RS} \volume{2002} \issue{87} \spremembe{18/2007 Skl.US: U-I-70/04-18} \pubyear{2002}\month{10}\day{17}% datum objave \yearfiled{2003}\monthfiled{1}\dayfiled{1} % datum začetka veljave %%% TODO — boljšo definicijo \biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612dhid=32248} \stoppublication%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske %d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani %c Avtor: Matija Šuklje, [EMAIL PROTECTED], http://matija.suklje.name %c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL. %d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis %d on the Law faculty, University of Ljubljana %c Author: Matija Šuklje, [EMAIL PROTECTED], http://matija.suklje.name %c The author permits (and encourages) the usage of this work under the terms of the GPL licence. %%% %%% splošne definicije dokumenta %%% % jezik, UTF-8 in velikost papirja \mainlanguage[sl] \enableregime[utf8] \setuppapersize[a4][a4] % hack, da ni odvečnih praznih strani zadaj. ker, če uporabljaš delitev na front- pa back-matter, % sklepa, da gre za knjigo in zato avtomatično doda strani, da je sodo število \setupsectionblock[frontpart][page=no] \setupsectionblock[bodypart][page=no] \setupsectionblock[appendix][page=no] \setupsectionblock[backpart][page=no] %%% %%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta %%% % da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu \input spec-tst % pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF \setupinteraction [state=start, title={\naslov}, subtitle={\tip}, author={\avtor}, keyword={\tip, \kljucnebesede} ] % ustvari kazalo v PDF \placebookmarks[chapter,section,subsection] %%% %%% kazalo %%% \setupcombinedlist[content][alternative=c] \setuplist[chapter][style=bold,alternative=b,width=1.5em] \setuplist[section][margin=1.5em,width=2em] \setuplist[subsection][margin=3.5em,width=3em] \setuplist[subsubsection][margin=6.5em,width=4em] %%% %%% oblika poglavij ipd. %%% % zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju \setuphead [title] [align=middle, textstyle=\sc, style=\bfd, before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta \vfill}, after= { (\tip) % definiraj v dokumentu — npr. \def\tip{diplomska naloga} \vfill Avtor: \avtor % definiraj v dokumentu — npr. \def\autor{Matija Šuklje} \crlf Mentor: \mentor % definiraj v dokumentu — npr. \def\mentor{preljubi profesor} \vfill Ljubljana, \currentdate{} \stopalignment \page } ] % poglavja \setuphead [chapter] [header=empty, textstyle=\sc, style=\bfb, before={\page\noindentation\hairline\blank[line]}, after={\nowhitespace\hairline\blank[4*line]} ] % oddelki \setuphead [section] [page=yes, textstyle=\sc, style=\tfa, align=right, before={\blank[2*line]}, after={\blank[line]} ] % pododdelki \setuphead [subsection] [style=\it, align=right, before={\blank[2*line]}, after={\blank[line]} ] %%% %%% splošna oblika teksta %%% \setupindenting[1.5em] \setupindenting[yes] \setupwhitespace[medium] %%% %%% definicije za citiranje in bibliografijo %%% % da sploh dela citiranje in bibliografija in ga poišče v zunanji datoteki \usemodule[bib] \input moja_bibliografija.bbl % splošne nastavitve za citiranje %TODO — predeli ...je sam začasna oblika \setuppublications [sorttype=cite, refcommand=key, numbering=yes, monthconversion=Romannumerals ] % splošne nastavitve za bibliografijo %TODO — sploh ustvari!! % zakonodaja %TODO — predeli ...je sam začasna oblika % \setuppublicationlayout[zakon]{ % \inserttitle{\bgroup}{\egroup. }{} % \insertjournal{\bgroup\it}{\egroup, }{} % \insertvolume{}{ }{} % \insertpubyear{(}{) }{} % \insertissue{}{, }{} % \insertday{}{. }{} % \insertmonth{}{. }{} % \insertpages{Str. }{.}{} % } \setupcite[key][] \setuppublicationlayout[clanek]{ \insertauthors{}{ }{}% \insertkratko{, }{}{}% \insertjournal{, v: }{}{}% \insertvolume{, }{}{}% \insertpubyear{ (}{)}{}% \insertissue{, }{}{}% } %TODO — prenesi vse kar se le da iz glavnega dokumenta sem %TODO — citiranje (to bo še
[NTG-context] First document — problems with bi b module and layout
Hullo, I'm just making my first real document in ConTeXt and although I'm thinking more and more how this was a great idea. I also decided to simultaneously write an external document/module containing all definitions to fit the But as a newbie, of course, I stumbled upon some beginner's problems: 1. Chapter heading is not like I would expect — I would like to have the line above the chapter as long as the one below it 2. The empty page at the end of the document annoys me and doesn't want to go away. 3. The citations won't show any content, neither does the list of publications — I'm clearly doing something very wrong here. What I want is numbered citation with short references at the bottom and full references in the list of publications in the appendices. 4. If I want to include 'pf_ul.tex' and 'moja_bibliografija.bbl' into my user's local modules in Linux, where should I place the link to them? It's a bit annoying to have to place links to them in each directory where I make a new new file that uses them. And clearly, there will be many yet to come! If anything I just wrote doesn't make much sense, I excuse myself ...I'm tired, tried to learn and hack together this definitions the whole day today and didn't sleep much yesterday either. Cheers, Matija -- gsm: +386 41 849 552 e-mail: [EMAIL PROTECTED] www: http://matija.suklje.name aim: hookofsilver icq: 110183360 jabber/g-talk: [EMAIL PROTECTED] msn: [EMAIL PROTECTED] yahoo: matija_suklje % za pravila PF UL \input pf_ul \def\avtor{Matija Šuklje} \def\mentor{as. mag. Luka Tičar} \def\tip{seminarska naloga} \def\naslov{Konkurenčna klavzula v delovni pogodbi} \def\kljucnebesede{delovno pravo} % moji lastni linki \useURL[author-email][mailto:[EMAIL PROTECTED]@rutka.net] \useURL[homepage][http://matija.suklje.name][][matija.suklje.name] \starttext \startstandardmakeup \title{\naslov} \stopstandardmakeup \startfrontmatter \setuppagenumbering[left={stran },conversion=Romannumerals,location=right] \placecontent \section[uvod]{Uvod} \subsection[povzetek]{Povzetek} \input knuth {\en % začasno spremeni jezik v angleščino \subsection[summary]{Summary} \input knuth } \stopfrontmatter \startbodymatter \setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right] \chapter{Kr en poglavje} \section[1]{Prvo poglavje} \input tufte \subsection[1.1]{podpoglavje} \input knuth tuki citiram, veš? \cite[ZOFVI] \cite[neki] \stopbodymatter \startappendices \placepublications \stopappendices \stoptext\startpublication[ k=ZOFVI,% key, po katerem citiraš t=zakon,% tip publikacije je zakon y=1996, s=ZOFVI,% short citation u=http://www.uradni-list.si/1/ulonline.jsp?urlid=199612dhid=32248, ] \title{Zakon o organizaciji in financiranju vzgoje in izobraževanja} \journal{Uradni list Republike Slovenije} \volume{35} \issue{12} \pubyear{1996}\month{2}\day{29} \biburl{http://www.uradni-list.si/1/ulonline.jsp?urlid=199612dhid=32248} \pages{841-862} \stoppublication \startpublication[ a={Matija Šuklje} k=neki, t=test, y=2007, s=Neki ] \title{Neki nekastga} \author{Matija Šuklje} \stoppublication%d Tu so ConTeXt definicije oblike ipd., kot so predpisane za seminarske %d in diplomske naloge na Pravni fakulteti Univerze v Ljubljani %c Avtor: Matija Šuklje, [EMAIL PROTECTED], http://matija.suklje.name %c Avtor dovoljuje (in spodbuja) uporabo vsebino tega „dela“ pod pogoji v licenci GPL. %d This are the ConTeXt definitions of layout etc. as perscribed for writing a thesis %d on the Law faculty, University of Ljubljana %c Author: Matija Šuklje, [EMAIL PROTECTED], http://matija.suklje.name %c The author permits (and encourages) the usage of this work under the terms of the GPL licence. %%% %%% splošne definicije dokumenta %%% % jezik, UTF-8 in velikost papirja \mainlanguage[sl] \enableregime[utf8] \setuppapersize[a4][a4] %%% %%% za informacije v PDF, pobere podatke iz definicij glavnega dokumenta %%% % da dela UTF-8 tudi v PDF kazalu in informacijah o dokumentu \input spec-tst % pobere iz glavnega dokumenta definicije in jih zapiše v informacije v PDF \setupinteraction [state=start, title={\naslov}, subtitle={\tip}, author={\avtor}, keyword={\tip, \kljucnebesede} ] % ustvari kazalo v PDF \placebookmarks[chapter,section,subsection] %%% %%% kazalo %%% \setupcombinedlist[content][alternative=c] \setuplist[chapter][style=bold,alternative=b,width=1.5em] \setuplist[section][margin=1.5em,width=2em] \setuplist[subsection][margin=3.5em,width=3em] \setuplist[subsubsection][margin=6.5em,width=4em] %%% %%% oblika poglavij ipd. %%% % zgenerira okoli naslova prvo stran na podlagi definicij iz glavnega dokumenta in datuma ob generiranju \setuphead [title] [align=middle, textstyle=\sc, style=\bfd, before={\startalignment[middle] Univerza v Ljubljani \crlf Pravna fakulteta
Re: [NTG-context] page numbers in Table of Contents, mismatch
On Dec 24, 2007, at 3:22 AM, Wolfgang Schuster wrote: On Wed, 19 Dec 2007 02:06:12 +0900 Saji N Hameed [EMAIL PROTECTED] wrote: Dear ConText gurus, I am faced with a new problem with the page numbering in the Table of Contents. In the appendices, I use: \setuppagenumbering [way=bychapter, chapternumber=yes, numberseparator=-] to get page numbers like A-15, B-24 ... etc However, the page numbers associated with Appendix 1 in the Table of Contents is like 1 Introduction 11 1.1 Goals of Research 11 1.2 Necessity of Research 11 A Real-time Monitoring of Intraseasonal Variations 15 B Drought Monitoring Based on Standardized Precipitation Index 24 I am wondering if there is a way to get ConText to write my TOC as: A Real-time Monitoring of Intraseasonal Variations A-15 B Drought Monitoring Based on Standardized Precipitation Index B-24 My document is structured as follows: \input layout \starttext \startfrontmatter \input HomePage \stopfrontmatter \placelist[chapter,section] \startbodymatter \input Chapter1 \input Chapter2 \stopbodymatter \startappendices \input Appendix1 \input Appendix2 \stopappendices \stoptext Thanks as always, saji Please send next time a working example. \usemodule[visual] \def\doMyCommand#1--#2-#3-#4--#5]\relax{{\convertnumber{A}{#3}-#5}} \def\MyCommand#1{\expandafter\doMyCommand#1\relax} \startsectionblockenvironment[appendix] \setuppagenumbering [way=bychapter, chapternumber=yes, numberseparator=-] %\setuplist[section][state=stop] \writebetweenlist[chapter]{\setuplist[chapter] [chapternumber=yes,pagecommand=\MyCommand]} \stopsectionblockenvironment \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \dorecurse{4} {\chapter{\fakewords{5}{10}} \dorecurse{4} {\section{\fakewords{5}{10}} \dorecurse{2}{\fakewords{100}{150}\par}}} \stopbodymatter \startappendices \dorecurse{4} {\chapter{\fakewords{5}{10}} \dorecurse{4} {\section{\fakewords{5}{10}} \dorecurse{3}{\fakewords{40}{80 \stopappendices \stoptext This is the best solution I found, it is a little bit ugly (llok at the ] in \doMyCommand) but the only working solution. Merry Christmas. Wolfgang Dear Wolfgang, Thanks as always. Wish you a Merry Christmas and a Happy 2008, saji __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page numbers in Table of Contents, mismatch
On Wed, 19 Dec 2007 02:06:12 +0900 Saji N Hameed [EMAIL PROTECTED] wrote: Dear ConText gurus, I am faced with a new problem with the page numbering in the Table of Contents. In the appendices, I use: \setuppagenumbering [way=bychapter, chapternumber=yes, numberseparator=-] to get page numbers like A-15, B-24 ... etc However, the page numbers associated with Appendix 1 in the Table of Contents is like 1 Introduction 11 1.1 Goals of Research 11 1.2 Necessity of Research 11 A Real-time Monitoring of Intraseasonal Variations 15 B Drought Monitoring Based on Standardized Precipitation Index 24 I am wondering if there is a way to get ConText to write my TOC as: A Real-time Monitoring of Intraseasonal Variations A-15 B Drought Monitoring Based on Standardized Precipitation Index B-24 My document is structured as follows: \input layout \starttext \startfrontmatter \input HomePage \stopfrontmatter \placelist[chapter,section] \startbodymatter \input Chapter1 \input Chapter2 \stopbodymatter \startappendices \input Appendix1 \input Appendix2 \stopappendices \stoptext Thanks as always, saji Please send next time a working example. \usemodule[visual] \def\doMyCommand#1--#2-#3-#4--#5]\relax{{\convertnumber{A}{#3}-#5}} \def\MyCommand#1{\expandafter\doMyCommand#1\relax} \startsectionblockenvironment[appendix] \setuppagenumbering [way=bychapter, chapternumber=yes, numberseparator=-] %\setuplist[section][state=stop] \writebetweenlist[chapter]{\setuplist[chapter] [chapternumber=yes,pagecommand=\MyCommand]} \stopsectionblockenvironment \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \dorecurse{4} {\chapter{\fakewords{5}{10}} \dorecurse{4} {\section{\fakewords{5}{10}} \dorecurse{2}{\fakewords{100}{150}\par}}} \stopbodymatter \startappendices \dorecurse{4} {\chapter{\fakewords{5}{10}} \dorecurse{4} {\section{\fakewords{5}{10}} \dorecurse{3}{\fakewords{40}{80 \stopappendices \stoptext This is the best solution I found, it is a little bit ugly (llok at the ] in \doMyCommand) but the only working solution. Merry Christmas. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Customising Table of Contents
2007/12/17, Saji N. Hameed [EMAIL PROTECTED]: Dear All, Sorry this may be a trivial issue. The document I am preparing has two parts - a main one and appendices. In the table of contents (toc), I want to list chapter names and section names for the main part. However for the appendices, I want to list only the chapter names. I would appreciate any advice on how to achieve this. The toc should look like 1. Chapter 1 1.1 section 1 2. Chapter 2 2.1 section 2.2 section A. Appendix 1 B. Appendix 2 C. Appendix 3 Thanks in advance, saji -- Saji N. Hameed \startsectionblockenvironment[appendix] \setuplist[section][state=stop] \stopsectionblockenvironment \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Test} \section{Test} \stopbodymatter \startappendices \chapter{Test} \section{Test} \stopappendices \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to change 'figure 1.1' to '?? 1.1'
I am sorry that there is a mistake in the previous mail that I sent. On Dec 11, 2007, at 9:51 AM, Jeong Dalyoung wrote: methods give me more choices. Then the \completecontent and \completeindex follows the above setup of chapters. My question was how to make the head title setup of contents and of indices free from the chapter setup? Now, I find that the prefix{(a character) (chapter no) (a character)} can be suppressed using prefix=no parameter in \setupcombinedlist for contents and indices. I may do a wrong test for this. Without the prefix=no, \comletecontent has no prefix. But \completeindex has chapter no and it is not suppressed even the commnad \setuplist[index][prefix=no]. I am sorry to list wrong result. Thank you for reading, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to change 'figure 1.1' to '?? 1.1'
2007/12/11, Dalyoung Jeong [EMAIL PROTECTED]: I am sorry that there is a mistake in the previous mail that I sent. On Dec 11, 2007, at 9:51 AM, Jeong Dalyoung wrote: methods give me more choices. Then the \completecontent and \completeindex follows the above setup of chapters. My question was how to make the head title setup of contents and of indices free from the chapter setup? Now, I find that the prefix{(a character) (chapter no) (a character)} can be suppressed using prefix=no parameter in \setupcombinedlist for contents and indices. I may do a wrong test for this. Without the prefix=no, \comletecontent has no prefix. But \completeindex has chapter no and it is not suppressed even the commnad \setuplist[index][prefix=no]. I am sorry to list wrong result. Thank you for reading, Best regards, Dalyoung Hi, the difference between completecontent and completeregister is, that the first use \title to place the header and the second use \chapter to place the title and produce therefore a heading number. You can now use ConTeXt's document structure and place completecontent between \start/\stopbackmatter or you can use \title in combination \placeindex, this produce a index without a header. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC: alternatives (Was: continous chapter numbering)
On Nov 14, 2007 2:44 AM, Jeff Smith [EMAIL PROTECTED] wrote: On Nov 13, 2007 4:51 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: % continue chapter numberind over parts \setuphead[part][resetnumber=no] Thanks, that was simple in the end... Now, a real TOC question/problem. Reading through old posts and docs, I remain unconvinced as to what is the best solution between creating my own lists or customizing the standard Alternatives. But even then, is the latter possible? Yes with \setuplist . For example I have used this \def\PartCommand#1#2#3{% \framed[width=broad, frame=off, align={right,lohi}]{\bfd #2\quad#3}} \setuplist[part] [alternative=none, partnumber=no, before={\blank[1em]}, command={\PartCommand},] -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC: alternatives (Was: continous chapter numbering)
2007/11/14, Jeff Smith [EMAIL PROTECTED]: On Nov 13, 2007 4:51 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: % continue chapter numberind over parts \setuphead[part][resetnumber=no] Thanks, that was simple in the end... Now, a real TOC question/problem. Reading through old posts and docs, I remain unconvinced as to what is the best solution between creating my own lists or customizing the standard Alternatives. But even then, is the latter possible? I only need to modify two slight details with alternative c (or b, not sure yet if I use the dots or not). When creating my own lists, I try to emulate alternative c but I still am not satisfied with what I come up with. First off, I don't want the chapter/section numbers to align on the left, I want them to indent with the text. Second, I don't want the chapter number in my section numberings. So, instead of the following (here I don't bother with the page numbers) : IChapter One I-1 First Section I-1.1 First Subsection I-1.2 Second Subsection I-2 Section Section IIChapter Two II-1First section II-1.1 First subsection II-2.1 Section subsection I'd like to have: I. Chapter One 1. First Section 1.1. First Subsection 1.2. Second Subsection 2. Section Section II. Chapter Two 1. First section 1.1. First subsection 2.1. Section subsection If I make my own lists, I don't know how to align the page number to the right, like alternative=b/c does, and I can't find how to have a linebreak with single linespacing after an entry (my document doesn't use single linespacing and so it interefered with my TOC explorations). Alternative=b/c does everything I need, minus the two details mentionned above. So, it would seem easier if I could just modify it. Is it possible? \setuppagenumbering[way=bytext,partnumber=no] \setuphead[part][resetnumber=no] \setuphead[part,chapter,section,subsection][stopper={.}] \setuplist[part,chapter,section,subsection][stopper={.}] \setuplist [part,chapter,section,subsection,subsubsection] [partnumber=no] \setuplabeltext[part=] \setuplist[part][width=2em,distance=0pt] \setuplist[chapter][margin=2em] \setuplist[section][margin=4em] \setuplist[subsection][margin=5em] \starttext \completecontent \dorecurse{4} {\part{Part} \dorecurse{4} {\chapter{Chapter} \dorecurse{2}{\section{Section \stoptext For explanations of the example look into core-sec.tex and core-lst.tex. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize a list
Hans van der Meer wrote: It is my intention to place a list inside an itemize, and therefore prepend a \item before every list item. Thus: \startitemize \placelist[Topic][label=no,pagenumber=no,before=\item]}% \stopitemize However this doesn't work but instead gives the following error: ! Missing } inserted. inserted text } to be read again \endgroup \stopitemgroup ...xtindentation \fi \fi \endgroup \doglobal \decrement (\ite... \Topics ...enumber=no,before=\item ]}\stopitemize \def \FirstPage {Topics} l.1 \Topics{Synopsis} ? \doendoflist -\stoppacked \endgroup \Topics ...[label=no,pagenumber=no,before=\item ]} \stopitemize \def \FirstPa... Placing the before=\item in the \setuplist makes no difference. Why? How can I realize the goal: placing the list entries each as an item in an itemized list? these mechanisms interfere you may try \startitemize \placelist[Topic][label=no,pagenumber=no,before=\startitem,after=\stopitem] \stopitemize or hook in a command that does a complete \startitemize[continue] \startitem content \stopitem \stopitemize - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] itemize a list
It is my intention to place a list inside an itemize, and therefore prepend a \item before every list item. Thus: \startitemize \placelist[Topic][label=no,pagenumber=no,before=\item]}% \stopitemize However this doesn't work but instead gives the following error: ! Missing } inserted. inserted text } to be read again \endgroup \stopitemgroup ...xtindentation \fi \fi \endgroup \doglobal \decrement (\ite... \Topics ...enumber=no,before=\item ]}\stopitemize \def \FirstPage {Topics} l.1 \Topics{Synopsis} ? \doendoflist -\stoppacked \endgroup \Topics ...[label=no,pagenumber=no,before=\item ]} \stopitemize \def \FirstPa... Placing the before=\item in the \setuplist makes no difference. Why? How can I realize the goal: placing the list entries each as an item in an itemized list? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize a list
2007/11/5, Hans van der Meer [EMAIL PROTECTED]: It is my intention to place a list inside an itemize, and therefore prepend a \item before every list item. Thus: \startitemize \placelist[Topic][label=no,pagenumber=no,before=\item]}% \stopitemize However this doesn't work but instead gives the following error: ! Missing } inserted. inserted text } to be read again \endgroup \stopitemgroup ...xtindentation \fi \fi \endgroup \doglobal \decrement (\ite... \Topics ...enumber=no,before=\item ]}\stopitemize \def \FirstPage {Topics} l.1 \Topics{Synopsis} ? \doendoflist -\stoppacked \endgroup \Topics ...[label=no,pagenumber=no,before=\item ]} \stopitemize \def \FirstPa... Placing the before=\item in the \setuplist makes no difference. Why? How can I realize the goal: placing the list entries each as an item in an itemized list? Hans van der Meer You can play with the following code, sorry but I have at the moment no time for a better solution. \starttext \def\myitemlist#1#2#3% {\startitemize \item#1\quad#2\hfill#3 \stopitemize} \placelist[section][alternative=command,command=\myitemlist] \dorecurse{30} {\expanded{\section{Section \recurselevel}} \input knuth} \stoptext Greetings, Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Turn off interaction in some TOC levels?
2007/10/22, Wolfgang Schuster [EMAIL PROTECTED]: 2007/10/20, John Culleton [EMAIL PROTECTED]: I want interaction at the subsubsection level but not higher. I have turned off line numbers for section and subsection. However both these levels remain interactive. The whole line is blue. I tried interaction=pagenumber, interaction=sectionnumber, interaction=no, interaction=none, and no interaction parameter at all at these levels. Nevertheless the whole entry remains interactive. some code: \setupcolors[state=start] \setuphead[chapter][head=nomarking,number=no] \setuphead[section][number=no,textcommand=\bf] \setuphead[subsection][number=no] \setuphead[subsubsection][number=no] \setupinteraction[state=start,color=blue] \setuplist[section][alternative=f,style=bold,interaction=sectionnumber] \setuplist[subsection][alternative=f,interaction=no] \setuplist[subsubsection][alternative=a,interaction=all] The good news is that I found a handy way to bookmark just the index in Acrobat Reader. I filched some code from an old Han The Thanh file: \pdfcatalog{/PageMode /UseOutlines} % bookmark window open \newcount\marknumber\marknumber=1 \def\bookmark#1#2{% \pdfdest num \marknumber xyz \pdfoutline goto num \marknumber count #1 {#2} \advance\marknumber by 1} . \bookmark{0}{Index} \placecontent ... The explanation of the format of the \pdfoutline command in the manual wasn't clear to me but the above macro clears it up. -- John Culleton http://wexfordpress.com/tex/shortlist.pdf You use the following code to disable the hyperlinks in your list format, the options for interactive are now all or no. \unprotect \def\dodofixdlistelementEFG#1#2#3#4#5#6#7#8% {\noindent \bgroup \def\makelistelement##1##2% {\doifelse{\listparameter\c!interaction}{##1} % better \doifinsetelse {\setbox0\hbox{#2{\showcontrastlocation\??ia{#8}{##2}}}% \linklisttoelement{#4}{#7}{#8}{\box0}} {#2{##2}}}% \makelistelement\v!all % why not text {\dostartlistattributes\c!style\c!color\empty \ignorespaces\dontconvertfont\setstrut \begstrut \limitatedlistentry{#6}% \endstrut \dostoplistattributes}% \egroup \par \listparameter\c!inbetween} \protect Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Turn off interaction in some TOC levels?
2007/10/20, John Culleton [EMAIL PROTECTED]: I want interaction at the subsubsection level but not higher. I have turned off line numbers for section and subsection. However both these levels remain interactive. The whole line is blue. I tried interaction=pagenumber, interaction=sectionnumber, interaction=no, interaction=none, and no interaction parameter at all at these levels. Nevertheless the whole entry remains interactive. some code: \setupcolors[state=start] \setuphead[chapter][head=nomarking,number=no] \setuphead[section][number=no,textcommand=\bf] \setuphead[subsection][number=no] \setuphead[subsubsection][number=no] \setupinteraction[state=start,color=blue] \setuplist[section][alternative=f,style=bold,interaction=sectionnumber] \setuplist[subsection][alternative=f,interaction=no] \setuplist[subsubsection][alternative=a,interaction=all] The good news is that I found a handy way to bookmark just the index in Acrobat Reader. I filched some code from an old Han The Thanh file: \pdfcatalog{/PageMode /UseOutlines} % bookmark window open \newcount\marknumber\marknumber=1 \def\bookmark#1#2{% \pdfdest num \marknumber xyz \pdfoutline goto num \marknumber count #1 {#2} \advance\marknumber by 1} . \bookmark{0}{Index} \placecontent ... The explanation of the format of the \pdfoutline command in the manual wasn't clear to me but the above macro clears it up. -- John Culleton http://wexfordpress.com/tex/shortlist.pdf Hi John, the hyperlinks are hardcoded in the list alternatives e, f and g. The only to get your desired solution is to write your own list 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Turn off interaction in some TOC levels?
I want interaction at the subsubsection level but not higher. I have turned off line numbers for section and subsection. However both these levels remain interactive. The whole line is blue. I tried interaction=pagenumber, interaction=sectionnumber, interaction=no, interaction=none, and no interaction parameter at all at these levels. Nevertheless the whole entry remains interactive. some code: \setupcolors[state=start] \setuphead[chapter][head=nomarking,number=no] \setuphead[section][number=no,textcommand=\bf] \setuphead[subsection][number=no] \setuphead[subsubsection][number=no] \setupinteraction[state=start,color=blue] \setuplist[section][alternative=f,style=bold,interaction=sectionnumber] \setuplist[subsection][alternative=f,interaction=no] \setuplist[subsubsection][alternative=a,interaction=all] The good news is that I found a handy way to bookmark just the index in Acrobat Reader. I filched some code from an old Han The Thanh file: \pdfcatalog{/PageMode /UseOutlines} % bookmark window open \newcount\marknumber\marknumber=1 \def\bookmark#1#2{% \pdfdest num \marknumber xyz \pdfoutline goto num \marknumber count #1 {#2} \advance\marknumber by 1} . \bookmark{0}{Index} \placecontent ... The explanation of the format of the \pdfoutline command in the manual wasn't clear to me but the above macro clears it up. -- John Culleton http://wexfordpress.com/tex/shortlist.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unnumbered TOC
On 7/24/07, John R. Culleton [EMAIL PROTECTED] wrote: Sections have numbers, subjects etc. don't. What I want is a series of subdividisions (subject, subsubject etc. without visible numbers which nevertheless show up in a chapter table of contents, again without numbers, just page numbers. I tried defining a combined list foo thus: \definelist[subject][alternative=a] \definelist[subsubject][alternative=a] \definelist[subsubsubject][alternative=a] \definecombinedlist[foo] [subject,subsubject,subsubsubject] [level=subsubsubject,criterium=local] but when I state \placelist[foo] ...nothing appears. Should I start all over, replace subjects with sections etc. and then try to suppress the numbering in both places? There is of course an easy answer that I am missing. :( maybe this can help you ? (untested) \def\SectionListCommand#1#2#3{#1 ... #2 ... #3}% \setuplist[section] [alternative=none, before={\blank[0pt]}, after={\blank[0pt]}, sectionnumber=no, partnumber=no, command={\SectionListCommand}] \def\SectionHeadCommand#1#2#3{#1 ::: #2 ::: #3}% \setuphead[section] [command={\SectionHeadCommand}] -- 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC, listalternative d, ragged right, interaction
On 6/29/07, luigi scarso [EMAIL PROTECTED] wrote: Some ideas. I should be able to clean this weekend \unprotect \setvalue{\@@dodolistelement da}{\let\dosomelistelement\dodofixdlistelementDA} \def\listwidth {\listalternativeparameter\c!width} \def\dodofixdlistelementDA#1#2#3#4#5#6% {%%%init of \dodofixdlistelementDA#1#2#3#4#5#6% %\leftskip1em \ifvmode 1 \advance\leftskip\listparameter\c!margin% AANGEPAST \fi \allowbreak% \listparameter\c!before\nobreak% \setupalign[\listparameter\c!align]% \tolerance1% % \def\makelistelement##1##2% {\hskip1sp \doifelse{\listparameter\c!interaction}{##1} {\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}% \linklisttoelement{#2}{#5}{#6}{\box0}}% {\hbox{##2}}}% % \doif{\listparameter\c!interaction}\v!all % not supported %%{\setlistparameter\currentlist\c!interaction\v!sectionnumber}% {\setlistparameter\currentlist\c!interaction\v!all}% % \makelistelement\v!all% {\forgetall \dostartlistattributes\c!style\c!color\empty \!!widthb\hsize \doifelse{\listparameter\c!headnumber}\v!yes {\setbox2\hbox \ifdim\!!widtha\zeropoint to \!!widtha \fi {\makelistelement\v!sectionnumber {\donestedlistattributes\c!numberstyle\c!numbercolor {\listparameter\c!numbercommand{\currentlistsymbol}}% \hfill}}} {\!!widtha\zeropoint \!!widthc\zeropoint \setbox2\hbox{}}% \setbox4\hbox {\doif{\listparameter\c!pagenumber}\v!yes {\doifsomething{#5}% \listwidth is new ; temp hack {\hbox \ifdim\listwidth\zeropoint to \listwidth\fi {\hfill%\listwidth \listalternativeparameter\c!width \makelistelement\v!pagenumber {\donestedlistattributes\c!pagestyle\c!pagecolor {\listparameter\c!pagecommand {\pageprefix\??li\currentlist[#5]% \translatednumber[#5]% }}}% %%\box2\relax \bgroup \donestedlistattributes\c!textstyle\c!textcolor {\let\\=\newlineinlist \dontconvertfont \limitatedlistentry{#4}}% \egroup \ifdim\wd4=\zeropoint\relax % \ifvoid4 \else \nobreak\listfill %\hbox{\box4\listparameter\c!numbercommand{\currentlistsymbol}}\relax \hbox{\box4\listparameter\c!separator}\relax %\box4\relax \relax \fi% \dostoplistattributes% \listparameter\c!after\hskip1sp }} \enableregime[utf] \language[de] \setupinteraction [state=start] \setuplistalternative [a] [command=\hskip.8em] \setupcombinedlist [content] [alternative=a, interaction=all, level=section, partnumber=no] \setuplist [chapter] [after={\blank}, before={\blank}, numberstyle=\tfd, pagestyle=italic, style=\tfa, width=1.75em] \setuplistalternative[da][width=1em,command={\hskip1ex}] \setuplist [section] [alternative=da, headnumber=no, align=left,%right separator={\hskip1ex{\odot}\hskip5pt}, interaction=all, margin=1.75em, pagestyle=italic] \starttext \completecontent \chapter{Einleitung} \section{Ich bin da} \section{So hat alles angefangen} \section{Die Vorbereitungen} \section{Rucksackbestellung} \section{Ist denn schon wieder Weihnachten?} \section{Mein erstes Kaenguru (ein Wallaby)} \section{Abflugtermin steht fest!} \section{Abschiedsparty} \section{Noch 3 Tage} \section{Etappe 1} \section{Etappe 2} \chapter{Sydney} \section{Unser erster Tag in Sydney} \section{Nicht viel Neues} \section{Wohnungssuche} \section{The Royal Easter Show} \section{Am Freitag ziehen wir in unsere neue Wohnung} \section{Einzug in die Wohnung!} \section{Frohe Ostern} \section{Sydney Aquarium} \section{Harbour Explorer Tour} \section{Kakerlaken} \stoptext -- 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC, listalternative d, ragged right, interaction
Some ideas. I should be able to clean this weekend \unprotect \setvalue{\@@dodolistelement da}{\let\dosomelistelement\dodofixdlistelementDA} \def\dodofixdlistelementDA#1#2#3#4#5#6% {%%%init of \dodofixdlistelementDA#1#2#3#4#5#6% \leftskip1em%% temporary \setupalign[\listparameter\c!align]% \tolerance1 % \def\makelistelement##1##2% {\hskip1sp%% temporary \doifelse{\listparameter\c!interaction}{##1} {\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}% \linklisttoelement{#2}{#5}{#6}{\box0}}%{\copy0}}% {\hbox{##2}}}% % \doif{\listparameter\c!interaction}\v!all {\setlistparameter\currentlist\c!interaction\v!all}% % \makelistelement\v!all% {\forgetall \dostartlistattributes\c!style\c!color\empty \!!widthb\hsize \doifelse{\listparameter\c!headnumber}\v!yes {\setbox2\hbox \ifdim\!!widtha\zeropoint to \!!widtha \fi {\makelistelement\v!sectionnumber {\donestedlistattributes\c!numberstyle\c!numbercolor {\listparameter\c!numbercommand{\currentlistsymbol}}% \hfill}}} {\!!widtha\zeropoint \!!widthc\zeropoint \setbox2\hbox{}}% \setbox4\hbox {\doif{\listparameter\c!pagenumber}\v!yes {\doifsomething{#5}% \listwidth is new ; temp hack {\hbox \ifdim\listwidth\zeropoint to \listwidth\fi {\hfill \makelistelement\v!pagenumber {\donestedlistattributes\c!pagestyle\c!pagecolor {\listparameter\c!pagecommand {\pageprefix\??li\currentlist[#5]% \translatednumber[#5]}}}% \box2\relax \bgroup \donestedlistattributes\c!textstyle\c!textcolor {\let\\=\newlineinlist \dontconvertfont \limitatedlistentry{#4}}% \egroup \ifdim\wd4=\zeropoint\relax % \ifvoid4 \else \nobreak%\listfill \box4\relax \relax \fi% \dostoplistattributes} %% no interactions %% #3\nobreak\kern1ex\nobreak% %% \hbox{#4}\nobreak\kern1ex\nobreak% %% {\sl#6}\hskip0.1explus1ex% } \protect %% \language[de] \setupinteraction [state=start] \setuplistalternative [a] [command=\hskip.8em] \setupcombinedlist [content] [alternative=a, interaction=all, level=section, partnumber=no] \setuplist [chapter] [after={\blank}, before={\blank}, numberstyle=\tfd, pagestyle=italic, style=\tfa, width=1.75em] \def\listfill {\hskip.25em\relax}% \def\listskip {0pt}% \def\listwidth {2em}% \def\liststretch{10em} \setuplist [section] [alternative=da,%d, headnumber=no, align=left,%right separator={\hskip1pt plus5pt---\hskip1pt plus5pt}, interaction=all, margin=1.75em, pagestyle=italic] \starttext \completecontent \chapter{Einleitung} \section{Ich bin da} \section{So hat alles angefangen} \section{Die Vorbereitungen} \section{Rucksackbestellung} \section{Ist denn schon wieder Weihnachten?} \section{Mein erstes Kaenguru (ein Wallaby)} \section{Abflugtermin steht fest!} \section{Abschiedsparty} \section{Noch 3 Tage} \section{Etappe 1} \section{Etappe 2} \chapter{Sydney} \section{Unser erster Tag in Sydney} \section{Nicht viel Neues} \section{Wohnungssuche} \section{The Royal Easter Show} \section{Am Freitag ziehen wir in unsere neue Wohnung} \section{Einzug in die Wohnung!} \section{Frohe Ostern} \section{Sydney Aquarium} \section{Harbour Explorer Tour} \section{Kakerlaken} \stoptext -- 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to format the line Table of Contents ?
Does this help? \setupwhitespace[medium] \setupindenting[medium,yes] \definehead[TocHead][chapter] \setuphead [TocHead] [number=no, incrementnumber=no, before=\blank, after=\blank] \definecombinedlist [content] [part, chapter,section,subsection, subsubsubsection,subsubsubsubsection] [level=subsubsubsubsection, criterium=local] \def\PageCommand#1{Page #1} \setuplist [chapter] [before=\blank, after=\blank, style=bold, pagecommand=\PageCommand] \setuplist [section] [pagecommand=\PageCommand, alternative=c] \starttext \TocHead{Table of Contents} \placecontent \chapter{New Chapter} \input knuth \dorecurse{5}{\expanded{\section{Section \recurselevel}} \input knuth} \stoptext On Jun 5, 2007, at 5:57 AM, Steffen Wolfrum wrote: Hi, maybe just a detail, but it never was really clear to me: To change the actual text of TOC's heading I use ... \setupheadtext [de] [content=Inhaltsverzeichnis] But how do I manually change the formatting (font, spaces etc.) for this line? 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC, listalternative d, ragged right, interaction
On 5/30/07, luigi scarso [EMAIL PROTECTED] wrote: On 5/29/07, luigi scarso [EMAIL PROTECTED] wrote: On 5/28/07, Daniel Schömer [EMAIL PROTECTED] wrote: Hi, I'm trying to alter the formatting of the table of contents for a document of chapters and sections. I will give it a look. Something to play with . \setuplist [section] [alternative=MyListItem, after=\blank, before=\blank] \definelistplacement[MyListItem][none]#1#2#3% {(#1) (#2) (#3)} (from core-lst.tex) Still working on this. -- 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page break handle in TOC
Horacio Suarez wrote: Hello is there a way to handle page breaks in a TOC? I have Part chapter (author) section so some point in the text \writebetweenlist[section]{\page] of with \setuplist[section][after=\page] etc - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page break handle in TOC
Thankyou very much. Very nice. From: Hans Hagen [EMAIL PROTECTED] Reply-To: mailing list for ConTeXt users ntg-context@ntg.nl To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] page break handle in TOC Date: Sat, 02 Jun 2007 22:16:46 +0200 Horacio Suarez wrote: Hello is there a way to handle page breaks in a TOC? I have Part chapter (author) section so some point in the text \writebetweenlist[section]{\page] of with \setuplist[section][after=\page] etc - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC, listalternative d, ragged right, interaction
On 5/29/07, luigi scarso [EMAIL PROTECTED] wrote: On 5/28/07, Daniel Schömer [EMAIL PROTECTED] wrote: Hi, I'm trying to alter the formatting of the table of contents for a document of chapters and sections. I will give it a look. Something to play with . \setuplist [section] [alternative=MyListItem, after=\blank, before=\blank] \definelistplacement[MyListItem][none]#1#2#3% {(#1) (#2) (#3)} (from core-lst.tex) -- 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TOC, listalternative d, ragged right, interaction
Hi, I'm trying to alter the formatting of the table of contents for a document of chapters and sections. After searching the ConTeXt manuals, source and the list archive, I've only four more things I'd like to change. This is where I ask for your help. My current setup (for the table of contents): | \setupinteraction [state=start] | \setuplistalternative [a] [command=\hskip.8em] | \setupcombinedlist [content] [alternative=a, interaction=all, | level=section, partnumber=no] | \setuplist [chapter] [after=\blank, before=\blank, | numberstyle=\tfd, pagestyle=italic, style=\tfa, | width=1.75em] | \setuplist [section] [alternative=d, headnumber=no, | interaction=pagenumber, margin=1.75em, | pagestyle=italic] This produces a table of contents like that: | 1 Chapter One 1 |Section A 1 Section B 2 Section C 3 Sec- |tion D 5 Section E 12 Here are my questions: (2 to 4 are of lower priority for me) 1. How can I setup the toc to get the sections (or listalternative d) to be set ragged right? 2. Is it possible to insert text between the section-pagenumber and the following section-text? (Section A 1 -- Section B 2 -- Section C 3) ^^ ^^ 3. I can't alter the distance between section-text and pagenumber. Changing the command option for listalternative a does it for chapters. But this doesn't work for listalternative d. 4. Can I get interaction=all for listalternative d?. Only interaction=pagenumber produces interaction. If I set interaction to all or text, I don't get interaction for the sections. I'm using ConTeXt 2007.04.17 with pdfTeXk 3.141592-1.40.3 from TeXlive 2007 on Gentoo/Linux. Some kind of a minimal example is attached. Daniel -- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. (Dick Brandon cited in gawk.info) % -*- mode: ConTeXt; -*- \setupinteraction [state=start] \setuplistalternative [a] [command=\hskip.8em] \setupcombinedlist [content] [alternative=a, interaction=all, level=section, partnumber=no] \setuplist [chapter] [after=\blank, before=\blank, numberstyle=\tfd, pagestyle=italic, style=\tfa, width=1.75em] \setuplist [section] [alternative=d, headnumber=no, interaction=pagenumber, margin=1.75em, pagestyle=italic] \starttext \completecontent \chapter{Einleitung} \section{Ich bin da} \section{So hat alles angefangen} \section{Die Vorbereitungen} \section{Rucksackbestellung} \section{Ist denn schon wieder Weihnachten?} \section{Mein erstes Kaenguru (ein Wallaby)} \section{Abflugtermin steht fest!} \section{Abschiedsparty} \section{Noch 3 Tage} \section{Etappe 1} \section{Etappe 2} \chapter{Sydney} \section{Unser erster Tag in Sydney} \section{Nicht viel Neues} \section{Wohnungssuche} \section{The Royal Easter Show} \section{Am Freitag ziehen wir in unsere neue Wohnung} \section{Einzug in die Wohnung!} \section{Frohe Ostern} \section{Sydney Aquarium} \section{Harbour Explorer Tour} \section{Kakerlaken} \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Change the size of publication list
On Thu, 12 Apr 2007, Taco Hoekwater wrote: Aditya Mahajan wrote: Hi, I want to change the font size of the list of publications to \small. This needs to be done in the style file. But I could not find any option to do this in the bib module. What is the correct way to do this? Good question. Looks like I inadvertedly removed the beforeafter functionality at some point :-( For the moment, I am abusing initializepublist, mainly because it resets some options in \setuplist[pub] and I am against a hard deadline. This is my bib setup for IEEE style (well atleast in terms of font and spacing, the actual formatting of enteries will have to wait) bibliography. There is some spurious white space between enteries, and as a temp hack, I use \vskip -0.5\baselineskip. I will debug more carefully over the weekend and send you a bibl-ieee.tex \setuppublications [alternative=num,monthconversion=month,sorttype=bib] \setupbibtex [sort=author] \setuppublicationlist [maybeyear=off] \setuppublicationlist [numbercommand=\withbrackets,margin=1em,distance=1em,width=fit] \setuppublicationlist [before={\vskip -0.5\baselineskip},after=,inbetween=] \setupcite [num] [compress=yes] \def\initializepubslist {\switchtobodyfont[small] \setupinterlinespace \setupwhitespace[none] \vskip 0.5\baselineskip} % Defined in bibl-num.tex \def\withbrackets#1{[#1]} \unprotect \def\doverysimplebibnumref#1#2% {\refsep \ifcase#1\relax \unknownreference{#1}\else \def\tempa{#2}\ifx\empty\tempa#1\else#1\docommaordash{#1}{#2}#2\fi \fi} \def\docommaordash#1#2% {\doifelse{\the\numexpr#1+1-#2\relax}{0} {\bibalternative\c!pubsep} {\bibalternative\c!inbetween}} \protect Aditya ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Equivalent to \settowidth
From: Hans Hagen [EMAIL PROTECTED] Wolfgang Schuster wrote: 2007/3/14, Robin Kirkham [EMAIL PROTECTED]: Is there a ConTeXt equivalent to LaTeX \settowidth{}, or better still some macro I can do things like \setupsomething[ ... width={\widthof{\bf sometext\emspace}}, ...] \def\setwidthof#1\to#2% {\bgroup \setbox\scratchbox\hbox{#1}% \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}} Thanks Wolfgang, Chen and Hans for your responses. I used Hans' one ... it seems to work. I'm actually trying to indent tables of contents by level. I want each indent to match the start of the heading text of the previous level, i.e., 1 Chapter 1.1 Section 1.1.1 Subsection 1.1.2 Subsection ... Title in other words, the indent is not quite a fixed width per level. The following complete example sort of does what I want (using Hans' \setwidthof) but it will fail when the section numbers have more digits than I have allowed for. I have a feeling I should be using \setupcombinedlist[content] [distance=1em] or something, but that puts an em space in front of unnumbered chapters (titles) as well. What I have done seems very ugly, surely there is a proper way? Robin % widthof macro from Hans \def\setwidthof#1\to#2% {\bgroup \setbox\scratchbox\hbox{#1}% \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}} \setupcombinedlist[content][ alternative=c, aligntitle=yes] \setuplist[chapter][ alternative=b, style=bold] % calculate widths of numbers \setwidthof{\bf 9\emspace}\to\WDA \setwidthof{9.9\emspace}\to\WDB \setwidthof{9.9.9\emspace}\to\WDC \setwidthof{9.9.9.9\emspace}\to\WDD % calculate margins \setwidthof{{\bf 9\emspace}}\to\MAB \setwidthof{{\bf 9\emspace}9.9\emspace}\to\MAC \setwidthof{{\bf 9\emspace}9.9\emspace 9.9.9\emspace}\to\MAD \setuplist[chapter] [margin=0em, width=\WDA] \setuplist[section] [margin=\MAB, width=\WDB] \setuplist[subsection] [margin=\MAC, width=\WDC] \setuplist[subsubsection] [margin=\MAD, width=\WDD] \starttext \completecontent[criterium=all] \page \startfrontmatter \chapter{Unnumbered Chapter} \stopfrontmatter \startbodymatter \chapter{Chapter} \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \subsubsection{Subsubsection} \chapter{Chapter} \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \chapter{Chapter} \stopbodymatter \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] An Index problem (repost II)
luigi scarso wrote: I have the following \starttext %%\placemaincontent \chapter{AAA} \section{Hause one} Foo one \page \section{Hause two} Foo two \page \section{Hause three} Foo three \page \section{Hause four} Foo four\page \section{Dog boo} Koo \page \section{Dog foo} Boo \page \section{Money ba} Boo \page \section{Mail bee} Ugh \page \stoptext In main content I should like to have \bf{AAA} %% no problem here \bf{HAUSE} one . page x Hause two ..page x Hause threepage x Hause four ..page x \bf{DOG} boo ...page x Dog foo.page x \bf{MONEY} ba.page x \bf{MAIL} bee.page x ie, the very first word in bold face and upper case, the following in normal face if and only of the very first word was equal to the first word of actual item (I know, it's strange). \let\LastSectionEntry\empty \def\ChapterEntry#1% {\global\let\LastSectionEntry\empty #1} \def\SectionEntry#1% {\splitstring#1\at{ }\to\PartA\and\PartB \doifelse\PartA\LastSectionEntry {#1} {\global\let\LastSectionEntry\PartA {\bf\PartA} \PartB}} \setuplist[chapter][style=bold,textcommand=\ChapterEntry] \setuplist[section][textcommand=\SectionEntry] \starttext \placelist[chapter,section] \chapter{AAA} \section{Hause one} Foo one \page \section{Hause two} Foo two \page \section{Hause three} Foo three \page \section{Hause four} Foo four\page \section{Dog boo} Koo \page \section{Dog foo} Boo \page \section{Money ba} Boo \page \section{Mail bee} Ugh \page \chapter{BBB} \section{Mail bee} Ugh \page \section{Mail bee} Ugh \page \section{Mail bee} Ugh \page \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] An Index problem (repost)
On 3/6/07, Taco Hoekwater [EMAIL PROTECTED] wrote: Hi Luigi, Sorry, no time right now for an elaborate example. luigi scarso wrote: ie, the very first word in bold face and upper case, the following in normal face if and only of the very first word was equal to the first word of actual item (I know, it's strange). I would propose you create your own combined list (\definecombinedlist) and use that instead of the TOC. You have to write the items to that list explicitly then, but it would be reasonably straightforward. Another option is to create a dummy macro that you redefine where it is needed. \unexpanded \def\tocbf#1{{\bf #1}} vs \unexpanded \def\tocbf#1{#} and \section{\tocbf{Bold} ..} Best, Taco OK. \def\SectionCommand#1#2#3{% %% something like this ?? %% (check for #1) %% if #1 == 1 %% then %% put bold+CAP #2 %% store #2 in LastSecTitle %% else %% if #2 == LastSecTile %% then %% put normal #2 %% else %% put bold+CAP #2 %% store #2 in LastSecTitle %% }% \setuplist[section] [alternative=none, sectionnumber=no, partnumber=no, command={\SectionCommand}] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] single spaced list items within a double spaced document
To whom it may concern, I need to have multiline entries in lists (e.g., Tables of Contents, Lists of Figures etc.) that are single spaced within a document that is double spaced. I have tried using \setupinterlinespacing commands as arguments to the attributes textstyle or textcommand of \setuplist. This does not work, probably for obvious reasons. So, I'm wondering if anyone has encountered this problem, or knows of a simple solution. Thank you in advance. Andrew ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Spacing of page numbers in list
Greetings all, I'm having a devil of a time trying to figure out how to control (increase) the space between the name of each part/chapter/section and its page number in a list generated by the following example. I've tried (I believe) every option in the \setuplist grimoire... but obviously I have not! Any clues? Best, David \setuplist [part] [style={\scbf},label=no,pagestyle=bf,pagenumber=no] \setuplist [chapter] [style={\sb},distance=-0.5em] \setuplist [section] [pagestyle={\tf},margin=0em,distance=-.5em] \setuplist [subsection] [style=it,pagestyle={\tf},margin=2em] \setupcombinedlist [content] [alternative=a, aligntitle=yes, width=2.5em,sectionnumber=no,partnumber=no] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Subpagenumbering...
Good afternoon, Currently I use ConTeXt ver: 2006.11.16 12:02 MK II fmt: 2006.11.16 int: english/english While preparing a manual I run into the following problem: The document has the following structure: part,chapter,section The TOC is placed in a separate part. Unfortunately the subpagenumbers won't show the required result i.e. the subpages of the first actual document are included in the first part, the TOC. I can't figure out, why this happens. Please try the included sample. Any hint is appreciated. Willi \setupsubpagenumber[way=bychapter,state=start] \setupheadertexts[Pagina: \hfill \subpagenumber~van \nofsubpages][] \setuplist[part][sectionnumber=yes,pagenumber=no,placehead=yes] \starttext \part{Contents} \placecontent[criterium=all] \part{General} \chapter{Introduction} Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt \TeX\ significantly. If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived why they were important. But a system cannot be successful if it is too strongly influenced by a single person. Once the initial design is complete and fairly robust, the real test begins as people with many different viewpoints undertake their own experiments. \chapter{General description} \dorecurse{3}{% \section{Tufte} We thrive in information||thick worlds because of our marvelous and everyday capacity to select, edit, single out, structure, highlight, group, pair, merge, harmonize, synthesize, focus, organize, condense, reduce, boil down, choose, categorize, catalog, classify, list, abstract, scan, look into, idealize, isolate, discriminate, distinguish, screen, pigeonhole, pick over, sort, integrate, blend, inspect, filter, lump, skip, smooth, chunk, average, approximate, cluster, aggregate, outline, summarize, itemize, review, dip into, flip through, browse, glance into, leaf through, skim, refine, enumerate, glean, synopsize, winnow the wheat from the chaff and separate the sheep from the goats.} \dorecurse{3}{% \section{Ward} The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old|-|age patient who smokes many packs of cigarettes per day |.| and we humans are the cigarettes.} \part{Workinstructions} \chapter{Preparation} \dorecurse{3}{% \section{Lorem ipsum} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut venenatis, ipsum a ultricies molestie, arcu quam mollis arcu, id facilisis dui justo nec purus. Vivamus vitae est a dolor consequat pellentesque. Nam consequat ligula hendrerit turpis. Fusce pharetra velit sed lacus. Pellentesque enim. Praesent vitae elit et eros sagittis commodo. Duis convallis, diam quis lobortis euismod, sapien arcu volutpat mi, facilisis vulputate odio urna nec arcu. Proin felis. Etiam pretium volutpat leo. In pede. Aliquam dolor lorem, faucibus sit amet, volutpat vitae, molestie ac, urna. In tincidunt. Nam vehicula. Sed dui nibh, pulvinar sit amet, pharetra non, rhoncus eget, nunc. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Praesent risus. Curabitur facilisis, orci luctus imperdiet egestas, nisl orci congue libero, ut tempus nisl est a risus. Aliquam posuere scelerisque ipsum. Sed eget risus. Cras blandit risus in lorem.} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page number alignment in \placecontent
Hi again, you were right, Maarten-Jan. The problem was the following: \setupindenting[medium] I like the first line of each paragraph to be indented, so I put the above command in my general config file. The undesired effect is that it also indented the index lines, shifting them to the right. That's the reason why the page numbers appeared in the right margin (is this a bug? I mean, should ConTeXt break the index line instead of put the number in the margin?). Now I have moved the \setupindenting command to the body section of my document, and the \setuplist options you wrote in the previous e-mail work ok (I forgot the criterium=all in the \setupcombinedlist command). Thanks for your help, Ángel Luis From: M.J. Kallen [EMAIL PROTECTED] Subject: Re: [NTG-context] ntg-context Digest, Vol 28, Issue 76 Angel-Luis, I'm not sure why you do not get a table of contents, maybe try to add criterium=all to the \setupcombinedlist command and see if that works? Also, you have used \placecontent, which you can use instead of \completecontent. I've tried your settings using the live ConTeXt on the wiki and it works without the page numbers in the margin. Looking at your sample file, the lines with the sections are somehow shifted to the right. It is not possible to see why this is happening. Are you shure you have not added something somewhere to change the appearance of the list? Maarten-Jan - Original Message From: ?ngel Luis Garc?a Fern?ndez [EMAIL PROTECTED] To: ntg-context@ntg.nl Sent: Monday, October 30, 2006 10:16:24 AM I tried that, but then nothing appears (empty index) Angel-Luis Hi Angel-Luis, looks like you want a LaTeX-like table of contents. I achieved what I think you want to achieve as well, using the following commands: % setup table of contents \setupcombinedlist[content][alternative=c,level=section] % margins, widths and distances are setup such that section lines line up with chapter text (change to your liking!) \setuplist[chapter][margin=0mm,width=6mm,distance=2mm,style=bold,aligntit le =yes,before=\blank] \setuplist[section][margin=8mm,width=6mm,distance=2mm] % place the following in the relevant location \completecontent Hope this ends up looking like you want it to! Maarten-Jan - Original Message From: ?ngel Luis Garc?a Fern?ndez [EMAIL PROTECTED] To: ntg-context@ntg.nl Sent: Friday, October 27, 2006 10:16:21 PM Subject: [NTG-context] Page number alignment in \placecontent Hi all, sorry for bothering you with this, but I have a problem: I like this style for my Index: \setuplist[chapter][style=bold] \placecontent[level=section, alternative=c, criterium=all, aligntitle=yes] But then the section page numbers are placed in the right margin of the page instead of in the text area as the chapter page numbers are. (if you want a sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16 KB) How can I manage to keep all the index structure while moving the section page numbers to the left? ?ngel-Luis ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ntg-context Digest, Vol 28, Issue 76
I tried that, but then nothing appears (empty index) Angel-Luis Hi Angel-Luis, looks like you want a LaTeX-like table of contents. I achieved what I think you want to achieve as well, using the following commands: % setup table of contents \setupcombinedlist[content][alternative=c,level=section] % margins, widths and distances are setup such that section lines line up with chapter text (change to your liking!) \setuplist[chapter][margin=0mm,width=6mm,distance=2mm,style=bold,aligntitle =yes,before=\blank] \setuplist[section][margin=8mm,width=6mm,distance=2mm] % place the following in the relevant location \completecontent Hope this ends up looking like you want it to! Maarten-Jan - Original Message From: ?ngel Luis Garc?a Fern?ndez [EMAIL PROTECTED] To: ntg-context@ntg.nl Sent: Friday, October 27, 2006 10:16:21 PM Subject: [NTG-context] Page number alignment in \placecontent Hi all, sorry for bothering you with this, but I have a problem: I like this style for my Index: \setuplist[chapter][style=bold] \placecontent[level=section, alternative=c, criterium=all, aligntitle=yes] But then the section page numbers are placed in the right margin of the page instead of in the text area as the chapter page numbers are. (if you want a sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16 KB) How can I manage to keep all the index structure while moving the section page numbers to the left? ?ngel-Luis ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context End of ntg-context Digest, Vol 28, Issue 76 *** ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ntg-context Digest, Vol 28, Issue 76
Angel-Luis, I'm not sure why you do not get a table of contents, maybe try to add criterium=all to the \setupcombinedlist command and see if that works? Also, you have used \placecontent, which you can use instead of \completecontent. I've tried your settings using the live ConTeXt on the wiki and it works without the page numbers in the margin. Looking at your sample file, the lines with the sections are somehow shifted to the right. It is not possible to see why this is happening. Are you shure you have not added something somewhere to change the appearance of the list? Maarten-Jan - Original Message From: Ángel Luis García Fernández [EMAIL PROTECTED] To: ntg-context@ntg.nl Sent: Monday, October 30, 2006 10:16:24 AM Subject: Re: [NTG-context] ntg-context Digest, Vol 28, Issue 76 I tried that, but then nothing appears (empty index) Angel-Luis Hi Angel-Luis, looks like you want a LaTeX-like table of contents. I achieved what I think you want to achieve as well, using the following commands: % setup table of contents \setupcombinedlist[content][alternative=c,level=section] % margins, widths and distances are setup such that section lines line up with chapter text (change to your liking!) \setuplist[chapter][margin=0mm,width=6mm,distance=2mm,style=bold,aligntitle =yes,before=\blank] \setuplist[section][margin=8mm,width=6mm,distance=2mm] % place the following in the relevant location \completecontent Hope this ends up looking like you want it to! Maarten-Jan - Original Message From: ?ngel Luis Garc?a Fern?ndez [EMAIL PROTECTED] To: ntg-context@ntg.nl Sent: Friday, October 27, 2006 10:16:21 PM Subject: [NTG-context] Page number alignment in \placecontent Hi all, sorry for bothering you with this, but I have a problem: I like this style for my Index: \setuplist[chapter][style=bold] \placecontent[level=section, alternative=c, criterium=all, aligntitle=yes] But then the section page numbers are placed in the right margin of the page instead of in the text area as the chapter page numbers are. (if you want a sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16 KB) How can I manage to keep all the index structure while moving the section page numbers to the left? ?ngel-Luis ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context End of ntg-context Digest, Vol 28, Issue 76 *** ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] list ?
Renaud AUBIN wrote: Hi all, Considering the fact that I have no answer for the thread [NTG-context] Presentation style: customizing the right interaction menu (list-related thread), I decided to reformulate my problem... After some experiments, I have the following code: \definehead [Topic] [chapter] \definehead [Subject] [section] \setuplist[Topic][alternative=f,criterium=all,align=left] \setuplist[Subject][alternative=f,criterium=chapter,align=left] \starttext \Topic{Topic 1} \Subject{Subject 1} \Subject{Subject 2} \Subject{Subject 3} \placelist[Topic,Subject] \Topic{Topic 2} \Subject{Subject 1} \Subject{Subject 2} \Subject{Subject 3} \stoptext Considering the fact that I use criterium=chapter in \setuplist[Subject], I thought that \placelist[Topic,Subject] leads to: Topic 1 Subject 1 Subject 2 Subject 3 Topic 2 but unfortunately, that's not the case and I don't understand why... I've also tried some setup with combinedlist but nothing works... Could someone explain why criterium as no effect... Moreover, I don't understand what coupling= on|off does... maybe future version of context will provide more control; for the moment, stick to: \definehead [Topic] [chapter] \definehead [Subject] [section] \newcounter\MyTopicCounter \startsetups MyTopicList \blank \doglobal\increment\MyTopicCounter \doglobal\newcounter\MySubjectCounter \placelist[Topic][criterium=text,after=\setups{MySubjectList}] \stopsetups \startsetups MySubjectList \doglobal\increment\MySubjectCounter \doifelse{\MyTopicCounter}{\MySubjectCounter} { \placelist[Subject] } { % whatever } \stopsetups \starttext \Topic{first} \Subject{one} test \Subject{two} test \setups[MyTopicList] \page \Topic{second} \Subject{alpha} test \Subject{beta} test \setups[MyTopicList] \page \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] list ?
Hi all, Considering the fact that I have no answer for the thread "[NTG-context] Presentation style: customizing the right interaction menu (list-related thread)", I decided to reformulate my problem... After some experiments, I have the following code: \definehead [Topic] [chapter] \definehead [Subject] [section] \setuplist[Topic][alternative=f,criterium=all,align=left] \setuplist[Subject][alternative=f,criterium=chapter,align=left] \starttext \Topic{Topic 1} \Subject{Subject 1} \Subject{Subject 2} \Subject{Subject 3} \placelist[Topic,Subject] \Topic{Topic 2} \Subject{Subject 1} \Subject{Subject 2} \Subject{Subject 3} \stoptext Considering the fact that I use criterium=chapter in \setuplist[Subject], I thought that \placelist[Topic,Subject] leads to: Topic 1 Subject 1 Subject 2 Subject 3 Topic 2 but unfortunately, that's not the case and I don't understand why... I've also tried some setup with combinedlist but nothing works... Could someone explain why criterium as no effect... Moreover, I don't understand what coupling= on|off does... Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Presentation help
Thanks, all works out nicely. So, I have another problem. According to my friend, every good presentation should highlight the current section in the table of contents. So I defined this: #v+ \def\mycontext#1{% \edef\stringa{\fetchmark[section][current]} \edef\stringb{#1} \strut \ifx\stringa\stringb \color[red]{#1} \else #1 \fi } #v- This works with \mycontext{a subject} and even \mycontext{\fetchmark[section][current]} but doesn't work with placelist[section] with this setup: #v+ \setuplist[section][criterium=all, symbol=none, numbercommand=$\bullet$, textcommand=\mycontext, pagenumber=no, width=\baselineskip] #v- I think it's because textcommand gets more then just the text as parameter. But there is no deeptextcommand in setuplist. cu, Adam. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] using \doifnumberelse in a ToC numbercommand=
I asked this question a couple of days ago, but didn't get any takers. I don't want to be a pest, but it's frustrating to be so close yet unable to solve this final problem. Let's see if rephrasing the question helps. I'm trying to use \doifnumberelse in a \setuplist numbercommand= but it isn't working. The simplified example below shows the very specific table of contents layout I'm trying to accomplish. You will note that both the chapter number and the appendix letter are labeled with Appendix when in fact I want the chapter to be labeled Chapter. Does anyone know either (a) how to get \doifnumberelse to work in this situation or (b) if there's a better way I should have done this instead. - \def\mychapterlistnumber#1{\vbox{% \doifnumberelse{#1}{Chapter}{Appendix} #1\crlf}} \def\mysectionlistnumber#1{\emspace\emspace} \def\mysectionlisttext#1{% \doifelse{#1}{Lab Tasks}{\hskip-1em\bf#1\hfilll}{#1}} \setuplist[chapter][width=1em,numberstyle=bold,% numbercommand=\mychapterlistnumber,textstyle=bold] \setuplist[section][width=2em,numbercommand=\mysectionlistnumber,% textcommand=\mysectionlisttext] \starttext \bgroup{}Table of Contents\egroup\par \startcolumns[n=2,distance=.3in,balance=no] \bgroup \placelist[chapter,section][criterium=all,alternative=b] \egroup \stopcolumns \page \chapter{Foo} \section{Bar} \input knuth \startappendices \chapter{Corge} \section{Grault} \input zapf \stopappendices \stoptext - -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using \doifnumberelse in a ToC numbercommand=
On 8/16/06, Stuart Jansen wrote: I asked this question a couple of days ago, but didn't get any takers. I don't want to be a pest, but it's frustrating to be so close yet unable to solve this final problem. Let's see if rephrasing the question helps. I'm trying to use \doifnumberelse in a \setuplist numbercommand= but it isn't working. The simplified example below shows the very specific table of contents layout I'm trying to accomplish. You will note that both the chapter number and the appendix letter are labeled with Appendix when in fact I want the chapter to be labeled Chapter. Does anyone know either (a) how to get \doifnumberelse to work in this situation or (b) if there's a better way I should have done this instead. My guess is that \doifnunmberelse won't work since it's not only the number hidden there, but also formatting, conversion, ... etc. But I have no idea how to do it in some other way. You may take a look at the following, but it has the side-effect that it will not only be used in TOC, but also in text which is most probably not what you want: \def\mychapterlistnumber#1{\vbox{#1\crlf}} \def\mysectionlistnumber#1{\emspace\emspace} \def\mysectionlisttext#1{% \doifelse{#1}{Lab Tasks}{\hskip-1em\bf#1\hfilll}{#1}} \setuplist[chapter][width=1em,numberstyle=bold,% numbercommand=\mychapterlistnumber,textstyle=bold] \setuplist[section][width=2em,numbercommand=\mysectionlistnumber,% textcommand=\mysectionlisttext] \unprotect \setupsection [\s!section-2] [\v!appendix\c!conversion=appendixconversion, \c!conversion=chapterconversion,] \protect \def\appendixconversion#1{Appendix #1} \defineconversion[appendixconversion][\appendixconversion] \def\chapterconversion#1{Chapter #1} \defineconversion[chapterconversion][\chapterconversion] \starttext \bgroup{}Table of Contents\egroup\par \startcolumns[n=2,distance=.3in,balance=no] \bgroup \placelist[chapter,section][criterium=all,alternative=b] \egroup \stopcolumns \page \chapter{Foo} \section{Bar} \input knuth \startappendices \chapter{Corge} \section{Grault} \input zapf \stopappendices \stoptext Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using \doifnumberelse in a ToC numbercommand=
On Wed, 2006-08-16 at 21:46 +0200, Mojca Miklavec wrote: My guess is that \doifnunmberelse won't work since it's not only the number hidden there, but also formatting, conversion, ... etc. You're probably right. But I have no idea how to do it in some other way. You may take a look at the following, but it has the side-effect that it will not only be used in TOC, but also in text which is most probably not what you want: Unfortunately, your solution didn't work for me. It did, however, get me thinking in the right direction. In case anyone is every crazy enough to follow the same path, here's a much more simple solution that doesn't even need \doifnumberelse: - \definehead[appendix][chapter] \def\myappendixlistnumber#1{\vbox{Appendix #1\crlf}} \def\mychapterlistnumber#1{\vbox{Chapter #1\crlf}} \def\mysectionlistnumber#1{\emspace\emspace} \def\mysectionlisttext#1{% \doifelse{#1}{Lab Tasks}{\hskip-1em\bf#1\hfilll}{#1}} \setuplist[appendix][width=1em,numberstyle=bold,% numbercommand=\myappendixlistnumber,textstyle=bold] \setuplist[chapter][width=1em,numberstyle=bold,% numbercommand=\mychapterlistnumber,textstyle=bold] \setuplist[section][width=2em,numbercommand=\mysectionlistnumber,% textcommand=\mysectionlisttext] \starttext \bgroup{}Table of Contents\egroup\par \startcolumns[n=2,distance=.3in,balance=no] \bgroup \placelist[chapter,appendix,section][criterium=all,alternative=b] \egroup \stopcolumns \page \chapter{Foo} \section{Bar} \input knuth \writetolist[section]{}{Lab Tasks} \input douglas \section{Baz} \startappendices \appendix{Corge} \section{Grault} \input zapf \stopappendices \stoptext - -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using \doifnumberelse in a ToC numbercommand=
Stuart Jansen wrote: I asked this question a couple of days ago, but didn't get any takers. I don't want to be a pest, but it's frustrating to be so close yet unable to solve this final problem. Let's see if rephrasing the question helps. I'm trying to use \doifnumberelse in a \setuplist numbercommand= but it isn't working. as mojca said ... #1 is not a simple thing (try \showargument{#1}) here's a solution, tricky but in this case ok \definesymbol[list][whatever][\DoWhatever] \def\DoWhatever{\doifnumberelse{\currentlistnumber}{Chapter}{Appendix} \currentlistnumber} \setuplist[chapter][width=fit,distance=1em,numberstyle=bold,textstyle=bold,symbol=whatever] \starttext \startfrontmatter \title{Table of Contents} \placelist[chapter,section][criterium=text,alternative=b] \stopfrontmatter \startbodymatter \chapter{Foo} \section{Bar} \input knuth \stopbodymatter \startappendices \chapter{Corge} \section{Grault} \input zapf \stopappendices \stoptext some time ago i made this plugable so you're lucky a better solution would be something \placelist[chapter,section][criterium=frontmatter,alternative=b,numbercommand=] \placelist[chapter,section][criterium=bodymatter,alternative=b,numbercommand=] etc so you may register that (at the collector or the wiki) as a feature request wikifyable anyway The simplified example below shows the very specific table of contents layout I'm trying to accomplish. You will note that both the chapter number and the appendix letter are labeled with Appendix when in fact I want the chapter to be labeled Chapter. Does anyone know either (a) how to get \doifnumberelse to work in this situation or (b) if there's a better way I should have done this instead. - \def\mychapterlistnumber#1{\vbox{% \doifnumberelse{#1}{Chapter}{Appendix} #1\crlf}} \def\mysectionlistnumber#1{\emspace\emspace} \def\mysectionlisttext#1{% \doifelse{#1}{Lab Tasks}{\hskip-1em\bf#1\hfilll}{#1}} \setuplist[chapter][width=1em,numberstyle=bold,% numbercommand=\mychapterlistnumber,textstyle=bold] \setuplist[section][width=2em,numbercommand=\mysectionlistnumber,% textcommand=\mysectionlisttext] \starttext \bgroup{}Table of Contents\egroup\par \startcolumns[n=2,distance=.3in,balance=no] \bgroup \placelist[chapter,section][criterium=all,alternative=b] \egroup \stopcolumns \page \chapter{Foo} \section{Bar} \input knuth \startappendices \chapter{Corge} \section{Grault} \input zapf \stopappendices \stoptext - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ToC chapter/appendix labelling
I'm trying to achieve a specific table of contents layout. The problem I'm running into is adding the word Chapter before the chapter number and Appendix before the appendix letter. Below is what I've accomplished so far, any tips would be greatly appreciated. - \def\mychapterlistnumber#1{\vbox{% \doifnumberelse{#1}{Chapter}{Appendix} #1\crlf}} \def\mysectionlistnumber#1{\emspace\emspace} \def\mysectionlisttext#1{% \doifelse{#1}{Lab Tasks}{\hskip-1em\bf#1\hfilll}{#1}} \setuplist[chapter][width=1em,numberstyle=bold,% numbercommand=\mychapterlistnumber,textstyle=bold] \setuplist[section][width=2em,% numbercommand=\mysectionlistnumber,% textcommand=\mysectionlisttext] \starttext \bgroup{}Table of Contents\egroup\par \startcolumns[n=2,distance=.3in,balance=no] \bgroup \placelist[chapter,section][criterium=all,alternative=b] \egroup \stopcolumns \page \chapter{Foo} \section{Bar} \input knuth \startappendices \chapter{Corge} \section{Grault} \input knuth \stopappendices \stoptext - -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Extra pages
All, Can anyone explain why the output of this source has two blank pages at the end? \setupwhitespace[medium] \setupindenting[medium,yes] \setupcolors[state=start] \setuppagenumbering [state=start, alternative=doublesided, location=, way=bytext] \definetext[chapter][footer][pagenumber] \setuphead [chapter] [alternative=inmargin, header=high, footer=chapter, page=right] \setuphead [section] [style=\tfc, page=right, continue=no, alternative=inmargin] \setuphead [subsection] [style=\tfb\sl, number=no] \definehead [TocHead] [section] \setuphead [TocHead] [number=no, incrementnumber=no, page=no] \definehead [IndexHead] [section] \setuphead [IndexHead] [number=no, incrementnumber=no, page=yes] \def\Tindex#1{\index{#1}#1} \def\OddPageHeader{\bold{\pagenumber}\hskip 1em Chapter \headnumber [chapter] \getmarking[chapter][current]} \def\headermarkleft{\bold{\pagenumber}\headerskip{\sc\headerskip Chapter \headnumber[chapter]\headerskip\getmarking[chapter][current]}} \def\headermarkright{{\sc{}Section \headnumber[section]\headerskip \getmarking[section][current]}\headerskip\bold{\pagenumber}} \def\headerskip{\hskip 1em} \setupheadertexts [][\headermarkright]%odd page on right [\headermarkleft][]%even page on left \setuplist [section] [style=bold, color=red, alternative=c] \setuplist [subsection] [alternative=b] \starttext \startbodymatter \chapter{A Practice Chapter} \input knuth \TocHead{Table of Contents} \placecontent \section{First Section} Now is the \Tindex{time} for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \subsection{First Subsection} \dorecurse{3}{\input knuth \par} \section{Second Section} \dorecurse{3}{\input knuth \par} \subsection{Second Subection} \dorecurse{3}{\input knuth \par} \section{Third Section} \dorecurse{3}{\input knuth \par} \subsection{Third Subection} \dorecurse{3}{\input knuth \par} \stopbodymatter \startbackmatter \completeindex \stopbackmatter \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] hyphenation by default off in lists ?
Hi, is hyphenation by default off in lists? If so, why doesn't align={hyphenated,right} start the hyphening? \starttext %\setuplist[section][align={hyphenated,right}] \completecontent \section{\input tufte} \stoptext Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to get rid of header
All, how do I get rid of the header on the second page of output? \setupwhitespace[medium] \setupindenting[medium,yes] \setupcolors[state=start] \setuppagenumbering [state=start, alternative=doublesided, location=, way=bytext] \definetext[chapter][footer][pagenumber] \setuphead [chapter] [alternative=inmargin, header=high, footer=chapter, page=right] \setuphead [section] [style=\tfc, page=right, continue=no, alternative=inmargin] \setuphead [subsection] [style=\tfb\sl, number=no] \definehead [toc] [section] \setuphead [toc] [number=no, incrementnumber=no, page=no] \def\OddPageHeader{\bold{\pagenumber}\hskip 1em Chapter \headnumber [chapter] \getmarking[chapter][current]} \def\headermarkleft{\bold{\pagenumber}\headerskip{\sc\headerskip Chapter \headnumber[chapter]\headerskip\getmarking[chapter][current]}} \def\headermarkright{{\sc{}Section \headnumber[section]\headerskip \getmarking[section][current]}\headerskip\bold{\pagenumber}} \def\headerskip{\hskip 1em} \setupheadertexts [][\headermarkright]%odd page on right [\headermarkleft][]%even page on left \setuplist [section] [style=bold, color=red, alternative=c] \setuplist [subsection] [alternative=b] \starttext \chapter{A Practice Chapter} \input knuth \toc{Table of Contents} \placecontent \section{First Section} \dorecurse{3}{\input knuth \par} \subsection{First Subsection} \dorecurse{3}{\input knuth \par} \section{Second Section} \dorecurse{3}{\input knuth \par} \subsection{Second Subection} \dorecurse{3}{\input knuth \par} \section{Third Section} \dorecurse{3}{\input knuth \par} \subsection{Third Subection} \dorecurse{3}{\input knuth \par} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setuppublicationlist
Hi all, How to control vertical spaces between references ? (\setuplist options ? I have tried some but nothing happened...) Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuppublicationlist
Renaud AUBIN wrote: Hi all, How to control vertical spaces between references ? (\setuplist options ? I have tried some but nothing happened...) This should work: \setuppublicationlist[before=\blank] Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuppublicationlist
Hi Taco, An extra line was due to \def\setuppublicationlayout[#1]#2% {\setvalue{@@pvdata#1}{#2\unskip\unskip\vadjust{\kern 12pt}}} in my bibl-aub.tex ;) Cheers, Renaud Taco Hoekwater a crit: Renaud AUBIN wrote: Hi all, How to control vertical spaces between references ? (\setuplist options ? I have tried some but nothing happened...) This should work: \setuppublicationlist[before=\blank] Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuphead, setuplist
I have tried ... \setuplist[chapter] [label=no,prefix=no,sectionnumber=no,alternative=a,textcommand= \midaligned,distance=0cm,margin=0cm,width=0cm] ... but still there is the sectionnumber shown in the content. Is this because of our special setuphead[chapter] command? Is there no way to avoid the sectionnumber for my chapter in the TOC? Steffen Am 31.07.2006 um 07:31 schrieb Steffen Wolfrum: That's it. Now the corresponding entry in the TOC should be without sectionnumber, but setuplist[...][sectionnumber=no] doesn't work. And looking in the manual I saw that this command is listed for setuplist, but listed italic?! ... \setuphead[chapter] [command=\Sectioncommand, style=, textstyle=\bfb, numberstyle=\it] \def\Sectioncommand#1#2% {\vbox \bgroup \framed[align=middle,frame=off,offset=0pt]{Chapter #1}% \framed[align=middle,frame=off,offset=0pt]{#2}% \egroup} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuphead, setuplist
Steffen Wolfrum wrote: That's it. Now the corresponding entry in the TOC should be without sectionnumber, but setuplist[...][sectionnumber=no] doesn't work. And looking in the manual I saw that this command is listed for setuplist, but listed italic?! has to do with prefixes, like \chapternumber=no and so Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuphead, setuplist
That's it. Now the corresponding entry in the TOC should be without sectionnumber, but setuplist[...][sectionnumber=no] doesn't work. And looking in the manual I saw that this command is listed for setuplist, but listed italic?! Steffen Am 31.07.2006 um 00:51 schrieb Aditya Mahajan: On Mon, 31 Jul 2006, Hans Hagen wrote: Steffen Wolfrum wrote: Well, looks good, BUT if the chapter's name is quite long and needs a break then the break command used there (\crlf \break \\) can't work anymore \setuphead[chapter] [command=\Sectioncommand, style=, textstyle=\bfb, numberstyle=\it] \def\Sectioncommand#1#2% {\vbox \bgroup \framed[align=middle,frame=off,offset=0pt]{Chapter #1}% \framed[align=middle,frame=off,offset=0pt]{#2}% \egroup} or something alike You also need to specify width of the frame, otherwise width=fit is default and framed box does not appear to be middle aligned. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beta bib module issues
Hi, Taco Hoekwater wrote: Johannes Graumann wrote: Hello, The current t-bib beta (t-bib-2006.06.23) available at http://dl.contextgarden.net/modules/t-bib-2006.06.23.zip has a problem: I'll fix this an Mojca's problem tomorrow (need a different machine). Mojca, can you send me a minimal example with extra spaces please? I've uploaded a new version to contextgarden. It fixes three bugs: * fix \type{\normalauthor} and \type{\normalshortauthor} spacing * do not typeset empty arguments to \type{\typesetapublication} * add \type{symbol=none} to \type{\setuplist} in unnumbered mode to prevent typesetting of bare numbers Greetings, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beta bib module issues
Taco Hoekwater wrote: * add \type{symbol=none} to \type{\setuplist} in unnumbered mode to prevent typesetting of bare numbers Works now - thanks! Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aleph queries
\setupheads [separator={{.}}] \setupcaptions[separator={{.}}] this still gives problems with refering to a graphic but for that we need more hackery Also, probably because it uses the same cross-referencing mechanism, this leaves the section numbers in tables of contents the other way around. So to match the setupheads, we need also: \setuplist[section,subsection,...][separator={{.}}] Unfortunately \setupreferencing[separator={{.}}] seems to just put an extra . before the figure number, but not reverse it, resulting in: '1.2- erugiF' Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to hyperlink pdf?
On Sun, 18 Jun 2006, Johannes Graumann wrote: Aditya Mahajan wrote: \setupinteraction[state=start] Thanks. This will hyperlink the section numbers (like 2.2) from the TOC to the actual section ... is there any way to extend the link to the page numbers in the TOC as well? That's where I intuitively looked first ... There ought to be a proper way to do it. This works, but does not feel right. \setuplist [section] [alternative=MyListItem, after=\blank, before=\blank] \definelistplacement[MyListItem][none]#1#2#3% {\framed[width=\textwidth,frame=off]{\rlap{#1}\hskip 2em #2 \dotfill #3}} \placelist[section] Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Page Numbers in TOC; setuplabeltext
In the table of context for my documents, I would like Chapters to have page numbers with alternative=c. However, my Appendices are not paginated so I do not want them to have page numbers in the TOC. Since (apparently), Appendix inherits from Chapter, each Appendix is listed in the TOC with leading dots and page number 0 regardless of what I put in \setuplist [appendix] when using \placecontent or \completecontent. So I tried creating my own head (based on title) and list. Placing this list under the TOC gives me the effect I want (Appendices are listed without dots or page numbers). Unfortunately, setuplabeltext doesn't seem to work on my newly defined head. I've tried all manner of variations like: \definelist [myappendixlist] \setuplist [myappendixlist] [pagenumber=no,alternative=b,label=yes,conversion=Character] \definehead[myappendix][title] \def\appendixlabel#1#2{Appendix #1: #2} \setuphead[myappendix][command=\appendixlabel] % \setuplabeltext [en][myappendix=Appendix~] \newcounter\myappendices \long\def\myappendix#1% {\ifhmode\unskip\fi \doglobal\increment\myappendices\relax \high{\myappendices}% \expanded{\writetolist[myappendixlist]{\myappendices}}{#1}} 1) Is there a way to suppress the display of Appendix page numbers in a TOC while retaining alternative=c for Chapters? 2) Assuming the answer to (1) is no, how do I enable display of labels in my custom defined head? Thanks, Neal ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page Numbers in TOC; setuplabeltext
\definelist [myappendixlist] \setuplist [myappendixlist] [pagenumber=no,alternative=b,label=yes,conversion=Character] \definehead[myappendix][title] \def\appendixlabel#1#2{Appendix #1: #2} \setuphead[myappendix][command=\appendixlabel] % \setuplabeltext [en][myappendix=Appendix~] \newcounter\myappendices \long\def\myappendix#1% {\ifhmode\unskip\fi \doglobal\increment\myappendices\relax \high{\myappendices}% \expanded{\writetolist[myappendixlist]{\myappendices}}{#1}} 3) How can I make the numbers in myappendixlist appear as A B C (as Appendix does) instead of 1, 2, 3 Sorry about the second post! Neal ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Text style in bookmarks
Hi Nico, Provided I understnad you correctly, then you could play with code as: \setuphead [chapter] [style=\sca, after={\blank[3*big]}, number=no, alternative=middle, textstyle=\sca] \setuplist [contents] [sectionnumber=no, style=normal, textstyle=normal, pagestyle=normal, numberstyle=bold] kind regards Willi nico wrote: Hello, Is there a trick so that I can put styles like {\bf ...} or {\tt ...} in the headings without having any weird text in the bookmarks? Adding \bf or \tt as empty macros to the simplifiedcommands doesn't avoid the curly braces to appear (which is normal). Do I need to use something like \def\textbf#1{\def\textbf#1{\bgroup\bf #1\egroup} to have this working? Thanks for any hint. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Table of contents and List of figures
[EMAIL PROTECTED] wrote: On Sun, 30 Apr 2006 19:13:34 +0200, WN [EMAIL PROTECTED] wrote: Question 1) : In my document I am using \setupcombinedlist[content][alternative=c,aligntitle=no,width=4em] and now I want to use the same layout for the list of figures but there is not something equivalent like \setupcombinedlist[figure][alternative=c,aligntitle=no,width=4em] The TOC is a combination of several lists (chapter, section, etc.), but a LOF is a single list. Try: \setuplist[figure][alternative=c,aligntitle=no,width=4em] or: \placelist[figure][alternative=c,aligntitle=no,width=4em] Question 2): In my document I am also using \part and in the TOC the part number prefixes the pagenumber like I want to get rid of the partnumbers which are prefixed to the pagenumbers so my TOC looks like Deel I Klassieke Elektrodynamica . . . . . . . . . . . . . . . . . . 1 Try this: \completecontent[partnumber=no] Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Both your solutions work, great !! Thanks BTW One question, as I am still learning Context (simple user), but where did you find these options for \completecontent ? I could not find it in the manuals, Wiki and this mailing list. Kind regards Wim ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Table of contents and List of figures
On Mon, 01 May 2006 13:07:08 +0200, WN [EMAIL PROTECTED] wrote: Both your solutions work, great !! Thanks BTW One question, as I am still learning Context (simple user), but where did you find these options for \completecontent ? I could not find it in the manuals, Wiki and this mailing list. It's in the big manual (cont-enp), in the section References/Table of contents. The complete list of options is given for setuplist (p 150), and examples of placelist are given (p 155-159). The manual is far complete but need a careful read (many information in few pages). Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context