Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
hould be able to copy and adapt to your needs. There are lot of things which can be improved in your example. 1. Pass the filename of the component/product to \startcomponent and not some dummy name (or just use *), this allows you to print the filename with \currentcomponent or \currentproduct

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Wolfgang Schuster
the filename of the component/product to \startcomponent and not some dummy name (or just use *), this allows you to print the filename with \currentcomponent or \currentproduct 2. Use \setvariables or \setupdocument to set the document title, revision etc. 3. Use \startsectionblockenvironment to move

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
Flamma   The main product file==\environment env-WA \startproduct currentproduct % Document definitions\define\MyManual{Course Manual}\define\MyTitle{Title}\define\MySubtitleOne{Subtitle 1}\define\MySubtitleTwo{Subtitle 2}\define\MyRevnumber{Revision number} % Load frontmatter files\startfront

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
be able to copy and adapt to your needs. Kind regards, Jan Willem Flamma *The main product file* == \environment env-WA \startproduct currentproduct % Document definitions \define\MyManual{Course Manual} \define\MyTitle{Title} \define\MySubtitleOne{Subtitle 1} \define

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
) Once the bodymatter starts the pagenumber is set  to the arabic 1 (see below in the main product file) You should be able to copy and adapt to your needs. Kind regards,Jan Willem Flamma   The main product file==\environment env-WA \startproduct currentproduct % Document definitions\define

Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Wolfgang Schuster
, \currentproduct and \currentproject to print the name of the file. 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

Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Sietse Brouwer
Wolfgang wrote: You can use \currentcomponent, \currentproduct and \currentproject to print the name of the file. Another secret unearthed! All wikified, together with \processedfile and \processedfiles. Sans examples, but at least the info's there. Thank you, Wolfgang. Cheers, Sietse

Re: [NTG-context] debugging

2008-11-14 Thread Aditya Mahajan
On Fri, 14 Nov 2008, Alan STONE wrote: Another debugging question: how do you return the filename of the file being compiled ? \jobname There is also \currentproject \currentproduct \currentenvironment \currentcomponent Aditya

Re: [NTG-context] document structure

2006-07-22 Thread Hans van der Meer
version} \stoplocalenvironment (Untested) No, I must be my fault, but even with the above help I cannot get it working. As far as I can figure out the value of \currentproduct seems NOT to guard entry to the body of \startlocalenvironment[syllabus-s]. Although the manual here explicitely

Re: [NTG-context] document structure (small bug)

2006-07-22 Thread Taco Hoekwater
Hi Hans-es, Hans van der Meer wrote: No, I must be my fault, but even with the above help I cannot get it working. As far as I can figure out the value of \currentproduct seems NOT to guard entry to the body of \startlocalenvironment[syllabus-s]. This took a bit of digging

Re: [NTG-context] document structure (small bug)

2006-07-22 Thread Hans van der Meer
On Jul 22, 2006, at 14:19, Taco Hoekwater wrote: Hans van der Meer wrote: No, I must be my fault, but even with the above help I cannot get it working. As far as I can figure out the value of \currentproduct seems NOT to guard entry to the body of \startlocalenvironment[syllabus-s

Re: [NTG-context] Typesetting products and components

2005-02-15 Thread Peter Münster
On Mon, 14 Feb 2005, Randall Skelton wrote: Is it possible to determine if texexec is being run on a product or a component and have optional processing similar to different modes? \ifx\currentproduct\empty no product defined \else the product is \currentproduct \fi Cheers, Peter -- http

Re: [NTG-context] Typesetting products and components

2005-02-15 Thread Hans Hagen
% {\doateverystarttext \donextlevel\v!product\currentproduct \doexecutefileonce\doexecutefileonce \donotexecutefile\doexecutefile#1\\} \def\startcomponent #1 % {\doateverystarttext \donextlevel\v!component\currentcomponent \doexecutefileonce\doexecutefileonce \donotexecutefile