Testing for LMTX: \ifmode
Hi, I have a document that doesn’t work with LMTX right now. While testing LMTX I would like to exclude certain passages and work on them later. When I run the following: \doifmode{*mkiv}{mkiv} \doifmode{*contextlmtxmode}{contextlmtx} \doifmode{*lmtx}{lmtx} I always get „mkiv“. I’ve tried - pre LMTX context - LMTX --luatex - LMTX (2021.07.23) What is the recommended way to detect LMTX? Greetings Axel
Axel Kielhorn schrieb am 25.07.2021 um 09:06:
Hi,
I have a document that doesn’t work with LMTX right now.
While testing LMTX I would like to exclude certain passages and work on them later.
When I run the following:
\doifmode{*mkiv}{mkiv} \doifmode{*contextlmtxmode}{contextlmtx} \doifmode{*lmtx}{lmtx}
I always get „mkiv“. I’ve tried
- pre LMTX context - LMTX --luatex - LMTX (2021.07.23)
What is the recommended way to detect LMTX?
There is no mode value for LMTX, only MkIV is set. To check for LMTX you have to use \ifcase\contextlmtxmode but an additional for lmtx would be useful. \starttext \ifcase\contextlmtxmode \MKIV \else \MKIV\ + \LMTX \fi \stoptext Wolfgang
On 7/25/2021 9:46 AM, Wolfgang Schuster wrote:
There is no mode value for LMTX, only MkIV is set. To check for LMTX you have to use \ifcase\contextlmtxmode but an additional for lmtx would be useful. i'll add an lmtx mode
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am 25.07.2021 um 12:17 schrieb Hans Hagen
: On 7/25/2021 9:46 AM, Wolfgang Schuster wrote:
There is no mode value for LMTX, only MkIV is set. To check for LMTX you have to use \ifcase\contextlmtxmode but an additional for lmtx would be useful. i'll add an lmtx mode
Thanks! I’m looking forward to the next release. Greetings Axel
participants (3)
-
Axel Kielhorn
-
Hans Hagen
-
Wolfgang Schuster