Difference between revisions of "Command/jobname"
< Command
Jump to navigation
Jump to search
(Create jobname page) |
m (add category debugging) |
||
Line 52: | Line 52: | ||
[[Category:Command/Internals|jobname]] | [[Category:Command/Internals|jobname]] | ||
+ | [[Category:Command/Debugging|jobname]] |
Revision as of 14:40, 7 June 2012
\jobname
Syntax
\jobname |
Description
The command \jobname
prints the basename (the name without the .tex
extension) of the TeX file on which ConTeXt was invoked. E.g. in the simple case of mydocument.tex
, \jobname
will produce mydocument
. If one is using products and components, then \jobname
will resolve to the basename of whatever product (or component) the context
or texexec
command was invoked on.
Example
With a single file:
Job name: \jobname
Multi-file example: a product and a component.
% myproduct.tex \startproduct \component c_mycomponent \stopproduct
and
% mycomponent.tex \startcomponent c_mycomponent % not required, but good for clarity \jobname \stopcomponent
Compiling this with context myproduct.tex</context> means
\jobname
in mycompnent.tex
resolves to myproduct
. (Same with texexec
, naturally.)
See also
- \texenginename gives the name of the engine (e.g. LuaTeX, or XeTeX).
- \texengineversion gives the version number of the engine (e.g. 0.64).
- \contextversion gives the timestamp of the ConTeXt version in use
- \contextmark gives MKII or MKIV, the ConTeXt major release marker
- \contextversionnumber gives the ConTeXt version followed by the mark.
Help from ConTeXt-Mailinglist/Forum
All issues with: