}:\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
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
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
; 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.
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
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
;>>> 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
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
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
> 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
__
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
__
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
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
]
\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
\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
{\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
:
\startmode[standalone]
\setupfootertexts[pagenumber][{\jobname-\filename{\currentcomponent}}]
\def\maybeendnotes
{\subsubject{Notes} \placenotes[endnote] \subsubject{Bibliography}
\switchtobodyfont[9pt]
\placepublications[criterium=all]}
\appendtoks \maybeendnotes
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
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
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
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
) 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
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
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
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
\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
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
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
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
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
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
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
\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
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
\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
36 matches
Mail list logo