Re: [NTG-context] Numbers in appendix roman, but want arabic
Am 13.02.2015 um 09:45 schrieb Mikael P. Sundqvist mic...@gmail.com: Hi, with the example below, I have two problems (that are probably related). In the appendix, the Theorem is numbered Theorem II instead of Theorem 2, i.e. roman numbers are used instead of arabic ones. Also, when I refer to Theorem 1 from the appendix , it says Theorem I. Again with roman number instead of arabic. I would prefer Theorem 1. So, the question reads: How can I get arabic numbers also in the appendix? (The appendix itself has the letter A as I want it to) /Mikael \starttext \defineenumeration[Theorem] \defineconversionset [bodypart:sectioncounter] [n,n,n] [n] \defineconversionset [appendix:sectioncounter] [n,n,A] [n] \setuphead[chapter,section][sectionconversionset=sectioncounter] \chapter{Foo} \startTheorem[thm:main] This is a theorem. \stopTheorem \startappendices \title{Appendix} \section{This is the first appendix} \startTheorem This is another theorem. \stopTheorem What if we refer to the first theorem, Theorem~\in[thm:main]? \stopappendices \stoptext There was a similar problem a few days ago with a solution by Hans [1]. [1] http://www.ntg.nl/pipermail/ntg-context/2015/080866.html PS: You have to change \setupcounters to \setupcounter to fix the error message from Hans solution because there is only a singular version of the counter command. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Numbers in appendix roman, but want arabic
On Sat, Feb 14, 2015 at 6:32 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 13.02.2015 um 09:45 schrieb Mikael P. Sundqvist mic...@gmail.com: Hi, with the example below, I have two problems (that are probably related). In the appendix, the Theorem is numbered Theorem II instead of Theorem 2, i.e. roman numbers are used instead of arabic ones. Also, when I refer to Theorem 1 from the appendix , it says Theorem I. Again with roman number instead of arabic. I would prefer Theorem 1. So, the question reads: How can I get arabic numbers also in the appendix? (The appendix itself has the letter A as I want it to) /Mikael \starttext \defineenumeration[Theorem] \defineconversionset [bodypart:sectioncounter] [n,n,n] [n] \defineconversionset [appendix:sectioncounter] [n,n,A] [n] \setuphead[chapter,section][sectionconversionset=sectioncounter] \chapter{Foo} \startTheorem[thm:main] This is a theorem. \stopTheorem \startappendices \title{Appendix} \section{This is the first appendix} \startTheorem This is another theorem. \stopTheorem What if we refer to the first theorem, Theorem~\in[thm:main]? \stopappendices \stoptext There was a similar problem a few days ago with a solution by Hans [1]. [1] http://www.ntg.nl/pipermail/ntg-context/2015/080866.html PS: You have to change \setupcounters to \setupcounter to fix the error message from Hans solution because there is only a singular version of the counter command. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Thank you very much, that works very fine. Also, sorry all for asking the same question. I searched the list for this but missed it somehow. /Mikael ___ 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] Footnotes and Marginal texts
Greetings, I am working on a document with many annotations of different types, and have a couple of questions. (Before the questions, though, I am quite impressed with ConTeXt so far. It is much nicer to work with than any of the TeX or LaTeX packages I have worked with before.) First, what is the preferred way to get marginal text? Is \margintext, \inmargin, or some other the current best practice? Second, is there a way to get marginal text for a footnote? Here is a minimal working example: \starttext Text for the\footnote{A\margintext{Where am I?} footnote.} main\margintext{I am here.} body. \stoptext Finally, is there a way to have different classes of footnotes? I would like to have three classes of footnotes to be displayed something like: —— 1. first footnote of class 1 2. second footnote of class 1. —— a. first footnote of class 2. b. second footnote of class 2. —— 1. first footnote of class 3. 2. second footnote of class 3. That is, the footnotes of each class should appear together, with a “normal” footnote rule above them. Each class of footnotes should also have its own numbering scheme. Footnotes of class 1 are “regular” footnotes in the main text body. Footnotes of class 2 will be longer, and will occasionally be more than one paragraph. They, also, will occur in the main text body. To complicate matters, they may have marginal notes and footnotes (of class 3). Footnotes of class 3 are footnotes that occur in footnotes of class 2. Many thanks, Robert ___ 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] replacing images in PDF documents
Dear list, I have the following situation, that I would like to solve using ConTeXt. I have to generate a bunch of PDF documents daily, that someone else has to validate (put a stamp on it [let’s put it that way]). It might be a physical stamp, but it might be also a vector image. One of the issues is that the stamp has a different place in each document (almost). Another issue is that the stamp should be added after the document is generated, not before. Having the following sample: \starttext I want this image replaced: \externalfigure[cow][scale=200] \stoptext After generating the document (and not modifiying or recompiling the source), is there a way to replace the image with another one? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___