Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed
> On 2 May 2020, at 17:08, Wolfgang Schuster > wrote: [comprehensive answer snipped] Thank-you, very helpful. > I attached a slightly modified version of your project structure to show a > different way to organize documents. What I would change is to use a better > section name for each article, e.g. \Article (or \startArticle) is better > than \MyTitle as first level header in each article. Agreed - the \MyTitle was just for the example. Your structure is nice though - less complicated than the one I cobbled together looking at the Wiki example. -- Bruce Horrocks Hampshire, UK ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed
n...@scorecrow.com schrieb am 02.05.2020 um 17:14: I'm having trouble with \definehead behaving differently depending upon whether I process a file that includes it via a \input statement versus a project structure that calls it via an environment file referenced from a component file. Overall aim: I currently produce a small circulation journal in Word that I'm hoping to switch to ConTeXt. Each article is written by a different author and I currently provide a Word template so they can see how their article will eventually look and how long it is, etc. I want to do the same for the ConTeXt version so I have created a template tex file they can simply \input at the top of their article. Processing the single article gives the desired output. So far so good. When I receive the articles, I want to use the project/product/component structure to allow me to produce an entire issue of the journal in one go. (I would simply comment out the \input line and add \startproject \startcomponent etc lines as necessary from each received article.) Problem: I've created a custom chapter heading, but the font size changes depending on whether I'm processing the \input version of the article or the \component version and I don't know why. Obviously, I would like the heading to be the same in each case so that authors see what I see and vice versa. Your simple version sets the bodyfont before \starttext begin example \setupbodyfont[termes,14pt] \starttext {\bfc Cheesy double boxed title} \stoptext end example while your complexer version loads the bodyfont after \starttext (\startcomponent acts here as \starttext) begin example \starttext \setupbodyfont[termes,14pt] {\bfc Cheesy double boxed title} \stoptext end example When you use a non standard font size (e.g. 14pt) size switches are sometimes ignored even with ConTeXt's fallback mechanism. To get the correct size for the header you can either use a standard font size (14.4pt) or you add the following line before you set the global font for your document (ConTeXt does this by itself in most cases but it can fail). \definebodyfontenvironment [14pt] I attached a slightly modified version of your project structure to show a different way to organize documents. What I would change is to use a better section name for each article, e.g. \Article (or \startArticle) is better than \MyTitle as first level header in each article. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed
And the attachment (d'oh): <> ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \definehead behaving differently when in an environment file versus \input'ed
I'm having trouble with \definehead behaving differently depending upon whether I process a file that includes it via a \input statement versus a project structure that calls it via an environment file referenced from a component file. Overall aim: I currently produce a small circulation journal in Word that I'm hoping to switch to ConTeXt. Each article is written by a different author and I currently provide a Word template so they can see how their article will eventually look and how long it is, etc. I want to do the same for the ConTeXt version so I have created a template tex file they can simply \input at the top of their article. Processing the single article gives the desired output. So far so good. When I receive the articles, I want to use the project/product/component structure to allow me to produce an entire issue of the journal in one go. (I would simply comment out the \input line and add \startproject \startcomponent etc lines as necessary from each received article.) Problem: I've created a custom chapter heading, but the font size changes depending on whether I'm processing the \input version of the article or the \component version and I don't know why. Obviously, I would like the heading to be the same in each case so that authors see what I see and vice versa. I've attached a small zip file with a directory structure containing a minimal example. There are two directories: "input_version" and "project" version and the article.pdf files in each show the difference in the heading. I'm using TeX Live 2020 on a Mac. The console reports: ConTeXt ver: 2020.03.10 14:44 MKIV beta fmt: 2020.4.18 int: english/english -- Bruce Horrocks Hampshire, UK ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug/change in definehead?
On 6-9-2011 14:55, Steffen Wolfrum wrote: Hi, another thing in todays beta: This small exmaple ... \definehead[TopLevel,MyLevel] [chapter] \setuphead[TopLevel,MyLevel][style=\bf,textstyle={\kerncharacters[.75]}, align=flushleft,alternative=paragraph] \starttext \startTopLevel[title={This is a test}] text \stopTopLevel \stoptext just do two \definehead's instead of combining it Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug/change in definehead?
Hi, another thing in todays beta: This small exmaple ... \definehead[TopLevel,MyLevel] [chapter] \setuphead[TopLevel,MyLevel][style=\bf,textstyle={\kerncharacters[.75]}, align=flushleft,alternative=paragraph] \starttext \startTopLevel[title={This is a test}] text \stopTopLevel \stoptext ... gives an error: ! Undefined control sequence. system > tex > error on line 14 in file uzguzguzguzg.tex: Undefined control sequence ... 4 5 6 \definehead[TopLevel,MyLevel] [chapter] 7 8 \setuphead[TopLevel,MyLevel] [style=\bf,textstyle={\kerncharacters[.75]}, align=flushleft,alternative=paragraph] 9 10 11 12 \starttext 13 14 >> \startTopLevel[title={This is a test}] 15 16 text 17 18 \stopTopLevel 19 20 \stoptext 21 22 23 24 l.14 \startTopLevel [title={This is a test}] ? Is this in intended? 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] definehead and marking
On 18-7-2011 9:35, Aditya Mahajan wrote: How do I get marks with user defined heads? Minimal example: \definehead[lecture][section-1] \starttext \lecture{test} Marking is not working: \getmarking[lecture]? \stoptext \definehead[lecture][chapter] \setupheadertexts[lecture] \starttext \lecture{testa} Marking is working \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] definehead and marking
On Mon, 18 Jul 2011, Wolfgang Schuster wrote: Am 18.07.2011 um 21:35 schrieb Aditya Mahajan: How do I get marks with user defined heads? Minimal example: \definehead[lecture][section-1] \definehead[lecture][section=section-1] D'oh. Thanks. \starttext \lecture{test} Marking is not working: \getmarking[lecture]? Marking is not working: \placerawheadtext[lecture]? Use marks only for elements which are added after the page is finished, e.g. headers and footers. I needed the marks for headers and footers. For the minimal example, I added the marks in text. Thanks a lot. 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] definehead and marking
Am 18.07.2011 um 21:35 schrieb Aditya Mahajan: > How do I get marks with user defined heads? > > Minimal example: > > > \definehead[lecture][section-1] \definehead[lecture][section=section-1] > \starttext > > \lecture{test} > > Marking is not working: \getmarking[lecture]? Marking is not working: \placerawheadtext[lecture]? Use marks only for elements which are added after the page is finished, e.g. headers and footers. 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] definehead and marking
How do I get marks with user defined heads? Minimal example: \definehead[lecture][section-1] \starttext \lecture{test} Marking is not working: \getmarking[lecture]? \stoptext Thanks, 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] TOC look broken by \definehead
Thank you, it works well now. The directory "c:\ConTeXt\tex\texmf-cache\luatex-cache\context\2448223e6631addb83df348d74153606" must have been deleted manually and "mtxrun --generate" must have been called to make the modified "strc-sec.mkiv" work. Lukas On Mon, 27 Jun 2011 10:17:09 +0200, Wolfgang Schuster wrote: Am 27.06.2011 um 09:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello all, the TOC look depends on whether or not another head was defined: I sent a fix to the dev list. Wolfgang -- 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 ___
Re: [NTG-context] TOC look broken by \definehead
Am 27.06.2011 um 09:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello all, > > the TOC look depends on whether or not another head was defined: I sent a fix to the dev list. 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] TOC look broken by \definehead
Hello all, the TOC look depends on whether or not another head was defined: \definehead[CHAPTER][chapter] \definehead[SECTION][section] % TRY TO COMMENT THIS LINE! \definecombinedlist[content][chapter,CHAPTER] \starttext \placecontent \page \chapter{Cha1} \CHAPTER{Cha2} \chapter{Cha3} \chapter{Cha4} \CHAPTER{Cha5} \stoptext Both PDFs - generated with/without "\definehead[SECTION][section]" - are attached. If the definition of \SECTION is present, TOC members generated by \CHAPTER are shifted. Why? - This seems to me a bit weird. Is there a way how to keep the TOC (non-shifted) look? (WinXP, ConTeXt ver: 2011.06.19 14:17 MKIV fmt: 2011.6.23) 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 test-sec.mkiv Description: Binary data test-sec1.pdf Description: Adobe PDF document test-sec2.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] Problem with \definehead
Don’t misuse headings for your titlepage. As a titlepage is something special you can use \midaligned, \definedfont etc. to format it, e.g. Thanks for the answer, but - - to describe better my situation: I'm not creating a typical book, but a special kind of report, with many code generated by Lua, many \typefiles and many included PDFs. And here, there are heads being used as: - "normal" heads (left-aligned; appended by normal text) and - "title-like" heads (mid-aligned) which should stand alone on a page (e.g. being appended by other pdf documents on the next page). Both kinds of heads should be numbered and should be involved to TOC; so in this point of view, they have the same status. So e.g.: --- (page) --- Chapter 1 <- Normally left-aligned Section 1.1<- Normally left-aligned Some text some text some text some text --- (page) --- Chapter 2<- Mid-aligned Section 2.1 <- Mid-aligned --- (page) --- ++ | Another| | pdf| ++ --- (page) --- So "Chapter 1" and "Section 1.1" are "normal" heads, probably typeset by \chapter and \section. As my primary intention was not to "force" normal heads to be aligned otherwise, I derived new head styles \chapterMiddle and \sectionMiddle, which are used to generate "Chapter 2" and "Section 2.1". But the problem is that TOC becomes visually "crashed" once \sectionMiddle has been defined. So how to solve it? 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 ___
Re: [NTG-context] Problem with \definehead
Am 23.06.2011 um 11:03 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Its goal is to define \(start/stop)TitlePage command in which heads will be > centred (although they are not mid-aligned by default). > > (I don't know if my approach is the best - I'm using \chapterMiddle instead > of \chapter for this, which is defined as mid-aligned). > > A \chapterMiddle is derrived from \chapter and has middle alignment. > > I would need to do a similar thing with \sectionMiddle. > > The problem is that when I derive a next style - > "\definehead[sectionMiddle][section]" (try to comment the proper line), look > of the TOC changes (?!) - some extra space before "Cha2" appears; see both > test21.pdf and test22.pdf. > > So how to keep the same look of the TOC? > > And - would you recommend any better solution how to define > \(start/stop)command which would force heads to be mid-aligned? Don’t misuse headings for your titlepage. As a titlepage is something special you can use \midaligned, \definedfont etc. to format it, e.g. \starttext \starttextmakeup[align=middle] \definedfont[SansBold sa 2]My Document \stoptextmakeup … \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] Problem with \definehead
... A simplified piece of code - the result still depends on presence of "\definehead[sectionMiddle][section]": \definehead[chapterMiddle][chapter] \setuphead[chapterMiddle][align=middle] \definehead[sectionMiddle][section] % Try to comment this line! \definecombinedlist[content][chapter,chapterMiddle] %%% \starttext \placecontent \page \chapter{Cha1} \chapterMiddle{ChaM} \chapter{Cha3} \stoptext Any idea? 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 test2.mkiv Description: Binary data test21.pdf Description: Adobe PDF document test22.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 ___
[NTG-context] Problem with \definehead
Hello, please look at the following minimal example: \definehead[chapterMiddle][chapter] \setuphead[chapterMiddle][align=middle] \definehead[sectionMiddle][section] % Try to comment this line! \definecombinedlist[content][part,chapter,chapterMiddle] \setupcombinedlist[content][alternative=c] \setuplist [chapter,chapterMiddle] [alternative=b,before=\blank,after=\blank,style=bold] % Commands \def\startTitlePage{ \bgroup \let\chapter=\chapterMiddle } \def\stopTitlePage{% \egroup \page } %%% \starttext \placecontent % = TOC \page \chapter{Cha1} \startTitlePage \chapter{Cha2} \stopTitlePage \stoptext Its goal is to define \(start/stop)TitlePage command in which heads will be centred (although they are not mid-aligned by default). (I don't know if my approach is the best - I'm using \chapterMiddle instead of \chapter for this, which is defined as mid-aligned). A \chapterMiddle is derrived from \chapter and has middle alignment. I would need to do a similar thing with \sectionMiddle. The problem is that when I derive a next style - "\definehead[sectionMiddle][section]" (try to comment the proper line), look of the TOC changes (?!) - some extra space before "Cha2" appears; see both test21.pdf and test22.pdf. So how to keep the same look of the TOC? And - would you recommend any better solution how to define \(start/stop)command which would force heads to be mid-aligned? (All compiled with the latest beta, WinXP.) 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 test21.pdf Description: Adobe PDF document test22.pdf Description: Adobe PDF document test2.mkiv Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \definehead \setuphead new type included in a list such as TOC
That was very useful. Thanks again Wolfgang ! Mathieu From: schuster.wolfg...@googlemail.com Date: Thu, 26 May 2011 18:52:48 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] \definehead \setuphead new type included in a list such as TOC Am 26.05.2011 um 18:15 schrieb Mathieu DUPONT:Hi, In the following example, I define 2 new heads, and I want them to : 1- inherits from Title (or Chapter would be fine)2- show in the TOC3- not be counted (CHAPTER should be 1) Is there an option I can put into \setuphead[Abstract][] so it gets included in the TOC ?That would be the easiest way of getting the three desired results. Your own headings aren’t shown in the TOC because you use \completecontentwhich lists only the default numbered headings (\part, \chapter etc.) There are different solution: 1. Replace \completecontent with the following \title{Contents} \placelist[part,chapter,Abstract,Intro, section,...] 2. Redefine \completecontent (it’s explained in the big manual): \definecombinedlist[content][part,chapter,Abstract,Intro, section,...] 3. Create your own combinedlist: \definecombinedlist[mycontent][part,chapter,Abstract,Intro, section,...] \setupheadtext[mycontent=Contents] \starttext \completemycontent \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] \definehead \setuphead new type included in a list such as TOC
Am 26.05.2011 um 18:15 schrieb Mathieu DUPONT: > > Hi, > > In the following example, I define 2 new heads, and I want them to : > > 1- inherits from Title (or Chapter would be fine) > 2- show in the TOC > 3- not be counted (CHAPTER should be 1) > > Is there an option I can put into \setuphead[Abstract][] so it gets included > in the TOC ? > That would be the easiest way of getting the three desired results. Your own headings aren’t shown in the TOC because you use \completecontent which lists only the default numbered headings (\part, \chapter etc.) There are different solution: 1. Replace \completecontent with the following \title{Contents} \placelist[part,chapter,Abstract,Intro, section,...] 2. Redefine \completecontent (it’s explained in the big manual): \definecombinedlist[content][part,chapter,Abstract,Intro, section,...] 3. Create your own combinedlist: \definecombinedlist[mycontent][part,chapter,Abstract,Intro, section,...] \setupheadtext[mycontent=Contents] \starttext \completemycontent \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 ___
[NTG-context] \definehead \setuphead new type included in a list such as TOC
Hi, In the following example, I define 2 new heads, and I want them to : 1- inherits from Title (or Chapter would be fine)2- show in the TOC3- not be counted (CHAPTER should be 1) Is there an option I can put into \setuphead[Abstract][] so it gets included in the TOC ?That would be the easiest way of getting the three desired results. Thanks ! \definehead[Abstract][title]\setuphead[Abstract][]\definehead[Intro][title]\setuphead[Intro][] \starttext \startfrontmatter\placecontent\Abstract{ABSTRACT}\stopfrontmatter \startbodymatter\Intro{INTRODUCTION}\chapter{CHAPTER}\stopbodymatter \stoptext Mathieu ___ 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 interacting \definehead and \placecontent
Am 17.11.2010 um 12:18 schrieb Lukas Prochazka: > But there is a problem - the "1.1 B" item doesn't appear in the TOC. Why? And > how to get it in there? \title{Content} \placelist[chapter,section,subsection,SSEC,...] 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] \definehead -- latest minimal
On 17-11-2010 1:59, Herbert Voss wrote: doesn't work with mkiv \definehead[SSEC][subsection] \starttext foo \stoptext works here so best sync again later; normally there's upto 30 minute delay between an upload and minimals Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \definehead -- latest minimal
doesn't work with mkiv \definehead[SSEC][subsection] \starttext foo \stoptext ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-mar.lua:171: attempt to index global 'setting' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/strc-mar.lua:171: in function 'define' :1: in main chunk. ...e("SSEC",{ parent = "subsection" })} \getparameters [\??mk SSEC... \secondoftwoarguments #1#2->#2 ...n]\definemarking [SSEC] [subsection] \definemarking [SSEC\v!num... \secondoftwoarguments #1#2->#2 \dodefineclonedstructurehead ...!prefix =\v!no ]}} \the \everystructureheadse... \next1 ...dododefinestructurehead {subsection}{#1} \doprocesscommaitem ... l.1 \definehead[SSEC][subsection] Herbert ___ 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] Problem interacting \definehead and \placecontent
Hello, I need to duplicate the \subsection command. The code is: --- \definehead[SSEC][subsection] \setuphead [SSEC] [after={ --- }] \starttext \placecontent \hairline \section{A} aaa \SSEC{B} bbb \subsection{C} ccc \stoptext --- It's OK that use of \subsection and/or \SSEC command increases the subsection counter (i.e. I get 1.1 and 1.2). But there is a problem - the "1.1 B" item doesn't appear in the TOC. Why? And how to get it in there? Thank you in advance. Best regards, Lukas t-Head.mkiv Description: Binary data t-Head.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 ___
[NTG-context] enumerations and definehead
Hi all, How do I reset an enumeration with my own header? See the example below. The build-in section works and my own header fails. Tia, Bernard % MKIV beta % MTXrun | current version: 2009.08.07 11:22 % linux-32 \definehead[Mysection][section] \setuphead[Mysection] [after=\nowhitespace\hairline] \defineenumeration[example] [way=bysection] \starttext \dorecurse {3} { \Mysection{Mysection \recurselevel} \dorecurse {3} {\startexample \recurselevel \stopexample}} \page \dorecurse {3} { \section{Section \recurselevel} \dorecurse {3} {\startexample \recurselevel \stopexample}} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___