}:\space \currentdate \quad \donefalse \ifcstok \currentproject
\currentproduct \ifcstok \currentproduct \currentcomponent \donetrue \fi
\fi \ifdone \donefalse \else \ifempty \
\page_info_add_to_box
#1->\scratchdimen \wd #1\setbox \b_page_versions \vpack to \ht #1{\vfill
\settexthoff
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
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
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
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
) 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
, \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
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
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
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
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
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
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
%
{\doateverystarttext
\donextlevel\v!product\currentproduct
\doexecutefileonce\doexecutefileonce
\donotexecutefile\doexecutefile#1\\}
\def\startcomponent #1 %
{\doateverystarttext
\donextlevel\v!component\currentcomponent
\doexecutefileonce\doexecutefileonce
\donotexecutefile
14 matches
Mail list logo