Re: [NTG-context] References to annotations
Am 06.10.2011 um 03:10 schrieb Michael Green: That works. Thank you very much! Coincidentally, I found a similar issue with the letter module. The table in the example below will be numbered Table 2 \usemodule[letter] \starttext \startletter \placetable[here][]{title} \starttable[|l|] \NC That’s all \NC\MR \stoptable \stopletter \stoptext You need the following mode setting: \usemodule[letter] \startletter \startnotmode[*trialtypesetting] \placetable[here][]{title} \starttable[|l|] \NC That’s all \NC\MR \stoptable \stopnotmode \stopletter Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] interaction colors and page break
Hi, I think I found a small bug. The interaction colors interact strangely with page breaks in certain cases. See the following example. I'm using ConTeXt 201110003 12:59 MkIV. \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. \stoptext 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 ___
Re: [NTG-context] interaction colors and page break
On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller warrence@gmx.de wrote: Hi, I think I found a small bug. The interaction colors interact strangely with page breaks in certain cases. See the following example. I'm using ConTeXt 201110003 12:59 MkIV. \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. \stoptext true; just put \page and colors are green % \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum \page Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. \stoptext % maybe a problem with the MVL -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] interaction colors and page break
On 06.10.2011 16:19, luigi scarso wrote: On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müllerwarrence@gmx.de wrote: Hi, I think I found a small bug. The interaction colors interact strangely with page breaks in certain cases. See the following example. I'm using ConTeXt 201110003 12:59 MkIV. [...] true; just put \page and colors are green Currently I'm using the colors only while working on my document, I'll turn them off for printing. So that's not really an issue for me. Putting \page doesn't really help. In my actual project file there are two more items in the itemize and the page break is between item 2 and 3. Kind regards, Stefan. % \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum \page Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. \stoptext % maybe a problem with the MVL ___ 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] interaction colors and page break
On Thu, Oct 6, 2011 at 4:31 PM, Stefan Müller warrence@gmx.de wrote: On 06.10.2011 16:19, luigi scarso wrote: On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müllerwarrence@gmx.de wrote: Hi, I think I found a small bug. The interaction colors interact strangely with page breaks in certain cases. See the following example. I'm using ConTeXt 201110003 12:59 MkIV. [...] true; just put \page and colors are green Currently I'm using the colours only while working on my document, I'll turn them off for printing. So that's not really an issue for me. Putting \page doesn't really help. In my actual project file there are two more items in the itemize and the page break is between item 2 and 3. \page was only a way to show that yes, the colours should be green and no a way to patch. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] interaction colors and page break
On 06.10.2011 16:44, luigi scarso wrote: On Thu, Oct 6, 2011 at 4:31 PM, Stefan Müllerwarrence@gmx.de wrote: On 06.10.2011 16:19, luigi scarso wrote: On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müllerwarrence@gmx.dewrote: Hi, I think I found a small bug. The interaction colors interact strangely with page breaks in certain cases. See the following example. I'm using ConTeXt 201110003 12:59 MkIV. [...] true; just put \page and colors are green Currently I'm using the colours only while working on my document, I'll turn them off for printing. So that's not really an issue for me. Putting \page doesn't really help. In my actual project file there are two more items in the itemize and the page break is between item 2 and 3. \page was only a way to show that yes, the colours should be green and no a way to patch. Oh yes, of course. Sorry, I misunderstood. 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 ___
Re: [NTG-context] interaction colors and page break
Sorry, I forgot to mention (and maybe it's obvious) that the problem only seems to appear in the paragraph directly after the enumeration, so the colors are correct in last paragraph in: \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. Step \in[step] of \in{Enumeration}[enum]. These numbers are green, as expected. \stoptext 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 ___
Re: [NTG-context] interaction colors and page break
The same thing happens here when referring to a figure using \setupinteraction[state=start, focus=standard, style=,color=] and \definereferenceformat[infig][left={(Abb. },right={)}] In one place it generates a red link, on another page a black one. In both cases the figures are on the same page as the link in the text. I have no idea what could cause this, both figures and both references are using the same commands and options. -Ursprüngliche Nachricht- Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Stefan Müller Gesendet: Donnerstag, 6. Oktober 2011 16:55 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] interaction colors and page break Sorry, I forgot to mention (and maybe it's obvious) that the problem only seems to appear in the paragraph directly after the enumeration, so the colors are correct in last paragraph in: \setupinteraction[state=start] \setupitemize[each][n, packed] \defineenumeration[myenum][text=Enumeration, location=top] \starttext \dorecurse{9}{\input ward \par} \startmyenum[enum] \startitemize \item Go to step \in[step]. \item[step] Step. \stopitemize \stopmyenum Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red, should they? They are on the new page. Step \in[step] of \in{Enumeration}[enum]. These numbers are green, as expected. \stoptext 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 __ _ ___ 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] interaction colors and page break
On Thu, Oct 6, 2011 at 5:42 PM, Christian meta...@gmx.de wrote: The same thing happens here when referring to a figure using \setupinteraction[state=start, focus=standard, style=,color=] and \definereferenceformat[infig][left={(Abb. },right={)}] In one place it generates a red link, on another page a black one. In both cases the figures are on the same page as the link in the text. I have no idea what could cause this, both figures and both references are using the same commands and options. hm, do you have an example ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] interaction colors and page break
Here you go: %% \setupinteraction[state=start, focus=standard, style=,color=] \setupreferencing[interaction=all] \definereferenceformat[infig][left={(Abb. },right={)}] \starttext \input knuth \infig[cow1] \placefigure[here][cow1]{A Cow}{\externalfigure[cow][width=0.3\textwidth]} \page \input knuth \infig[cow2] \page \input knuth \placefigure[here][cow2]{Another Cow}{\externalfigure[cow][width=0.3\textwidth]} \stoptext %% Seems that \page has indeed something to do with this, although I do not use this command in my other document. Here I had to use it in order to produce a black link for the quick example. -Ursprüngliche Nachricht- Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von luigi scarso Gesendet: Donnerstag, 6. Oktober 2011 17:53 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] interaction colors and page break On Thu, Oct 6, 2011 at 5:42 PM, Christian meta...@gmx.de wrote: The same thing happens here when referring to a figure using \setupinteraction[state=start, focus=standard, style=,color=] and \definereferenceformat[infig][left={(Abb. },right={)}] In one place it generates a red link, on another page a black one. In both cases the figures are on the same page as the link in the text. I have no idea what could cause this, both figures and both references are using the same commands and options. hm, do you have an example ? -- 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 __ _ ___ 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] Alphabetical sort
Hi! Please, advise me what I can do to alphabetically sort an itemized list? (I have list of songs, and want them to be alphabetically sorted, as an option ). \startitemize[n] %something like 'sort' key would be very useful \item Fly me to the moon \item Hit the road jack \item Sway ... Regards, Vyatcheslav ___ 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] Alphabetical sort
Am 06.10.2011 um 20:11 schrieb Vyatcheslav Yatskovsky: Hi! Please, advise me what I can do to alphabetically sort an itemized list? (I have list of songs, and want them to be alphabetically sorted, as an option ). \startitemize[n] %something like 'sort' key would be very useful \item Fly me to the moon \item Hit the road jack \item Sway … \definesorting[song][songs] \unexpanded\def\SongEntry#1#2#3% {\startitemize[packed] \startitem#2\stopitem \stopitemize} \starttext \song{Hit the road jack} \song{Sway} \song{Fly me to the moon} \placelistofsorts[song][criterium=all,command=\SongEntry] \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] vertically aligned side margin footnotes
Hi and thanks for your help. it works except that when the sidenote is too long it overflows the page. Is there a way to make the note continuing on the next page if it doesn't fit? Thanks again, Alex On 06/09/2011 22:27, Wolfgang Schuster wrote: Am 06.09.2011 um 18:25 schrieb Alexandre Leray: Hi again, is there a way to typeset footnotes in the margin, but placed at the same vertical distance as the text they refer to? No, but you can combine \inmargin and a counter: \usemodule[annotation] \define[2]\SidenoteCommand {\rawnumber[sidenote]% \inright{#1: #2}} \defineannotation [sidenote] [alternative=command, command=\SidenoteCommand, number=yes] \starttext text text\sidenote{this is a note} text text \input knuth text text\sidenote{this is a note} text 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Inits without space in bibliography
On Wed 05 Oct 2011, Charles wrote: I would like (the journal actually) to remove the spaces between initials (C.E. instead of C. E.). in the bibliography. It seems initials are created during the .bib to .bbl conversion but I haven't find anything in the .bst style file. Can you please help ? I've looked at doing something similar, but haven't had time to get to the bottom of it. In my case I'm using the cont-au.bst file. I think the magic happens in the format.names function, which in turn calls bibtex's internal format.name$ function. This stuff is documented in Patashnik's bibtex docs -- see http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibtex.pdf section 5 (and especially 5.4) which explains what all the {vv}s and {ll}s etc. do. On a quick reading, it looks to me as though changing the line s nameptr {f} format.name$ add.period$ 't := to s nameptr {f{}} format.name$ add.period$ 't := should remove the spacing, but I haven't tested it. Hope this helps, and good luck! Pont ___ 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] Counter for section heads
I want to obtain the total number of sections at a particular depth, and thought that I could get that using \laststructurecounter{}. But, I cannot find the name of the counter associated with sections. Is there a macro or a lua function that returns the name of a counter for the current section (that can then be used by \laststructurecounter)? Is there any other way to find the number of sections at the current depth. For example, this document ~~~ \section {one} \subsection{1} \subsection{2} \subsection{3} ~~~ has one section at depth 1 and three sectons at depth 2. 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 ___