Difference between revisions of "Command/texenginename"

From ConTeXt wiki
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (autogenerated)] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>texenginename</syntax>
 
<syntax>texenginename</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Revision as of 20:01, 13 October 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.

See: [1] [2]

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

Help from ConTeXt-Mailinglist/Forum

All issues with: