Testing for LMTX: \ifmode
![](https://secure.gravatar.com/avatar/880e9a15b17a0bf7159f4e31030a9be2.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/880e9a15b17a0bf7159f4e31030a9be2.jpg?s=120&d=mm&r=g)
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