Difference between revisions of "Command/texenginename"
< Command
Jump to navigation
Jump to search
m (add category debugging) |
m (luajittex banner) |
||
Line 23: | Line 23: | ||
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> | ||
Revision as of 21:44, 10 August 2013
\texenginename
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: