From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109683 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Testing for LMTX Date: Thu, 26 Nov 2020 14:18:07 -0500 Message-ID: References: <05B19DD4-5D26-439F-9891-B627D92AFCED@centralesupelec.fr> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0871676219531705562==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9776"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users , jean-philippe.rey@centralesupelec.fr Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 26 20:20:32 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiMoi-0002SA-8v for gctc-ntg-context-518@m.gmane-mx.org; Thu, 26 Nov 2020 20:20:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 98CF31AA6E8; Thu, 26 Nov 2020 20:18:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id myfp2MzoFRZV; Thu, 26 Nov 2020 20:18:21 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B718C1AA6EA; Thu, 26 Nov 2020 20:18:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ACDF51AA6E4 for ; Thu, 26 Nov 2020 20:18:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0BbCwnT8KhOM for ; Thu, 26 Nov 2020 20:18:19 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.43; helo=mail-wr1-f43.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D4DBC1AA6D6 for ; Thu, 26 Nov 2020 20:18:19 +0100 (CET) Original-Received: by mail-wr1-f43.google.com with SMTP id r3so3293635wrt.2 for ; Thu, 26 Nov 2020 11:18:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=uVYsNkUXlJoqYnFnfIJ6oSgww1JrE1VjR7afuyJ6Ngk=; b=P73X9rBkLb6cvuZbBKG7MB303TWf3yH99ljFQ/zgF4enH6vqq7LX6EhQMRg3/6tZQ9 YT+HrWioPgCBcio1DUJ7by3K1HaG7+vX3r0A7zoOvjFvyJCMICisHso19lVHxDXdZlZb LULwtMVHBHguIdoSDhwbyWIzXEnklMtuoXPUNO+INt8Ny3HEJPRxSNQRApWXIC/bl486 fDUTemLJpw2ELyLmhCkd1Icv+xtLQ65oDxIVU4KeE6S7AxqtJe1s39SnkuydVMozsWd5 hXpNm46iEt5yQ20v2kpKsCETImJT5hSVI1SDI/THXzsJr8F5acz+nbJTy77YJaGiLxEg mW2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=uVYsNkUXlJoqYnFnfIJ6oSgww1JrE1VjR7afuyJ6Ngk=; b=Xvz+UwoDipvYNwX0tKYGy+E1mjbAhun9+bpKjEjyHOoJcpsi62xmWtdJr57d6zYwVk z6lGhbreCeOZNuKjYuXi5SUJgNpNnF0kaWgWB5IFrfOMzXbCSyyPlmshz7pbwmiQPr+8 Gs7jmSsN/kcS7H+b8ROrF2nhRodG2N+dInrKnKnwI7DKpOyg83I4je0qVrI5JDvdpVFz U4T/TWMYVWGSNIGWOcG2Hm95EWCqVS/SZFzlIY3RFDz6So1MJNcNbS0jWHWVNOy9MvTd 9lUmJy9O5esRHPKCgU8rDd5JRvg0XNJDFK9N9Hg+DlC8acsCyuU3h4TKgDsuWdM0LwJ4 bERg== X-Gm-Message-State: AOAM530JC1H6bbap3SCfwVM2ZtFJqv8Kfgu97rzSMY1cE1suicOAk6ob dzHKh0E2vTNnTmxWe5Np10Z7+hTjnop9U/YXRvLp5LOYDYXAAg== X-Google-Smtp-Source: ABdhPJziC8eWPf6FTJ0DylXkqS2xe8LKdJxcg2tRE+tjZjA2HtWGtoSimYXVmqcgWgeHaT8pfMBGhE42S3bcnfBJhsk= X-Received: by 2002:a5d:4ec8:: with SMTP id s8mr5866612wrv.349.1606418299335; Thu, 26 Nov 2020 11:18:19 -0800 (PST) In-Reply-To: <05B19DD4-5D26-439F-9891-B627D92AFCED@centralesupelec.fr> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109683 Archived-At: --===============0871676219531705562== Content-Type: multipart/alternative; boundary="00000000000017b5ec05b5076896" --00000000000017b5ec05b5076896 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi I'm not sure whether or not there's a better way, but a bit of grepping allows you to find the following conditional: \starttext \ifcase\contextlmtxmode MKIV %Whatever you want in MkIV \else LMTX %Whatever you want in LMTX \fi \stoptext Best regards, Jairo El jue, 26 de nov. de 2020 a la(s) 14:06, Jean-Philippe Rey ( jean-philippe.rey@centralesupelec.fr) escribi=C3=B3: > Dear list, > > I would like to determine if LMTX is being used. Mimicking system modes I > tried > > \startmode[*lmtx] . . . \stopmode > > however, LMTX doesn't define this mode but apparently defines *mkiv. > > Do you know a way to distinguish between LMTX and MkIV ? > > Thank you, > > -- > Jean-Philippe Rey > jean-philippe.rey@centralesupelec.fr > 91192 Gif-sur-Yvette Cedex - France > Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51 > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --00000000000017b5ec05b5076896 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

I'm not sure whether or not there&= #39;s a better way, but a bit of grepping allows you to find the following = conditional:

\starttext
\ifcase\contextlmtxmode
MKIV %Whateve= r you want in MkIV
\else
LMTX %Whatever you want in LMTX
\fi
\s= toptext

Best regards,

Jairo

El jue, 26 de nov.= de 2020 a la(s) 14:06, Jean-Philippe Rey (jean-philippe.rey@centralesupelec.fr) escribi= =C3=B3:
Dear lis= t,

I would like to determine if LMTX is being used. Mimicking system modes I t= ried

=C2=A0 \startmode[*lmtx] . . . \stopmode

however, LMTX doesn't define this mode but apparently defines *mkiv.
Do you know a way to distinguish between LMTX and MkIV ?

Thank you,

--
Jean-Philippe Rey
j= ean-philippe.rey@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000017b5ec05b5076896-- --===============0871676219531705562== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0871676219531705562==--