From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114588 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: mathcal generates error in ConTeXt Date: Sat, 26 Mar 2022 09:48:19 +0100 Message-ID: <936c91f1-39b1-cdc6-9742-e54d42d67720@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5281560953555855455==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10048"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.54 Cc: Wolfgang Schuster To: mailing list for ConTeXt users , A A via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 26 09:49:01 2022 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 1nY26X-0002RL-6R for gctc-ntg-context-518@m.gmane-mx.org; Sat, 26 Mar 2022 09:49:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 30DC02A351E; Sat, 26 Mar 2022 09:48:28 +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 4auN5dlzE7c3; Sat, 26 Mar 2022 09:48:26 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C778D2A351F; Sat, 26 Mar 2022 09:48:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5E9EE2A351E for ; Sat, 26 Mar 2022 09:48:24 +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 PjbLyyp3aJzC for ; Sat, 26 Mar 2022 09:48:22 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.41; helo=mail-ej1-f41.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 9ECFD2A351A for ; Sat, 26 Mar 2022 09:48:22 +0100 (CET) Original-Received: by mail-ej1-f41.google.com with SMTP id c10so1043479ejs.13 for ; Sat, 26 Mar 2022 01:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=P3MP0BvuOJWAvSyfR6JEXb8BVM8niLPGj7ovtvz99ms=; b=QDFSBKumJazlPhL9+oxVdHyh2PMU7k1+fxD56sVpb2qgpWly9LL7i4oPgOBIqm2YOv Z1WQ+s5WMpYKjb4ou0Zv3I64lWY4AM2/phO4CmJ6OsC4W+yvkAkc0hpmnnQ1Ei10G2XD RSOVK5RMlRudniUfHtEFXbe++8hw9pCs0ORybN40blY6hJst8CeC3A8QoldQ11UaWPVq MchZzfvETOWHcm2I13KoeLQ7Z6Hq9Px6DMiH+BwyQkyGlYWMLG9lUEu6vspaeO6a1cou nwb10knTuhgyNW62FKtu23+BQw3jUgiLWnIjBgRS1pbRe1BrIyVY3lymzHv2j74yhj0s /bOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=P3MP0BvuOJWAvSyfR6JEXb8BVM8niLPGj7ovtvz99ms=; b=DyCs0CqVEGqThsuIcyrpCRSzXYTOUHdrE+krP7Nsk19ay95LIkxIzPu+X8+hhKCodd 5yW0BoIwY2bjc9hh18r61vcL8l0iuzbxdY8/sZDIJ7iptomov92RPySDftfnIC0ilxue nJlBEiGeomFYhAh9Vx0t0pGXRSX2X9UHcBkQN0LjWSN5BXTPZBQUi8PRQOyDJ1HhQZND bEQh8RX95whGbwNMwaeI/+Ee2RNhhxyKsAcbRC7cBnAOT1/8/Sud3sVOl6rTh2gjWinf 73cP/4trxA/PKudTfyoWyYYGfDKKpdKBusFbUTHpOjh6cgD9je5gCN3Szw7G96CMGZGi rVZQ== X-Gm-Message-State: AOAM5312VI34sBroZZ2DkFL/ZPivAjdyY2LIw7eL1c4CTitTrOlsjsW4 MQVtvx8ArBp2K5qoX43rGDc= X-Google-Smtp-Source: ABdhPJyXLEUSRW1sXj3WAy6J2Anac0ndV7QvKKEPgYA+qxvovEKgZTQdwjgna7FtfHe5e5La2r03bw== X-Received: by 2002:a17:906:57c1:b0:6d6:da73:e9c0 with SMTP id u1-20020a17090657c100b006d6da73e9c0mr16602788ejr.45.1648284502201; Sat, 26 Mar 2022 01:48:22 -0700 (PDT) Original-Received: from ?IPv6:2a02:810d:a8bf:f874::96a5? ([2a02:810d:a8bf:f874::96a5]) by smtp.gmail.com with ESMTPSA id z1-20020a05640235c100b004192c7266f5sm3857888edc.16.2022.03.26.01.48.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Mar 2022 01:48:21 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:114588 Archived-At: This is a multi-part message in MIME format. --===============5281560953555855455== Content-Type: multipart/alternative; boundary="------------14A9444513BFF5101DE94A2A" Content-Language: en-US This is a multi-part message in MIME format. --------------14A9444513BFF5101DE94A2A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit A A via ntg-context schrieb am 26.03.2022 um 08:50: > Hi Jan, > > Thanks, I was starting to think pandoc is not yet mature enough to > handle these conversions, but it looks like that might not be the case. > > \mathcal works now, but I actually ran into another issue in my real > document. I have the following defined in my LaTeX: > > /$C = ``\textrm{dad}``$/ > > It looks like context has a hard time compiling the above, even with > \starttext and \stoptext commands generated with the pandoc -s flag. > Here's the error: > > /The control sequence at the end of the top line of your error > message was never/ > /\def'ed. You can just continue as I'll forget about whatever was > undefined./ > /mtx-context     | fatal error: return code: 1/ > / > / > > How can I include quotes in math expressions the same way I do in LaTeX? When you take a closer look at the error message you can see ConTeXt complains about the \textrm command. tex error       > tex error on line 2 in file ./test.tex: Undefined control sequence \undefined     $C = ``\textrm     {dad}``$ 1     \starttext 2 >>  $C = ``\textrm{dad}``$ 3     \stoptext The control sequence at the end of the top line of your error message was never \def'ed. You can just continue as I'll forget about whatever was undefined. mtx-context     | fatal error: return code: 1 You can solve this by replacing \textrm with \text or when you need more control about the style of the text you can use the \mathtext commands (e.g. \mathtextrm, \mathtextit etc.). To get the correct quotes in your document you either use the proper quotes in the source (“ and ”) or just use the \quotation command. \starttext $C = \text{\quotation{dad}}$ $C = \text{“dad”}$ \stoptext Wolfgang --------------14A9444513BFF5101DE94A2A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit A A via ntg-context schrieb am 26.03.2022 um 08:50:
Hi Jan,

Thanks, I was starting to think pandoc is not yet mature enough to handle these conversions, but it looks like that might not be the case.

\mathcal works now, but I actually ran into another issue in my real document. I have the following defined in my LaTeX:

$C = ``\textrm{dad}``$

It looks like context has a hard time compiling the above, even with \starttext and \stoptext commands generated with the pandoc -s flag. Here's the error:

The control sequence at the end of the top line of your error message was never
\def'ed. You can just continue as I'll forget about whatever was undefined.
mtx-context     | fatal error: return code: 1

How can I include quotes in math expressions the same way I do in LaTeX? 

When you take a closer look at the error message you can see ConTeXt complains about the \textrm command.


tex error       > tex error on line 2 in file ./test.tex: Undefined control sequence \undefined

<line 3.2>
    $C = ``\textrm
    {dad}``$

1     \starttext
2 >>  $C = ``\textrm{dad}``$
3     \stoptext
The control sequence at the end of the top line of your error message was never
\def'ed. You can just continue as I'll forget about whatever was undefined.
mtx-context     | fatal error: return code: 1


You can solve this by replacing \textrm with \text or when you need more control about the style of the text you can use the \mathtext commands (e.g. \mathtextrm, \mathtextit etc.).

To get the correct quotes in your document you either use the proper quotes in the source (“ and ”) or just use the \quotation command.


\starttext

$C = \text{\quotation{dad}}$

$C = \text{“dad”}$

\stoptext


Wolfgang

--------------14A9444513BFF5101DE94A2A-- --===============5281560953555855455== 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== --===============5281560953555855455==--