Re: [NTG-context] Continuous chapter numbering without prefixes in documents with parts
Thanks again, Thomas. 2011/7/1 Thomas Schmitz tschm...@uni-bonn.de On Fri, 1 Jul 2011 15:33:07 +0200 Julian Becker becker.jul...@gmail.com wrote: Thank you Thomas, and sorry for not having performed a proper search priorly. Still, the thread you refered me to only provides half of what I need (if I didn't miss anything): I added the line: \setuphead[chapter][chaptersegments=chapter] which indeed got rid of the chapter number prefix. Still, the chapter numbering gets reset in each new part. How can I avoid that? Excuse me for sounding a bit grumpy, but please make complete minimal examples. I'll try to keep that in mind, next time. Julian Which means they should be compilable, see http://www.minimalbeispiel.de/mini-en.html. Here is one such example which does what you want (and this solution could also be found in the list archive): \definestructureresetset[default][0,0][1] \setuphead[part][sectionresetset=default] \setuphead[part][placehead=yes] \setuphead[chapter][sectionsegments=chapter,ownnumber=yes] \starttext \startpart[title=First part] \startchapter[title=Chapter one] \input tufte \stopchapter \startchapter[title=Chapter two] \input tufte \stopchapter \stoppart \startpart[title=Second part] \startchapter[title=Chapter three] \input tufte \stopchapter \startchapter[title=Chapter four] \input tufte \stopchapter \stoppart \stoptext Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_bec...@uni-muenster.de Keep thy heart with all diligence; for it is the wellspring of life. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to install extra module in the latest context?
I update my context today, but it seems that the third part module did not installed. I use the command sh ./first-setup.sh --extras=all to update the context and when I compile the file I write before, it says the module vim and simplefonts did not found. Is there any error during my update ? How can I fix it ? Thanks ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] modules in minimals (important)
On Thu, Jul 7, 2011 at 06:47, Wolfgang Schuster wrote: Am 06.07.2011 um 23:48 schrieb Alan Braslau: Is there a work around? What to do? --modules=simpleslides,... I fixed the code for fetching all modules. The code for fetching all fonts has to be added first. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to install extra module in the latest context?
On Thu, Jul 7, 2011 at 10:34, m00nlight wrote: I update my context today, but it seems that the third part module did not installed. I use the command sh ./first-setup.sh --extras=all to update the context and when I compile the file I write before, it says the module vim and simplefonts did not found. Is there any error during my update ? How can I fix it ? You can try again, preferably changing --extras=all into --modules=all. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bib module (again)
Am 06.07.2011 um 12:47 schrieb Hans Hagen: On 6-7-2011 12:03, Steffen Wolfrum wrote: as databases usually have *lots* of entries this really is a daring venture :o) skimming through hundreds, thousands of entries, finding those how have exactly 3 authors and stuffing the information from the three \author fields into the one a field! hope that nothing will go wrong ... you can write a script that does it for you ... maybe at some point I will provide some extra hooks in the bib module but it has no priority on my agenda an even more challenging option, that might need some extra hooks, is the ibid option: an article is cited in a footnote. the macro looks if this article is already cited before. if so it looks if this is exactly the same article as cited directly before. and it makes sure that it is not the first cite on the current page (resp. spread). if all these are true, the \cite command gives an Ibid. instead of the full cite. as this is provided for latex users by Philipp Lehman with his biblatex package, it is considered to be kind of standard by some publisher today. Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to install extra module in the latest context?
On Thu, Jul 7, 2011 at 11:21 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: You can try again, preferably changing --extras=all into --modules=all. From a couple of days I have this error: rsync: failed to connect to contextgarden.net: Connection timed out (110) rsync error: error in socket IO (code 10) at clientserver.c(105) [receiver=2.6.9] It's strange because my network seems ok. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [***SPAM***] Re: How to install extra module in the latest context?
It suddently seems work and I iinstall all the third module. Sorry for trouble. Best regards ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [***SPAM***] Re: How to install extra module in the latest context?
On Thu, Jul 7, 2011 at 11:34, m00nlight wrote: It suddently seems work and I iinstall all the third module. Sorry for trouble. You don't need to be sorry. It was fixed 20 minutes ago. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to install extra module in the latest context?
On Thu, Jul 7, 2011 at 11:28 AM, luigi scarso luigi.sca...@gmail.com wrote: On Thu, Jul 7, 2011 at 11:21 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: You can try again, preferably changing --extras=all into --modules=all. From a couple of days I have this error: rsync: failed to connect to contextgarden.net: Connection timed out (110) rsync error: error in socket IO (code 10) at clientserver.c(105) [receiver=2.6.9] It's strange because my network seems ok. OK, fixed. Now it's all ok. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Space between item symbol and item text
Dear all, how do I decrease the horizontal whitespace between the symbol and the text in an item[ize] list? The manual suggests this: \startitemize[1*serried] \item Test \stopitemize It's not working, I get the same distance as with no option at all . Test But I wanted . Test In fact, the option n*serried does not have any effect, whereas n*broad is working properly. Any suggestions? Thanks! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Text Background in Columnset
I have two columns on one page of my document. The text background from the first column is being continued into the second column even though I'm using \stoptextbackground before switching to the second column: \definecolumnset[first][n=2] \setupcolumnset[first][1][width=.65\makeupwidth] \setupcolumnset[first][2][width=.35\makeupwidth] \definecolor[introbackground][r=.92, g=.94, b=.84] \setupcolors[state=start] \definetextbackground[intro] [location=paragraph,frame=no,backgroundcolor=introbackground] \starttext \startcolumnset[first] \starttextbackground[intro] \input knuth \stoptextbackground \column blah blah blah more text \stopcolumnset \stoptext I also tried adding background=someColor to one of the \setupcolumnset declarations, but there was no background at all. Is there a better way to get backgrounds into columns or am I just missing something? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Space between item symbol and item text
Am 07.07.2011 um 13:08 schrieb Christian: Dear all, how do I decrease the horizontal whitespace between the symbol and the text in an item[ize] list? The manual suggests this: \startitemize[1*serried] \item Test \stopitemize It's not working, I get the same distance as with no option at all . Test But I wanted . Test In fact, the option n*serried does not have any effect, whereas n*broad is working properly. Any suggestions? You can use absolute values: \startitemize[width=1em,distance=0pt] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Space between item symbol and item text
Dear all, how do I decrease the horizontal whitespace between the symbol and the text in an item[ize] list? The manual suggests this: \startitemize[1*serried] \item Test \stopitemize It's not working, I get the same distance as with no option at all . Test But I wanted . Test In fact, the option n*serried does not have any effect, whereas n*broad is working properly. Any suggestions? You can use absolute values: \startitemize[width=1em,distance=0pt] Great! I will add that to the wiki. From testing I assume width controls the width of the symbol (i.e. symbol space, if the symbol is not very wide) and distance an additional distance from the symbol's right edge. So one will get the same results from these 2: Width=0pt,distance=1em Width=1em,distance=0pt ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Space between item symbol and item text
Am 07.07.2011 um 13:56 schrieb Christian: Great! I will add that to the wiki. From testing I assume width controls the width of the symbol (i.e. symbol space, if the symbol is not very wide) and distance an additional distance from the symbol's right edge. Yes. So one will get the same results from these 2: Width=0pt,distance=1em Width=1em,distance=0pt Not always: \starttext \startitemize[n][width=2em,distance=0pt,itemalign=flushright] \dorecurse{10}{\item text} \stopitemize \startitemize[n][width=0pt,distance=2em,itemalign=flushright] \dorecurse{10}{\item text} \stopitemize \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Space between item symbol and item text
Not always: \starttext \startitemize[n][width=2em,distance=0pt,itemalign=flushright] \dorecurse{10}{\item text} \stopitemize \startitemize[n][width=0pt,distance=2em,itemalign=flushright] \dorecurse{10}{\item text} \stopitemize \stoptext Understood. But the important thing is to know the possibility with the absolute values. Users will play with the values anyway. Check it out: http://wiki.contextgarden.net/Enumerations#Horizontal_spacing ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bib module (again)
On 07.07.2011 11:25, Steffen Wolfrum wrote: Am 06.07.2011 um 12:47 schrieb Hans Hagen: you can write a script that does it for you ... maybe at some point I will provide some extra hooks in the bib module but it has no priority on my agenda an even more challenging option, that might need some extra hooks, is the ibid option: an article is cited in a footnote. the macro looks if this article is already cited before. if so it looks if this is exactly the same article as cited directly before. and it makes sure that it is not the first cite on the current page (resp. spread). if all these are true, the \cite command gives an Ibid. instead of the full cite. as this is provided for latex users by Philipp Lehman with his biblatex package, it is considered to be kind of standard by some publisher today. Steffen Hi Steffen, I think Andreas Schneider posted a working solution for this some time ago. http://archive.contextgarden.net/message/20100121.112244.d88e2646.en.html But it is possible that this does not work anymore with the current beta (untested). Best regards, Stefan. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] itemize textstyle
Hi all, is it possible to assign different styles to each itemgroup or level of 'itemization'? It is possible when using \head to assign a headstyle, but wouldn't it be nice to assign a certain textstyle to an item level? Consider something heavily customized (but still useful IMHO) like this: 1. First Level (bold, small caps) - Second level (normal) third level (italic) * fourth level (smaller font [\tfx], text color dark gray) I somehow can't find a way to achieve this, without applying the style in the actual list. I also do not know what these before and after keys do, but I assume they control more the surroundings than being a command that is insterted before and after the item text. Best Regards! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Space between item symbol and item text
On Thu, 7 Jul 2011, Christian wrote: Dear all, how do I decrease the horizontal whitespace between the symbol and the text in an item[ize] list? The manual suggests this: \startitemize[1*serried] \item Test \stopitemize It's not working, I get the same distance as with no option at all . Test But I wanted . Test In fact, the option n*serried does not have any effect, whereas n*broad is working properly. Any suggestions? (untested) \startitemize[fit,broad][distance=0.25em] Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize textstyle
Am 07.07.2011 um 16:21 schrieb Christian: Hi all, is it possible to assign different styles to each itemgroup or level of 'itemization'? It is possible when using \head to assign a headstyle, but wouldn't it be nice to assign a certain textstyle to an item level? Consider something heavily customized (but still useful IMHO) like this: 1. First Level (bold, small caps) - Second level (normal) third level (italic) * fourth level (smaller font [\tfx], text color dark gray) I somehow can't find a way to achieve this, without applying the style in the actual list. \setupitemize[1][style=\bf\setff{smallcaps}] \setupitemize[3][style=\it] \setupitemize[4][style=\tfx,color=darkgray] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to install extra module in the latest context?
On Thu, Jul 07, 2011 at 11:36:32AM +0200, Mojca Miklavec wrote: You don't need to be sorry. It was fixed 20 minutes ago. mtx-context | fatal error: no return code, message: luatex: execution interrupted Oops! luatex now dumps core. No minimal test file (yet). (must be triggered by some metapost code - looking into locating it.) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to install extra module in the latest context?
On Thu, Jul 7, 2011 at 5:30 PM, Alan Braslau alan.bras...@cea.fr wrote: On Thu, Jul 07, 2011 at 11:36:32AM +0200, Mojca Miklavec wrote: You don't need to be sorry. It was fixed 20 minutes ago. mtx-context | fatal error: no return code, message: luatex: execution interrupted Oops! luatex now dumps core. No minimal test file (yet). (must be triggered by some metapost code - looking into locating it.) Alan Latest minimals with Linux 32 bit is ok with \starttext \input knuth \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] t-letter: problem with align
Hello, The align key seems to be ignored here: \usemodule[letter] \setupletterstyle[head][align=flushright] \setupletterstyle[letterhead][align=flushright] \setupletter[fromname=bla, fromaddress=bla bla] \starttext \startletter bla \stopletter \stoptext TIA for any help! -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-letter: problem with align
Am 07.07.2011 um 17:42 schrieb Peter Münster: Hello, The align key seems to be ignored here: \usemodule[letter] \setupletterstyle[head][align=flushright] \setupletterstyle[letterhead][align=flushright] The head use predefined layouts and you can select between a left aligned, a centered or a right aligned layout. \setupletterstyle[head][alternative=right] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize textstyle
Consider something heavily customized (but still useful IMHO) like this: 1. First Level (bold, small caps) - Second level (normal) third level (italic) * fourth level (smaller font [\tfx], text color dark gray) I somehow can't find a way to achieve this, without applying the style in the actual list. \setupitemize[1][style=\bf\setff{smallcaps}] \setupitemize[3][style=\it] \setupitemize[4][style=\tfx,color=darkgray] I already tried the sytle parameter (option?). But it has no effect :( Does it work for you? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize textstyle
Am 07.07.2011 um 18:53 schrieb Christian: \setupitemize[1][style=\bf\setff{smallcaps}] \setupitemize[3][style=\it] \setupitemize[4][style=\tfx,color=darkgray] I already tried the sytle parameter (option?). But it has no effect :( Does it work for you? Wrong key, style is for the symbol/number of the item. A real setup key for the content isn’t available and the best i can do (without extra markup around each entry) is the following. \definefontfeature[smcp][smcp=yes] \setupitemize[1][command=\bf\addff{smcp}] \setupitemize[2][command=\tf\subfs{smcp}] \setupitemize[3][command=\it] \setupitemize[4][command=\tf\darkgray,color=black] \setupbodyfont[palatino] \starttext \startitemize \item One \startitemize \item Two \startitemize \item Three \startitemize \item Four \stopitemize \stopitemize \stopitemize \stopitemize \stoptext With some extra markup a better result is possible: \definefontfeature[smcp][smcp=yes] \definestartstop[itemzero] [before=\startitem,after=\stopitem,] \definestartstop[itemone] [itemzero][style=\bf\addff{smcp}] \definestartstop[itemtwo] [itemzero][style=\tf] \definestartstop[itemthree][itemzero][style=\it] \definestartstop[itemfour] [itemzero][style=\tfx,color=darkgray] \setupbodyfont[palatino] \starttext \startitemize \startitemone One \stopitemone \startitemize \startitemtwo Two \stopitemtwo \startitemize \startitemthree Three \stopitemthree \startitemize \startitemfour Four \stopitemfour \stopitemize \stopitemize \stopitemize \stopitemize \stoptext What you can also do is to ask Hans for style and color keys to change the layout of the itemize content (would then only be available when you use \startitem ... \stopitem). Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize textstyle
\setupitemize[1][style=\bf\setff{smallcaps}] \setupitemize[3][style=\it] \setupitemize[4][style=\tfx,color=darkgray] I already tried the sytle parameter (option?). But it has no effect :( Does it work for you? Wrong key, style is for the symbol/number of the item. A real setup key for the content isn't available and the best i can do (without extra markup around each entry) is the following. \definefontfeature[smcp][smcp=yes] \setupitemize[1][command=\bf\addff{smcp}] \setupitemize[2][command=\tf\subfs{smcp}] \setupitemize[3][command=\it] \setupitemize[4][command=\tf\darkgray,color=black] \setupbodyfont[palatino] \starttext \startitemize \item One \startitemize \item Two \startitemize \item Three \startitemize \item Four \stopitemize \stopitemize \stopitemize \stopitemize \stoptext With some extra markup a better result is possible: \definefontfeature[smcp][smcp=yes] \definestartstop[itemzero] [before=\startitem,after=\stopitem,] \definestartstop[itemone] [itemzero][style=\bf\addff{smcp}] \definestartstop[itemtwo] [itemzero][style=\tf] \definestartstop[itemthree][itemzero][style=\it] \definestartstop[itemfour] [itemzero][style=\tfx,color=darkgray] \setupbodyfont[palatino] \starttext \startitemize \startitemone One \stopitemone \startitemize \startitemtwo Two \stopitemtwo \startitemize \startitemthree Three \stopitemthree \startitemize \startitemfour Four \stopitemfour \stopitemize \stopitemize \stopitemize \stopitemize \stoptext What you can also do is to ask Hans for style and color keys to change the layout of the itemize content (would then only be available when you use \startitem ... \stopitem). Thank you very much for this example! This is already more than enough for a starting point. I guess the style and color keys for items might be an idea to hold on to. But at the moment I neither do want to push this, nor is there the urgent need because of your code. Also, there is surely enough work to do with more important stuff ;) Thanks again! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize textstyle
Am 07.07.2011 um 20:19 schrieb Christian: Thank you very much for this example! This is already more than enough for a starting point. I guess the style and color keys for items might be an idea to hold on to. But at the moment I neither do want to push this, nor is there the urgent need because of your code. Also, there is surely enough work to do with more important stuff ;) To be on the save side i suggest to use the second method because the first can result in wrong spacing when you change the font size etc. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bib module (again)
Am 07.07.2011 um 15:18 schrieb Stefan Müller: On 07.07.2011 11:25, Steffen Wolfrum wrote: Am 06.07.2011 um 12:47 schrieb Hans Hagen: you can write a script that does it for you ... maybe at some point I will provide some extra hooks in the bib module but it has no priority on my agenda an even more challenging option, that might need some extra hooks, is the ibid option: an article is cited in a footnote. the macro looks if this article is already cited before. if so it looks if this is exactly the same article as cited directly before. and it makes sure that it is not the first cite on the current page (resp. spread). if all these are true, the \cite command gives an Ibid. instead of the full cite. as this is provided for latex users by Philipp Lehman with his biblatex package, it is considered to be kind of standard by some publisher today. Steffen Hi Steffen, I think Andreas Schneider posted a working solution for this some time ago. http://archive.contextgarden.net/message/20100121.112244.d88e2646.en.html But it is possible that this does not work anymore with the current beta (untested). Best regards, Stefan. Hi Stefan, thanks for the note. Unfortunately Andreas' module doesn't work anymore. I had a correspondence with him on that in April this year: he could reproduce the error, but had no idea what the reason might be, resp. what changes in MkIV now cause a conflict with his module. Maybe Hans knows? Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-letter: problem with align
On Thu, Jul 07 2011, Wolfgang Schuster wrote: The head use predefined layouts and you can select between a left aligned, a centered or a right aligned layout. \setupletterstyle[head][alternative=right] On page 99 of lettercorrespondence.pdf you write: The default alternative a prints the firstname and surname of the author in the first line and the address in the following lines, the text is left aligned but this can be changed with the align key. What does that mean? I thought, that alternative was more about the location and with alternative=left, align=middle, one could get a header on the left side, and midaligned. -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bib module (again)
On Thursday, July 7, 2011 22:41 Steffen Wolfrum wrote: Hi Stefan, thanks for the note. Unfortunately Andreas' module doesn't work anymore. I had a correspondence with him on that in April this year: he could reproduce the error, but had no idea what the reason might be, resp. what changes in MkIV now cause a conflict with his module. Maybe Hans knows? Steffen After a lot of work with ConTeXt the past few weeks, I had some more thoughts on possible causes for this problem. I finally found the culprits: \expandoneargafter doesn't seem to be around anymore ... it works fine without, though. \doifnotempty doesn't quite seem to work (the way I intend it to), so I replaced them with \doifnot{...}{}{...} I attached the current module (yes, it's not really a module, but it's slightly more convenient to use that way ... the whole thing is nothing more than a workaround anyway). I hope I haven't killed any functionality while toying around and hunting the bug, but at least my Diploma Thesis looks still right when processed with that module. Since I currently don't use that module actively, I will probably not enhance or otherwise improve it. So if anyone else feels like providing a better solution for the Ibidem-problem: please do! -- Best Regards, Andreas\def\mycite{\dodoubleempty\domycite} \def\defaultciterepeat{Ebenda} \def\defaultciteprefix{Vgl. } \def\defaultcitepage{S. } \def\defaultcitechapter{Kap. } \def\domycite[#1][#2]{% \ifsecondargument% \getparameters[MCP][prefix={\defaultciteprefix},page=,chapter=,suffix=,repeat=,#2]% \doinsertmycite[#1]{\MCPprefix}{% \doifnot{\MCPpage}{}{\ \defaultcitepage\MCPpage.}% \doifnot{\MCPchapter}{}{\ \defaultcitechapter\MCPchapter.}% \doifnot{\MCPsuffix}{}{\ \MCPsuffix}% }% \else% \doinsertmycite[#1]{\defaultciteprefix}{}% \fi% } \def\doinsertmycite[#1]#2#3{% \footnote{% \doifelse{\MCPrepeat}{yes}{\global\setvalue{mycitelast}{#1}}{\doif{\MCPrepeat}{no}{\global\setvalue{mycitelast}{}}}% #2\doifnot{#2}{}{\strut}%prefix \doifelse{\getvalue{mycitelast}}{#1}% {\doifelse{#2}{}% {\defaultciterepeat}% {\lowercase{\defaultciterepeat}}%If there's a prefix, lower-case the cite-repeat string .% }% {\doifelse{\getvalue{mycitepast #1}}{used}% {\bgroup% \getcitedata[title][#1] to \bibtitle% \getcitedata[arttitle][#1] to \bibarttitle% \cite[alternative=authoryear][#1]. {\it\bibtitle\bibarttitle}.% \egroup}% {\cite[alternative=data][#1]}% }% #3%suffix \global\setvalue{mycitelast}{#1}% \global\setvalue{mycitepast #1}{used}% }% } %Reset last citation on page break (which we check when placing footnotes) \appendtoks \doifnoteonsamepageelse[footnote]{}{\global\setvalue{mycitelast}{}} \to\everyinsidenoteinsert smime.p7s Description: S/MIME Cryptographic Signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Space between item symbol and item text
On Thu, 2011-07-07 at 10:24 -0400, Aditya Mahajan wrote: (untested) \startitemize[fit,broad][distance=0.25em] Aditya Aditya, that works, but how do you set it for all items? I tried the following, but it didn't work: \setupitemize[fit,broad][distance=0.25em] -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Getting framed text to page break
On Thu, 2011-07-07 at 07:04 +0200, Wolfgang Schuster wrote: Am 07.07.2011 um 03:16 schrieb Kip Warner: I'm not very competent with ConTeXt, but I tried to translate what you and wrote into the following: [...] Solution 1: \definestartstop [SpecialFramed] [ before={\setupbackground[frame=on,before=\blank,after=\blank]\startbackground}, after=\stopbackground, %commands={\setupalign[flushleft,broad]}, style=italic] \starttext \input knuth \startSpecialFramed \dorecurse{6}{\input knuth\par} \stopSpecialFramed \input knuth \stoptext Solution 2: \definetextbackground [SpecialFramed] [before=\blank, after=\blank, background=, framecolor=black, location=paragraph, %align={flushleft,broad}, style=italic] \starttext \input knuth \startSpecialFramed \dorecurse{6}{\input knuth\par} \stopSpecialFramed \input knuth \stoptext Wolfgang Thanks Wolfgang. It worked. I also didn't know about \definestartstop. Thanks for that too. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Trying to get figure frame corners to clip figure
On Thu, 2011-07-07 at 07:35 +0200, Wolfgang Schuster wrote: There is a example in the metafun manual: http://pragma-ade.com/show-man-7.htm Wolfgang Wolfgang, I appreciate the effort, but you've linked me to a 657 page manual which is totally useless to me. I don't have time to learn another language. I've already spent a great deal of time just trying to learn ConTeXt and get that up and running. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Space between item symbol and item text
Am 08.07.2011 um 02:12 schrieb Kip Warner: On Thu, 2011-07-07 at 10:24 -0400, Aditya Mahajan wrote: (untested) \startitemize[fit,broad][distance=0.25em] Aditya Aditya, that works, but how do you set it for all items? I tried the following, but it didn't work: \setupitemize[fit,broad][distance=0.25em] \setupitemize[each][fit,broad][distance=0.25em] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-letter: problem with align
Am 07.07.2011 um 23:23 schrieb Peter Münster: On Thu, Jul 07 2011, Wolfgang Schuster wrote: The head use predefined layouts and you can select between a left aligned, a centered or a right aligned layout. \setupletterstyle[head][alternative=right] On page 99 of lettercorrespondence.pdf you write: The default alternative a prints the firstname and surname of the author in the first line and the address in the following lines, the text is left aligned but this can be changed with the align key. What does that mean? I thought, that alternative was more about the location and with alternative=left, align=middle, one could get a header on the left side, and midaligned. The “alternatives” are different predefined or user created layouts for the elements (like head, reference etc.) and some of the layouts restrict the options. With the alternative “a” i print only the values from the variables “fromname” and “fromaddress” while “left”, “middle” and “right” are complexer. Another feature from the last three alternatives is that the alignment is fixed and you can’t change it, when you want a different layout then create your own 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-letter: problem with align
On Fri, Jul 08 2011, Wolfgang Schuster wrote: With the alternative “a” i print only the values from the variables “fromname” and “fromaddress” while “left”, “middle” and “right” are complexer. Another feature from the last three alternatives is that the alignment is fixed and you can’t change it, when you want a different layout then create your own header. So the sentence the text is left aligned but this can be changed with the align key. should be dropped perhaps? -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-letter: problem with align
Am 08.07.2011 um 07:15 schrieb Peter Münster: So the sentence the text is left aligned but this can be changed with the align key. should be dropped perhaps? Like a few more things from the manual. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___