[NTG-context] \version[temporary] fatal error

2023-07-23 Thread Jacob Kauffmann via ntg-context
}:\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

Re: [NTG-context] \startcomponent [*]

2021-03-10 Thread Hans Hagen
On 3/10/2021 5:56 PM, Wolfgang Schuster wrote: Hi, when the wildcard symbol is used as argument to \startcomponent (or \startproduct) the name of the folder is now used and not the file name. \startcomponent * \quotation{\currentcomponent} \stopcomponent it's programmed that way (must have

[NTG-context] \startcomponent [*]

2021-03-10 Thread Wolfgang Schuster
Hi, when the wildcard symbol is used as argument to \startcomponent (or \startproduct) the name of the folder is now used and not the file name. \startcomponent * \quotation{\currentcomponent} \stopcomponent Wolfgang

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-03-06 Thread Henning Hraban Ramm
; christmas, children, medieval & >> fantasy, some author...). >> They all use [name=\currentcomponent]. If I could avoid the JOBNAME part of >> the file name, all booklets would use the same note PDFs. Now, the temp >> directory contains literally thousands of files.

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-30 Thread Aditya Mahajan
different > songbooklets with the same layout. E.g. there’s one containing all the songs > and several with a subject (e.g. winter & christmas, children, medieval & > fantasy, some author...). > They all use [name=\currentcomponent]. If I could avoid the JOBNAME part of > t

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-30 Thread Henning Hraban Ramm
ond compile runs if I could influence the naming: I got ~500 songs in their own component files, and I use them in different songbooklets with the same layout. E.g. there’s one containing all the songs and several with a subject (e.g. winter & christmas, children, medieval & fantasy, some autho

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
;>>> Thanks Tomás! Indeed \jobname does the job :-) >>> In case you need the current component file in a project environment: >>> \currentcomponent > > In some case \inputfilename is the better choice, e.g. when you process xml > files with a

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Wolfgang Schuster
schrieb Otared Kavian : Thanks Tomás! Indeed \jobname does the job :-) In case you need the current component file in a project environment: \currentcomponent In some case \inputfilename is the better choice, e.g. when you process xml files with a environment file for the style and processing

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
an : >> >> Thanks Tomás! Indeed \jobname does the job :-) > > In case you need the current component file in a project environment: > \currentcomponent > > Hraban > ___ > If your qu

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Henning Hraban Ramm
> Am 01.12.2020 um 16:20 schrieb Otared Kavian : > > Thanks Tomás! Indeed \jobname does the job :-) In case you need the current component file in a project environment: \currentcomponent Hraban __

Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-25 Thread Henning Hraban Ramm
nsively, but then I recognized, I can’t refer to the component filename with \currentcomponent any more. (I use it for filter-generated contents like LilyPond music.) Just as a warning, in case you stumble upon that. Hraban __

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
umbers]\definestructureconversionset    [appendix:pagenumber] [][numbers]=   The fm-frontpage.tex file\startcomponent currentcomponent \product product % Front page layout\startstandardmakeup % Place logo centered on page\framed[height=5cm,width=broad,frame=off]{\external

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

2020-09-03 Thread jbf
] \definestructureconversionset [appendix:pagenumber] [][numbers] = *The fm-frontpage.tex file* \startcomponent currentcomponent \product product % Front page layout \startstandardmakeup % Place logo centered on page \framed[height=5cm,width=broad,frame=off] {\externalfigure

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

2020-09-03 Thread Jan Willem Flamma
\startcomponent currentcomponent \product product % Front page layout\startstandardmakeup % Place logo centered on page \framed[height=5cm,width=broad,frame=off] {\externalfigure[frontpage-logo.png][width=12cm]} % Place course titles\blank[6*big]\color[Modu_Blue]{\midaligned{\bfc \MyManual

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
{\currentcomponent}}] \def\maybeendnotes {\subsubject{Notes} \placenotes[endnote] \subsubject{Bibliography} \switchtobodyfont[9pt] \placepublications[criterium=all]} \appendtoks \maybeendnotes \to \everystoptext \stopmode % \setupcaption[figure][style=small] \setupinteraction[state

Re: [NTG-context] Can I use mkii and mkiv side by side?

2015-01-26 Thread Gerben Wierda
: \startmode[standalone] \setupfootertexts[pagenumber][{\jobname-\filename{\currentcomponent}}] \def\maybeendnotes {\subsubject{Notes} \placenotes[endnote] \subsubject{Bibliography} \switchtobodyfont[9pt] \placepublications[criterium=all]} \appendtoks \maybeendnotes

Re: [NTG-context] Can I use mkii and mkiv side by side?

2015-01-26 Thread Keith Schultz
into texexec --pdf --mode=editor ../products/prd_book.tex And the environment file has: \startmode[standalone] \setupfootertexts[pagenumber][{\jobname-\filename{\currentcomponent}}] \def\maybeendnotes {\subsubject{Notes} \placenotes[endnote] \subsubject{Bibliography

Re: [NTG-context] Can I use mkii and mkiv side by side?

2015-01-26 Thread Gerben Wierda
And the environment file has: \startmode[standalone] \setupfootertexts[pagenumber][{\jobname-\filename{\currentcomponent}}] \def\maybeendnotes {\subsubject{Notes} \placenotes[endnote] \subsubject{Bibliography} \switchtobodyfont[9pt] \placepublications[criterium=all

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-22 Thread Gerben Wierda
whitespace etc. Isn;t there a true verbatim that I can use on a macro like \currentcomponent? Something along the lines of \verbatimexpand{\currentcomponent}? Untested: \filename{\currentcomponent} Works. When outside a component (e.g. index) it defaults to the string 'text'. Thanks, G

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Philipp Gesang
identifier matches the file name (e.g. if you use the asterisk instead of a name), you can use \currentcomponent. So the main file foo.tex would look like: \setuppagenumbering[location=] %% footer:main file-component file \setupfootertexts[pagenumber][{\jobname

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Gerben Wierda
) in the footer. If the component identifier matches the file name (e.g. if you use the asterisk instead of a name), you can use \currentcomponent. So the main file foo.tex would look like: \setuppagenumbering[location=] %% footer:main file-component file

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Wolfgang Schuster
chapter3 \stopbodymatter And I want chapter1.tex (maybe full path) in the footer. If the component identifier matches the file name (e.g. if you use the asterisk instead of a name), you can use \currentcomponent. So the main file foo.tex would look like: \setuppagenumbering[location

Re: [NTG-context] t-filter for LilyPond enhancements

2013-01-20 Thread Henning Hraban Ramm
normally set [name=\currentcomponent], can I make that default? There are some more enhancements that I’d like to implement, e.g. checking the resulting files if there are several pages or using single notelines to let ConTeXt do the page breaking (like lilypond-book does with LaTeX). I guess

Re: [NTG-context] t-filter for LilyPond enhancements

2013-01-20 Thread Aditya Mahajan
exactly what I meant. Since I would normally set [name=\currentcomponent], can I make that default? Unfortunately no. The name key is reset at every `\startexternalfilter`; otherwise it will be difficult to mix `name=` with normal usage. There are some more enhancements that I’d like

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Gerben Wierda
\component chapter1 \component chapter2 \component chapter3 \stopbodymatter And I want chapter1.tex (maybe full path) in the footer. If the component identifier matches the file name (e.g. if you use the asterisk instead of a name), you can use \currentcomponent. So the main file

Re: [NTG-context] Simple question: how do I get the filename in the footer

2013-01-20 Thread Aditya Mahajan
on a macro like \currentcomponent? Something along the lines of \verbatimexpand{\currentcomponent}? Untested: \filename{\currentcomponent} Aditya ___ If your question is of interest to others as well, please add

Re: [NTG-context] Search path for .tex files (mkiv)

2012-10-30 Thread Wolfgang Schuster
takes the name of the current file as argument, the name of the file is tired in the command \currentcomponent. In MkIV you can replace the name with “*” and context would still print the correct name with \currentcomponent. The asterisk in modes indicates that you use a system mode which

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

2012-08-09 Thread Wolfgang Schuster
for startproject, startenvironment, and startproduct, I assume? And for the general case, what about `\ctxlua{commands.processedfile}`? That looks like it should print the current filename, as long as any inclusions use the ConTeXt commands and not \input. You can use \currentcomponent

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] FiXme-module

2010-11-08 Thread Andreas Harder
of fixmes][list.txt] Do you want a separate file for each entry or one file with all entries? I thought of one file with all entries. My first idea was to write something like: \startTODO * \currentcomponent ** TODO fix that, fix this ** DONE fix that, fix this \stopTODO Write all TODO

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] texexec from parent directory

2006-09-02 Thread Aditya Mahajan
\popmacro \currentcomponent \... l.129 \stopcomponent I'm forgetting what you said and using zero instead. ! You can't use `\relax' after \advance. recently read [EMAIL PROTECTED]@\currentcomponentpath \popmacro ...name [EMAIL PROTECTED

Re: [NTG-context] components and figure search paths

2006-05-10 Thread Hans Hagen
one chapter at a time. untested extension: \currentcomponentpath \def\currentcomponentpath{.} \def\donextlevel#1#2#3#4#5#6#7\\% {\pushmacro\currentcomponent \pushmacro\currentcomponentpath \let\currentcomponent#1% \setsystemmode\currentcomponent \splitfilename{#1}% \ifx

Re: [NTG-context] Typesetting products and components

2005-02-15 Thread Hans Hagen
\stopvariables \unprotect \let\currentcomponent\v!text \def\donextlevel#1#2#3#4#5#6#7\\% {\pushmacro\currentcomponent \let\currentcomponent#1 \setsystemmode\currentcomponent \beforesplitstring#7\at.\to#2\relax \ifcase\filelevel\relax \starttext \def\project ##1 {#3{##1}}% \def