Difference between revisions of "Command/texenginename"

From ConTeXt wiki
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.

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: