Re: [NTG-context] Enumeration counter way bychapter
Hi list, I tried the example below again with 2012003005 19:49 MkIV and it still shows 2.2 instead of 2.1 in the second enumeration. I am in desperate need for a fix for this. Did the interface change or is this broken? Thanks in advance for looking into this, Stefan On Sun, 26 Feb 2012 14:13:59 +0100, Stefan Müller wrote: Hi list, in the following example, I want the enumerations to be numbered as 1.1 and 2.1, respectively. What am I doing wrong? Using MkIV 201200221 14:02. \defineenumeration[myenum][way=bychapter, prefix=chapter] \starttext \chapter{Chapter} \startmyenum enum \stopmyenum \chapter{Chapter} \startmyenum enum \stopmyenum \stoptext Thanks for any advice! Stefan -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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] Combination: no gap between cells?
Hello, I'd like to print several frames of a precise size, one after other, e.g. 2 per row, 2 rows. I'm trying to use combination for this purpose - but I'd need to suppress any horizontal and vertical gap between cells. Is there any option which would cause this? My code so far: t-Prn.mkiv \starttext \startcombination[2*2] {\framed[width=5cm,height=4cm,align=flushleft,offset=0.5cm]{AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,align=flushleft,offset=0.5cm]{AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,align=flushleft,offset=0.5cm]{AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,align=flushleft,offset=0.5cm]{AAA\par Bb\par c}} \stopcombination \stoptext Something like \startcombination[space=none][2*2]... I've overlooked wiki (http://wiki.contextgarden.net/Combinations) but no such an option... TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t-Prn.mkiv Description: Binary data t-Prn.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Combination: no gap between cells?
This should work: \setupcombinations[distance=0mm] Pavel Dohnal 2012/3/8 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz Hello, I'd like to print several frames of a precise size, one after other, e.g. 2 per row, 2 rows. I'm trying to use combination for this purpose - but I'd need to suppress any horizontal and vertical gap between cells. Is there any option which would cause this? My code so far: t-Prn.mkiv \starttext \startcombination[2*2] {\framed[width=5cm,height=4cm,**align=flushleft,offset=0.5cm]{**AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,**align=flushleft,offset=0.5cm]{**AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,**align=flushleft,offset=0.5cm]{**AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,**align=flushleft,offset=0.5cm]{**AAA\par Bb\par c}} \stopcombination \stoptext Something like \startcombination[space=none]**[2*2]... I've overlooked wiki (http://wiki.contextgarden.**net/Combinationshttp://wiki.contextgarden.net/Combinations) but no such an option... TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] Combination: no gap between cells?
... Thanks for the hint (http://wiki.contextgarden.net/Reference/en/setupcombinations). The \setupcombinations[distance=0mm,inbetween=] suppresses both the horizontal and vertical gap. Best regards, Lukas On Thu, 08 Mar 2012 10:42:53 +0100, Pavel Dohnal pavel.doh...@twobits.cz wrote: This should work: \setupcombinations[distance=0mm] Pavel Dohnal 2012/3/8 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz Hello, I'd like to print several frames of a precise size, one after other, e.g. 2 per row, 2 rows. I'm trying to use combination for this purpose - but I'd need to suppress any horizontal and vertical gap between cells. Is there any option which would cause this? My code so far: t-Prn.mkiv \starttext \startcombination[2*2] {\framed[width=5cm,height=4cm,**align=flushleft,offset=0.5cm]{**AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,**align=flushleft,offset=0.5cm]{**AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,**align=flushleft,offset=0.5cm]{**AAA\par Bb\par c}} {\framed[width=5cm,height=4cm,**align=flushleft,offset=0.5cm]{**AAA\par Bb\par c}} \stopcombination \stoptext Something like \startcombination[space=none]**[2*2]... I've overlooked wiki (http://wiki.contextgarden.**net/Combinationshttp://wiki.contextgarden.net/Combinations) but no such an option... TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] enumeration numbering in the margin, title in body text
Hi all, I am new to ConTeXt and asked myself if it is possible to have only the number of an enumeration in the margin and the title in `serried` position. Here is an example of what I think: margin | text --- | blah blah | blah blah 1.1| Definition (something): blah | 1.2| Lemma: blah After digging a while in the documentation and code, I came to the conclusion that this is currently not possible. Then I tried some fiddling in the context code and this directly leads to my second question: I modified the file strc-des.mkiv. However, the changes seem to be ignored by my context binary. What did I do wrong? I also tried context --generate, but that also did not i make context aware of my changes. Any help would be appreciated Tobias ___ 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] enumeration numbering in the margin, title in body text
On 2012-03-08 Tobias Columbus tobias.colum...@googlemail.com wrote: I am new to ConTeXt and asked myself if it is possible to have only the number of an enumeration in the margin and the title in `serried` position. \setupitemize [inmargin] Then I tried some fiddling in the context code and this directly leads to my second question: I modified the file strc-des.mkiv. However, the changes seem to be ignored by my context binary. What did I do wrong? I also tried context --generate, but that also did not i make context aware of my changes. You have to recreate the format as well: context --generate context --make Regards Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Text Indentation and Space Around Headers
Hi All, I want to indent all text in a document except the chapter header text by a given amount. I have used the following to achieve it: \setupnarrower[left=3cm] and \startnarrower[left] \stopnarrower But I have the feeling that there has to be a better way of doing it. Secondly, how do I control the space around headers? I would like to reduce the big between the chapter header and the first paragraph. Any help will be very much appreciated. Regards, Emmanuel ___ 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] Problem with external cross-references
Hello Hans, Le 5 mars 2012 à 10:18, Hans Hagen a écrit : ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.31 int: english/english That version is quite old; I wouldn't be surprised if in that version loading of cross document references was not yet implemented fully. The current version doesn't use the mkii way anyway (no export option, different loading etc). If I am not mistaken, this is the last current (=stable) version. I have been using MkII for some time and I wanted to switch to MkIV as it seems the way to go. However I am not comfortable using a beta version for production purpose, especially as I am using ConTeXt to write test questions where a small misprint could have tragic consequences. Should I stick to MkII and wait for the next stable version ? Or is there a reasonably stable (e.g. pre-release) version that I could use ? -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France ___ 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] enumeration numbering in the margin, title in body text
Am 08.03.2012 um 12:10 schrieb Marco: On 2012-03-08 Tobias Columbus tobias.colum...@googlemail.com wrote: I am new to ConTeXt and asked myself if it is possible to have only the number of an enumeration in the margin and the title in `serried` position. \setupitemize [inmargin] Then I tried some fiddling in the context code and this directly leads to my second question: I modified the file strc-des.mkiv. The enumeration code is in strc-itm.mkvi, the file strc-des.mkvi (or strc-des.mkiv in older versions) is for the description code. However, the changes seem to be ignored by my context binary. What did I do wrong? I also tried context --generate, but that also did not i make context aware of my changes. You have to recreate the format as well: context --generate context --make You need “context --generate” only when you add new files. 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] Text Indentation and Space Around Headers
Am 08.03.2012 um 18:08 schrieb Emmanuel Asante: Hi All, I want to indent all text in a document except the chapter header text by a given amount. I have used the following to achieve it: \setupnarrower[left=3cm] and \startnarrower[left] \stopnarrower But I have the feeling that there has to be a better way of doing it. It’s easier to move the headings to the left. Secondly, how do I control the space around headers? I would like to reduce the big between the chapter header and the first paragraph. Any help will be very much appreciated. \setuphead[chapter][after={\blank[…]}] 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] Text Indentation and Space Around Headers
On 2012-03-08 Emmanuel Asante emmanuela.asa...@gmail.com wrote: I want to indent all text in a document except the chapter header text by a given amount. That's a strange way of doing things, if I get it right what you mean. If you want to have the number in the margin, you can use \setupheads [alternative=inmargin] or you can provide a negative indent for the heads \setupheads [margin=-2cm] which has the same effect as indenting everything else. Secondly, how do I control the space around headers? \setuphead [chapter] [ after=, % To remove the space %after={\blank[1cm]}, %after={\blank[2cm]}, ] Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Text Indentation and Space Around Headers
Thanks Wolfgang, it works. On Thu, Mar 8, 2012 at 10:37 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 08.03.2012 um 18:08 schrieb Emmanuel Asante: Hi All, I want to indent all text in a document except the chapter header text by a given amount. I have used the following to achieve it: \setupnarrower[left=3cm] and \startnarrower[left] \stopnarrower But I have the feeling that there has to be a better way of doing it. It’s easier to move the headings to the left. Secondly, how do I control the space around headers? I would like to reduce the big between the chapter header and the first paragraph. Any help will be very much appreciated. \setuphead[chapter][after={\blank[…]}] 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] Text Indentation and Space Around Headers
On Thu, Mar 8, 2012 at 10:41 AM, Marco net...@lavabit.com wrote: On 2012-03-08 Emmanuel Asante emmanuela.asa...@gmail.com wrote: I want to indent all text in a document except the chapter header text by a given amount. That's a strange way of doing things, if I get it right what you mean. If you want to have the number in the margin, you can use \setupheads [alternative=inmargin] or you can provide a negative indent for the heads \setupheads [margin=-2cm] which has the same effect as indenting everything else. Secondly, how do I control the space around headers? \setuphead [chapter] [ after=, % To remove the space %after={\blank[1cm]}, %after={\blank[2cm]}, ] Marco Marco, No, I don't want the number in the margin. As you and Wolfgang have suggested, it is easier to move the headers to the left than to move the text to the right. I will play around with it and see what I get. 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 ___ ___ 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] \setuppagenumber problem
The following code, \startcomponent \setuphead[title][page=yes] \setuppagenumber[numberconversion=romannumerals] \setuppagenumbering[alternative=doublesided] \setuppagenumbering[location=,] \setupheader[state=high] \definehead[FMTitle][title] \setuphead[FMTitle][header=high,alternative=middle,style={\tfb\rm},footer={}] \setupheadertexts[text] [\cap{A.\ U.\ Thor}] [\pagenumber] [\pagenumber] [\em{Journal}] \FMTitle[Preface]{Preface} \dorecurse{6}{\input knuth} \blank[big] And here I should like to recall what was said earlier in this \goto{Preface}[Preface] by \dots \stopcomponent fails on two counts: the page numbers are given in arabic numerals not roman numerals, and the cross-reference is ignored. The failure in the cross-reference may be due to a bug involving \startcomponent, if I understand Wolfgang correctly, and was wondering if the same might be true for \setuppagenumber[...]. If it is not, how may I fix the pagination? I am running the latest ConTeXT standalone (MKIV). 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] \setuppagenumber problem
Am 08.03.2012 um 19:06 schrieb Alan Bowen: The following code, \startcomponent \setuphead[title][page=yes] \setuppagenumber[numberconversion=romannumerals] \setuppagenumbering[alternative=doublesided] \setuppagenumbering[location=,] \setupheader[state=high] \definehead[FMTitle][title] \setuphead[FMTitle][header=high,alternative=middle,style={\tfb\rm},footer={}] \setupheadertexts[text] [\cap{A.\ U.\ Thor}] [\pagenumber] [\pagenumber] Use “[pagenumber]” (without the backslash) because \pagenumber prints the raw value of the counter without the conversion. [\em{Journal}] \FMTitle[Preface]{Preface} \dorecurse{6}{\input knuth} \blank[big] And here I should like to recall what was said earlier in this \goto{Preface}[Preface] by \dots \stopcomponent fails on two counts: the page numbers are given in arabic numerals not roman numerals, and the cross-reference is ignored. The failure in the cross-reference may be due to a bug involving \startcomponent, if I understand Wolfgang correctly, and was wondering if the same might be true for \setuppagenumber[...]. If it is not, how may I fix the pagination? The component is not the problem in this case, for \goto you have to enable the interactive features (\setupinteraction[state=start]). 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] \setuppagenumber problem
Thanks, Wolfgang. You are right. Poor code copy/pasting on my part. Sorry for that bit of noise. But what of the pagination problem? Is there a bug or am I missing something for that too? A. On Thu, Mar 8, 2012 at 2:02 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 08.03.2012 um 19:06 schrieb Alan Bowen: The following code, \startcomponent \setuphead[title][page=yes] \setuppagenumber[numberconversion=romannumerals] \setuppagenumbering[alternative=doublesided] \setuppagenumbering[location=,] \setupheader[state=high] \definehead[FMTitle][title] \setuphead[FMTitle][header=high,alternative=middle,style={\tfb\rm},footer={}] \setupheadertexts[text] [\cap{A.\ U.\ Thor}] [\pagenumber] [\pagenumber] Use “[pagenumber]” (without the backslash) because \pagenumber prints the raw value of the counter without the conversion. [\em{Journal}] \FMTitle[Preface]{Preface} \dorecurse{6}{\input knuth} \blank[big] And here I should like to recall what was said earlier in this \goto{Preface}[Preface] by \dots \stopcomponent fails on two counts: the page numbers are given in arabic numerals not roman numerals, and the cross-reference is ignored. The failure in the cross-reference may be due to a bug involving \startcomponent, if I understand Wolfgang correctly, and was wondering if the same might be true for \setuppagenumber[...]. If it is not, how may I fix the pagination? The component is not the problem in this case, for \goto you have to enable the interactive features (\setupinteraction[state=start]). 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] \setuppagenumber problem
Am 08.03.2012 um 20:34 schrieb Alan Bowen: Thanks, Wolfgang. You are right. Poor code copy/pasting on my part. Sorry for that bit of noise. But what of the pagination problem? Is there a bug or am I missing something for that too? Write \setupheadertexts[…][pagenumber][pagenumber][…] with “pagenumber” as keyword and not as 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] enumeration numbering in the margin, title in body text
On Thu, 8 Mar 2012, Wolfgang Schuster wrote: Am 08.03.2012 um 12:10 schrieb Marco: On 2012-03-08 Tobias Columbus tobias.colum...@googlemail.com wrote: I am new to ConTeXt and asked myself if it is possible to have only the number of an enumeration in the margin and the title in `serried` position. \setupitemize [inmargin] Then I tried some fiddling in the context code and this directly leads to my second question: I modified the file strc-des.mkiv. The enumeration code is in strc-itm.mkvi, the file strc-des.mkvi (or strc-des.mkiv in older versions) is for the description code. @Wolfgang: You are mixing enumeration and item groups. The new enumeration code is in strc-enu.mkvi. @Tobias: You can try playing around with titlecommand and numbercommand parameters. 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] enumeration numbering in the margin, title in body text
Am 08.03.2012 um 20:50 schrieb Aditya Mahajan: On Thu, 8 Mar 2012, Wolfgang Schuster wrote: Am 08.03.2012 um 12:10 schrieb Marco: On 2012-03-08 Tobias Columbus tobias.colum...@googlemail.com wrote: I am new to ConTeXt and asked myself if it is possible to have only the number of an enumeration in the margin and the title in `serried` position. \setupitemize [inmargin] Then I tried some fiddling in the context code and this directly leads to my second question: I modified the file strc-des.mkiv. The enumeration code is in strc-itm.mkvi, the file strc-des.mkvi (or strc-des.mkiv in older versions) is for the description code. @Wolfgang: You are mixing enumeration and item groups. The new enumeration code is in strc-enu.mkvi. D’oh! @Tobias: You can try playing around with titlecommand and numbercommand parameters. Or simply use inmargin or leftmargin for the alternative key. 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] \setuppagenumber problem
Again, many thanks, Wolfgang. That’s got it. The entry on \setupheadertexts on the wiki should be updated at some point. But as you will probably agree, I am hardly the one to undertake that. There are just so many critical differences in coding for MKIV and for MKII. Still, the advance in working with fonts is easily worth the effort. So thanks too for your patience. All best, Alan On Thu, Mar 8, 2012 at 2:38 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 08.03.2012 um 20:34 schrieb Alan Bowen: Thanks, Wolfgang. You are right. Poor code copy/pasting on my part. Sorry for that bit of noise. But what of the pagination problem? Is there a bug or am I missing something for that too? Write \setupheadertexts[…][pagenumber][pagenumber][…] with “pagenumber” as keyword and not as 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 ___ ___ 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] positioning of backgrounds
Hi all, I may have missed something here: I'm aware that processing backgrounds has changed. The following example places the background layer completely different in the current beta and when processed with a version from November: \definelayer[test][x=1mm,y=1mm,width=\paperwidth,height=22mm] \setlayer[test][x=104mm,y=11mm]{\externalfigure[cow][width=56mm]} \setupbackgrounds[page][background=test] \starttext Hello \stoptext Is that to be expected (i.e. should I adapt my letter template which positions a university logo on the page), or is that a temporary glitch and has to be fixed eventually? All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] positioning of backgrounds
Am 08.03.2012 um 21:37 schrieb Thomas A. Schmitz: Hi all, I may have missed something here: I'm aware that processing backgrounds has changed. The following example places the background layer completely different in the current beta and when processed with a version from November: \definelayer[test][x=1mm,y=1mm,width=\paperwidth,height=22mm] \definelayer[test][width=\paperwidth,height=\paperheight] 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] positioning of backgrounds
On 03/08/2012 09:46 PM, Wolfgang Schuster wrote: \definelayer[test][width=\paperwidth,height=\paperheight] Wolfgang Thanks Wolfgang, this works! So the old code was - wrong, obsolete, weird? Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] positioning of backgrounds
Am 08.03.2012 um 22:07 schrieb Thomas A. Schmitz: On 03/08/2012 09:46 PM, Wolfgang Schuster wrote: \definelayer[test][width=\paperwidth,height=\paperheight] Wolfgang Thanks Wolfgang, this works! So the old code was - wrong, obsolete, weird? Not sure, when you process your original example where you have to set the layer height to 22mm MkIV makes a box with a height of 22mm at the bottom of the page and moves from the top of this box 11mm downwards and your image disappears while MkII positions the box at the top of the page. Another solution with the letter module: \usemodule[letter] \defineletterelement[layer][lettermain][cow]{\externalfigure[cow][width=56mm]} \setupletterlayer [lettermain] [x=104mm, y=11mm, %state=repeat, alternative=cow] % can be used instead of \defineletterlement % %\startsetups[letter:layer:letterman] %\externalfigure[cow][width=56mm] %\stopsetups % %\setupletterlayer % [lettermain] % [x=104mm, % y=11mm, % alternative=setups] \startletter \dorecurse{10}{\input knuth\par} \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] How to Turn off the Table of Contents Title
Hi All, How do I turn off the title on the top of the table of contents ie the text Content that appears on top of the table? Regards, Emmanuel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] confirmed bug with \setuplist[alternative=d, margin=2em]
Hello Hans, the following code shows a bug with latest beta (first item on content list is indented, but the second isn't): \setuplist[chapter][alternative=d,margin=2em] \starttext \completecontent \part{Part} \chapter{Chapter} a \part{Part} \chapter{Chapter} b \stoptext Wolfgang kindly suggested this fix (that works also with latest beta): strc-lst.mkvi: \def\strc_lists_place_indeed#tag#list#settings% {\begingroup \edef\currentlist{#tag}% \setupcurrentlist[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag}}% \doplacestructurelist % maybe inline {#list}% {\listparameter\c!criterium}% {\listparameter\c!number}% {\listparameter\c!extras}% {\listparameter\c!order}% % \stoplistreferences + \par \endgroup \strc_lists_set_mode} I wonder whether it could be included in latest beta. Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to Turn off the Table of Contents Title
On 2012-03-08 Emmanuel Asante emmanuela.asa...@gmail.com wrote: How do I turn off the title on the top of the table of contents ie the text Content that appears on top of the table? Use \placecontent instead of \completecontent Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___