[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

[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
em 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 author...). > They all use [name=\currentcomponent]. If I could avoid the JOBNAME part of &

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

2021-01-30 Thread Henning Hraban Ramm
d 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

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
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 In some case \inputfilename is the better choice, e.g. when you process xml files with a environment file for the style and proce

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

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

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 2.

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

2020-09-04 Thread Wolfgang Schuster
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
[][numbers]\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]{\ext

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

2020-09-03 Thread jbf
mbers] \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] {\externalf

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
ilename{\currentcomponent}}] \def\maybeendnotes {\subsubject{Notes} \placenotes[endnote] \subsubject{Bibliography} \switchtobodyfont[9pt] \placepublications[criterium=all]} \appendtoks \maybeendnotes \to \everystoptext \stopmode % \setupcaption[figure][style=small] \setupinteractio

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

2015-01-26 Thread Gerben Wierda
> end up at the end of the chapter) so I can work on separate chapters. >> >> luna:chapters gerben$ make -n c_loosely.pdf >> texexec --pdf --mode=standalone c_loosely.tex >> luna:chapters gerben$ make -n prd_book.pdf >> make MODE="--mode=editor" ONCE

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

2015-01-26 Thread Keith Schultz
make -n c_loosely.pdf > texexec --pdf --mode=standalone c_loosely.tex > luna:chapters gerben$ make -n prd_book.pdf > make MODE="--mode=editor" ONCE="" ../products/prd_book.pdf > > The latter turns into > > texexec --pdf --mode=editor ../products/prd_book.

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

2015-01-26 Thread Gerben Wierda
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} \switchtob

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

2013-01-22 Thread Gerben Wierda
antly, that catches ^ and _, >> but what about 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 outs

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 an

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

2013-01-20 Thread Gerben Wierda
t; >>>> \startbodymatter >>>> \component chapter1 >>>> \component chapter2 >>>> \component chapter3 >>>> \stopbodymatter >>>> >>>> And I want "chapter1.tex" (maybe full path) in the footer. >>> &

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

2013-01-20 Thread Aditya Mahajan
at, that’s 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

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

2013-01-20 Thread Henning Hraban Ramm
he > scenes) Oh, so simple? Great, that’s exactly what I meant. Since I would 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 si

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

2013-01-20 Thread Wolfgang Schuster
e >>> chapter file names (e.g. "chapter1.tex") in the footer. >>> >>> So, prd_book contains: >>> >>> \startbodymatter >>> \component chapter1 >>> \component chapter2 >>> \component chapter3 >>> \stopbodymatter

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

2013-01-20 Thread Gerben Wierda
;> \startbodymatter >> \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

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

2013-01-20 Thread Philipp Gesang
> 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] Search path for .tex files (mkiv)

2012-10-30 Thread Wolfgang Schuster
ove the \mainlanguage >> call to the corresponding language setup. >> >> >> Marco > > Hello Marco, > > It looks like \usepath is the key to what I want, thank you. I don't > quite understand your overall structure. Is the "*" a literal &q

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. Che

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

2012-08-09 Thread Wolfgang Schuster
/startcomponent. This > trick also works 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

Re: [NTG-context] FiXme-module

2010-11-08 Thread Andreas Harder
ot;alternative=comment“ more appropriate? >> 3. Is it possible to save the FiXme-list in a external text file? Something >> like \savebuffer[expanded list of fixmes][list.txt] > > Do you want a separate file for each entry or one file with all entries? I thought of one file wit

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

Re: [NTG-context] texexec from parent directory

2006-09-02 Thread Aditya Mahajan
\@@pushedmacro \endcsname ... \doprevlevel ->\popmacro \currentcomponentpath \popmacro \currentcomponent \... l.129 \stopcomponent I'm forgetting what you said and using zero instead. ! You can&

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

2006-05-10 Thread Hans Hagen
t; e.g. abc.mp and abc.1 in 1/chap/ since each chapter has many figures, > and I edit and test one chapter at a time. > untested extension: \currentcomponentpath \def\currentcomponentpath{.} \def\donextlevel#1#2#3#4#5#6#7\\% {\pushmacro\currentcomponent \pushmacro\curren

Re: [NTG-context] Typesetting products and components

2005-02-15 Thread Hans Hagen
oiect \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}}%