From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26083 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: M A Newsgroups: gmane.text.pandoc Subject: Font change in \mbox in LaTeX math mode Date: Tue, 8 Sep 2020 12:57:54 -0700 (PDT) Message-ID: <7262e88e-6096-48f2-a7c4-541fa3a15410n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_572_239467187.1599595074025" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5766"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCL3JXGGYYFRBQ6E375AKGQEYR4BKDY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 08 21:57:59 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f59.google.com ([209.85.161.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFjkd-0001Kk-3e for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 08 Sep 2020 21:57:59 +0200 Original-Received: by mail-oo1-f59.google.com with SMTP id z75sf9362ooa.21 for ; Tue, 08 Sep 2020 12:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=lnar+9qJ1rVSKqcMeRNu3hVojwSY800G0dhrrrxjWlE=; b=rAHdRBHBlD9/tDnL3haiYsH+naKIidbUNjPt0EMH+8XMJn7ChDvnoHLb4X0lr7j6xP cOxjqqxmGzkNP3Z1ol5CHzPFT7v+swYgkC/hFAkj4+tAI7hlDesFW9zvJD7uO0Hxrbip iTu66qJjBPnrcfjZhAeDr33vDTDCPHL8CLZCsTYnPoLqXR1+UXiIiB8puOZqnaM6G2F6 7e+PomdDBOLeqZ9xBGjLumQYwJNVrE2EVVWQsQtlP1raduWSSSxO6kWwPC1FLCIXJ1Ns c8Jsndy9woL9LBl2vPYSp2qHSk8z14qCDle1DORXW7gTXEj/VKCPY3bLYoIaF1pjpHwq rqvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=lnar+9qJ1rVSKqcMeRNu3hVojwSY800G0dhrrrxjWlE=; b=DXtjN5Ajv+gqnpy88WV9Z6GGyuFl1IcgFVBELN/70bHbUx7DYL7GxESa7j4aj/WAwG U7lNy2xU9Q+EHRmM2GEVLFy3/DlHoedxKGzjS4xz9BPmjyLn+hZrIrd7xry3usMeMcPX c6c1ZQ10yROibGBe/VPbxDd8Iz1RFGmTWrDdZwdoMyjG78sNlNId3V6q7qibdfs/9+Wq nLuiUchlvntfarJvw/lzStCPoXvfbeuKKAmonPPCVmk9E7R+a/F7H376xXwciF6WlTe9 jbKTnF6CFolt9ZQGR0HPdr70Fhv4w2cn4K895Gcm6txVkW3QzMp/zscq9605Q9tnzizR 6HlQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532mHA/8qq1JVrMbEeBeuUmRIJ+crhoIK9diuX0L3y+m+ID1t09R JrdSGSMwrzii4MQ+hKV9oEQ= X-Google-Smtp-Source: ABdhPJwL5Ua3TmC4GTtilHaOq6VqlLuQ0JsjbJBdZtts8/iPb/33tWz8RMWRJOKOWpR4jek80K0brg== X-Received: by 2002:aca:f256:: with SMTP id q83mr385644oih.165.1599595078125; Tue, 08 Sep 2020 12:57:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:4a97:: with SMTP id i23ls136481otf.7.gmail; Tue, 08 Sep 2020 12:57:54 -0700 (PDT) X-Received: by 2002:a05:6830:20c7:: with SMTP id z7mr511999otq.96.1599595074773; Tue, 08 Sep 2020 12:57:54 -0700 (PDT) X-Original-Sender: marshall-g+3rYsS+t1LR7s880joybQ@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:26083 Archived-At: ------=_Part_572_239467187.1599595074025 Content-Type: multipart/alternative; boundary="----=_Part_573_1174786021.1599595074025" ------=_Part_573_1174786021.1599595074025 Content-Type: text/plain; charset="UTF-8" I'm converting from LaTeX to MS Word (.docx). LaTeX lets you embed the command \mbox{...} in LaTeX math mode. What goes inside the mbox is normal, non-math-mode text and commands. In my case, I have some special terms that I use outside of mathmode, which are italicized, e.g. like \textit{foo} I need to embed exactly the same text, formatted in the same way, in math mode. For example, in LaTeX, this is fine: $2 \times \mbox{\textit{foo}}$ However, when using pandoc to convert to Word, I get this error: [WARNING] Could not convert TeX math '2\times\mbox{\textit{foo}}', rendering as TeX: 2\times\mbox{\textit{foo}} ^ unexpected "\\" expecting "}", text, "{", "$", "$$", "\\(" or "\\[" It appears that \mbox is not treated as an escape out to normal non-math mode, so that things that you could normally do in LaTeX in math mode are not understood by pandoc. Is this correct? Is this just an unimplemented feature? I know that pandoc can 't do everything that LaTeX does; that's OK. Is there a workaround? Thanks -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7262e88e-6096-48f2-a7c4-541fa3a15410n%40googlegroups.com. ------=_Part_573_1174786021.1599595074025 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm converting from LaTeX to MS Word (.docx).  LaTeX lets you emb= ed the command

\mbox{...}

in LaTeX math mode.  What goes inside the mbox is normal, non-math-mo= de text and commands.  In my case, I have some special terms that I us= e outside of mathmode, which are italicized, e.g. like

=
\textit{foo}

I need to embed exactly the same= text, formatted in the same way, in math mode.  For example, in LaTeX= , this is fine:

$2 \times \mbox{\textit{foo}}$=

However, when using pandoc to convert to Word, I = get this error:

[WARNING] Could not convert TeX math '2\times\mbox{\textit{foo}}', rende= ring as TeX:
  2\times\mbox{\textit{foo}}
   &nbs= p;           ^
  = unexpected "\\"
&n= bsp; expecting "}", text, "{", "$", "$$", "\\(" or "\\["
<= span style=3D"font-family: Courier New;">
It appears that \m= box is not treated as an escape out to normal non-math mode, so that things= that you could normally do in LaTeX in math mode are not understood by pan= doc.

Is this correct?  Is this = just an unimplemented feature?  I know that pandoc can 't do everythin= g that LaTeX does; that's OK.  Is there a workaround?

Thanks

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/7262e88e-6096-48f2-a7c4-541fa3a15410n%40googlegroups.= com.
------=_Part_573_1174786021.1599595074025-- ------=_Part_572_239467187.1599595074025--