Difference between revisions of "Command/texenginename"
< Command
Jump to navigation
Jump to search
m (Add \contextmark and \contextversionnumber) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Reference | {{Reference | ||
− | |name= | + | |name=texenginename |
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>texenginename</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 23: | Line 26: | ||
This Wikipage was rendered with\ \Context\ version\ \contextversion.\crlf | This Wikipage was rendered with\ \Context\ version\ \contextversion.\crlf | ||
It uses \texenginename\ version \texengineversion\ as engine. | It uses \texenginename\ version \texengineversion\ as engine. | ||
+ | </context> | ||
+ | |||
+ | == Jit engines (LuajitTeX) == | ||
+ | The engine name using LuajitTeX prodcues "LuaTeX" by design. | ||
+ | |||
+ | See: | ||
+ | [http://comments.gmane.org/gmane.comp.tex.luatex/3000] | ||
+ | [http://comments.gmane.org/gmane.comp.tex.context/82396] | ||
+ | |||
+ | To print LuajitTeX when used, one can define the following command: | ||
+ | <context mode=mkiv source=yes text=produces> | ||
+ | % engine=luajittex | ||
+ | \def\texjitenginename{\ctxlua{if (texenginename == LuaTeX and jit ~= nil) then context("LuajitTeX") else context.texenginename() end }} | ||
+ | \texjitenginename | ||
</context> | </context> | ||
Line 37: | Line 54: | ||
[[Category:Command/Internals|texenginename]] | [[Category:Command/Internals|texenginename]] | ||
+ | [[Category:Command/Debugging|texenginename]] |
Latest revision as of 16:30, 11 November 2019
\texenginename
Syntax (autogenerated)
Syntax
\texenginename |
Description
The command \texenginename
provides the name of the engine used.
Example
\setuppapersize[A5] This Wikipage was rendered with\ \Context\ version\ \contextversion.\crlf It uses \texenginename\ version \texengineversion\ as engine.
produces
Jit engines (LuajitTeX)
The engine name using LuajitTeX prodcues "LuaTeX" by design.
To print LuajitTeX when used, one can define the following command:
% engine=luajittex \def\texjitenginename{\ctxlua{if (texenginename == LuaTeX and jit ~= nil) then context("LuajitTeX") else context.texenginename() end }} \texjitenginename
produces
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: