From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20069 Path: news.gmane.org!.POSTED!not-for-mail From: Jeremy Theler Newsgroups: gmane.text.pandoc Subject: Re: unexpected _ when reading latex Date: Fri, 20 Apr 2018 18:46:56 -0300 Message-ID: References: <9253e5117262e3e9ce81c159dac68106fbd2b6ac.camel@seamplex.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-PpeCPdNlj6VB8yiYQyiu" X-Trace: blaine.gmane.org 1524260698 22244 195.159.176.226 (20 Apr 2018 21:44:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2018 21:44:58 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7FLGCQYBBBVN75HLAKGQELUAIVCY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 20 23:44:54 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f57.google.com ([209.85.213.57]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9dpr-0005gC-Tx for gtp-pandoc-discuss@m.gmane.org; Fri, 20 Apr 2018 23:44:52 +0200 Original-Received: by mail-vk0-f57.google.com with SMTP id l75sf6546426vke.20 for ; Fri, 20 Apr 2018 14:47:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1524260822; cv=pass; d=google.com; s=arc-20160816; b=Ren5syU6h7CpUxoWr16HsBTJfBDbnLyzOjwDAgUaHEFr07rGhuc0xOt/5gjIdzYtuT 6O5mV4Z9luA12a0j6U70opq6ywlhp4rukYWXTm2PK1tpiftwNyzNS6GBXAGEHjF4G8Tg 3W/Anivqqm/+Rq8Cl20hYLjW8GHzeMruy7NUV/qi1cG57eD7+U9zkuTk8h54N22LxPP+ BvQMvUXjChMfFFMq6ZdwJIQy8Ho3sXLQwHofk73sCRzCMPavYcT524DZBT861q+24Q3U ePE/O+H+8T2DPouCOBnUHrQ8z30f9z2HZ/jtFCWccILTH6qZPHoLIS3vmbYtD6tssb4C Afuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:references :in-reply-to:date:to:from:subject:message-id :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=mypSdY7LNhqo8EYkQTPBTmwd6fzhEHXBvn+bohL39vM=; b=scsIxeeoST7fisajg8qMUMCkZ4Ka7DIOt3H+KzjXxUcRHu02tqBk605eGb0PZMwpId 3LNFjGdZFQRBccQYELl2fvsNpfuRlSLV0orqUsdOGBiPDrKQsrPXr8Kt/WwmWZurjW25 Zo4jzXbIP1n1csE/d5l6iMIULFhreTLlWYXH8vTDL3GkkhoSTEFR1CLY9rrbZQh2tkMP Vs/9BeKEIeXwXjKdoJG1+csx/TZqZgc445lzMf3/FgnVb8r1vd2P2SHYqixGrYHq87js qaoMURXBlplEaLGx86GuIgbNroqX6RgeTRX+ujU/xu2Yivora2iglfiRUssIXjwf/PK0 5sJA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@seamplex-com.20150623.gappssmtp.com header.s=20150623 header.b=oDPp+I0Z; spf=pass (google.com: domain of jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org designates 2607:f8b0:400d:c09::22b as permitted sender) smtp.mailfrom=jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:message-id:subject:from:to:date:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=mypSdY7LNhqo8EYkQTPBTmwd6fzhEHXBvn+bohL39vM=; b=CUM5gCQs0i8cwgm5NY5tj/+YCrduAJO8fUp+g1BfcB/1ZccRjtLHlMkRwvvQJgghX2 TzA79EKUOmvc63i8bUdXihLqVHL2e/9ypHtsBUXQhMVexGuA8X+T2R/ImUaWc9BjTX9R JpdO/qsEYTUUWtSkVxzUNiewUBRvr2BEXBO2NhWsl3t9YgPif+P0SSEhDDtJJTz8xY7h N4Pw/ZQPNgfu1kp+C98qVZvpZAIeO4n4JxBhUMd4HzSjGB/VQwKkD5q7jd/EEsJYk/Dd mexZ/ugFoskRPA/N9wep2WBqC8nzLjGs8/2a8dw5Bg1fHcAy9/pqzUKNSQzVG/zq9PP/ 7AKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:message-id:subject:from:to:date :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=mypSdY7LNhqo8EYkQTPBTmwd6fzhEHXBvn+bohL39vM=; b=KjC1j0VsamxpW94eF67efikm0bxEI1/oAKEdZun5xv/l7PasWvEE4s6qhb7RPhxx53 Lvye98U9GRuvJOvTloCqIH2bNcMHPhlZQhdupIEk9NL4XHqhAJo3obCwZA/KD577vAgL kle8QWeAEinOuuMxqtqQfMUVN/+V8xEBumw/XCBrpWOviCKqNX7PIYBNbPPMi979bgL6 RqjDzwbairEDq4qOdgOYIuULMeWRKvqaxMX4T3Kwk1LUae+zlvFDs91pwJ9uNnl5Xt8h ZXA1wQNT7aODrc1+Z1Htzj9xhb48VI91psaSFtwMdewlpO7TleH9kP1QIH3kVf40TNgo 8y9w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALQs6tAPh/PMUwfLyLun4P+rsk/ZcBg5RhM0F8dnR3VrgtwbwE9WOtUq v0O6PVKfZw9/NxNiYbRBX2g= X-Google-Smtp-Source: AIpwx4+ByRIm2/yHAkUIfLa+5xO7/jpIBOy7RjuBHxZapvi/7PP4vYh1fTT1yv++bE1LoqB7HaHg8w== X-Received: by 10.31.193.2 with SMTP id r2mr306579vkf.11.1524260822739; Fri, 20 Apr 2018 14:47:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.31.157.199 with SMTP id g190ls5563555vke.10.gmail; Fri, 20 Apr 2018 14:47:01 -0700 (PDT) X-Received: by 10.31.158.12 with SMTP id h12mr5426075vke.2.1524260821567; Fri, 20 Apr 2018 14:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524260821; cv=none; d=google.com; s=arc-20160816; b=M/IGYzdWlU+OCXNezdhHBlrK5eoxZcj0bDoAot09rHyqfE36cokNPj7dYDV9K5hGx4 kW3Y+Vxux6Hze8vdWwdFXrZp5xTUx1DTNKz8UgsyoK6o0toQBOinjkk9jNbxB5zHSuY8 LClKkNFg0mBoGGSUgy+f1uO9AxboSlYlWR/O8Hs5Xtln6v2KsBo6vSaMBnhp5+ZZcYOB z06+P0EiRgKC3o2nU7bvnZtg+pAQvGOYbE7MWeIo/hTLWQlQdA4ZYDW+rtBzH6ceuHYw Q+O22c81lgEGEiy1hDqdoWjCGE2iTLcYo/uy1WAAifv9ovADrhO/ZiJ6upF3wgZDoXkq cZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:date:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=ObhV9gEvnYAWqCk2ryGN7V0wrngKnfjh+gS7vaUCDyU=; b=ttZ6QX8qVcr65MkkCaFkkjvI7zmW9xh4IVo8gqaerKhQEcd3hRCpiYv5kjPGHNpc2v a0iKxxlJSb6iig7/wWvimUL8DPTvERFbjkIP92dcfoPe8v9F439FA+4hKa4CgOqQmObc y8DRHXbx7qsN+L+6axyXoA0eZyS+5wPX1b1eZaMcJ+6E84TUK68jRLLRnENcy21Js3lF xPRxqIBrIfQJMTmhrHspP/kJGtqwAqfVlaAxhX5RKuWQpXw9RD7I3xtH6gMypZvkLPxl CHlm/hnSXxfBeTGR+SOL5qNOpF2nMtTyAKXA+UFDpLoZVIk5cb1atq1Qw4oeLe5nhY/6 WanA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@seamplex-com.20150623.gappssmtp.com header.s=20150623 header.b=oDPp+I0Z; spf=pass (google.com: domain of jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org designates 2607:f8b0:400d:c09::22b as permitted sender) smtp.mailfrom=jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org Original-Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com. [2607:f8b0:400d:c09::22b]) by gmr-mx.google.com with ESMTPS id 95si590599uas.2.2018.04.20.14.47.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 14:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org designates 2607:f8b0:400d:c09::22b as permitted sender) client-ip=2607:f8b0:400d:c09::22b; Original-Received: by mail-qk0-x22b.google.com with SMTP id b131so5893955qkg.2 for ; Fri, 20 Apr 2018 14:47:01 -0700 (PDT) X-Received: by 10.233.192.16 with SMTP id u16mr12504582qkk.407.1524260820877; Fri, 20 Apr 2018 14:47:00 -0700 (PDT) Original-Received: from tom ([181.230.183.240]) by smtp.gmail.com with ESMTPSA id t82sm5538801qke.52.2018.04.20.14.46.58 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Apr 2018 14:46:59 -0700 (PDT) In-Reply-To: X-Mailer: Evolution 3.28.1-2 X-Original-Sender: jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@seamplex-com.20150623.gappssmtp.com header.s=20150623 header.b=oDPp+I0Z; spf=pass (google.com: domain of jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org designates 2607:f8b0:400d:c09::22b as permitted sender) smtp.mailfrom=jeremy-24em0bpozeFWk0Htik3J/w@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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:20069 Archived-At: --=-PpeCPdNlj6VB8yiYQyiu Content-Type: multipart/alternative; boundary="=-JhnLuLEgfWaqDT1EU1V9" --=-JhnLuLEgfWaqDT1EU1V9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey John The attached mwe.tex fails even with https://github.com/jgm/pandoc/releases= /download/2.1.3/pandoc-2.1.3-1-amd64.deb $ pandoc mwe.tex =20 Error at "source" (line 1, column 54): unexpected Tok "source" (line 1, column 54) Symbol "_" expecting end of input donde~$\rho$ es la densidad del acero, $\rho_\text{D$_2$O}=3D\SI{866}{\kilo= gram\per\cubic\meter}$ la densidad del agua pesada a~$\SI{250}{ \celsius}$, y $r_i$ y $r_o$ los radios internos y externos respectivamente. ^ regards--jeremy thelerwww.seamplex.com On Fri, 2018-04-20 at 08:09 -0700, John MacFarlane wrote: > What version of pandoc are you using?It works fine for me with the latest= . > Jeremy Theler writes: > Hi all. Pandoc is complaining about an unexpected underscore (the one aft= er D$) when parsing a complex (yet still valid) LaTeX inline math expressio= n: >=20 > The density of heavy water is $\rho_\text{D$_2$O}$ >=20 >=20 >=20 >=20 > I understand the parsing logic is complex because there are nested levels= . Can a similar logic be implemented in Pandoc to handle this expression? >=20 >=20 > regards--jeremy >=20 > -- You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.To unsubscribe from this group and stop receivin= g emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.= com.To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF5qMzOjczn9V@public.gmane.org= view this discussion on the web visit https://groups.google.com/d/msgid/pa= ndoc-discuss/9253e5117262e3e9ce81c159dac68106fbd2b6ac.camel%40seamplex.com.= For more options, visit https://groups.google.com/d/optout. --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/ae81cd8f7d0bec7cd54e48291777eda7a3afa9b5.camel%40seamplex.co= m. For more options, visit https://groups.google.com/d/optout. --=-JhnLuLEgfWaqDT1EU1V9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey John


= $ pandoc mwe.tex  

Error at "source" (line 1, column 54):
unexpected Tok "source" (line 1, column 54) Symbol "_"
expecting end of input
donde~$\rho$ es la densidad del acero, $\rho_\text{D$_2$O}=3D\SI{866}{\= kilogram\per\cubic\meter}$ la densidad del agua pesada a~$\SI{250}{
\cel= sius}$, y $r_i$ y $r_o$ los radios internos y externos respectivamente.
           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  ^


regards
--
jeremy theler
www.seamplex.com

On Fri, 2018-04-20 at 08:09 -0700, John MacFarlane wrote:
What version of pandoc are you using?
=
It works fine for me with the latest.

Jeremy Thele=
r <jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org> wr=
ites:

Hi all. Pandoc is complaining about an unexpected underscore (the on=
e after D$) when parsing a complex (yet still valid) LaTeX inline math expr=
ession:


The density of heavy water =
is $\rho_\text{D$_2$O}$



<= pre>

I understand the parsing logic is complex=
 because there are nested levels. Can a similar logic be implemented in Pan=
doc to handle this expression?



=
regards
--
jeremy

<=
br>
-- 
You received this message because you are subsc=
ribed to the Google Groups "pandoc-discuss" group.
To unsubscribe=
 from this group and stop receiving emails from it, send an email to pandoc-discuss+uns=
ubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email =
to pandoc-discuss@google=
groups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/=
pandoc-discuss/9253e5117262e3e9ce81c159dac68106fbd2b6ac.camel%40seamplex.co=
m.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.= com/d/msgid/pandoc-discuss/ae81cd8f7d0bec7cd54e48291777eda7a3afa9b5.camel%4= 0seamplex.com.
For more options, visit http= s://groups.google.com/d/optout.
--=-JhnLuLEgfWaqDT1EU1V9-- --=-PpeCPdNlj6VB8yiYQyiu Content-Disposition: attachment; filename="mwe.tex" Content-Type: text/x-tex; name="mwe.tex"; charset="UTF-8" Content-Transfer-Encoding: base64 ZG9uZGV+JFxyaG8kIGVzIGxhIGRlbnNpZGFkIGRlbCBhY2VybywgJFxyaG9fXHRleHR7RCRfMiRP fT1cU0l7ODY2fXtca2lsb2dyYW1ccGVyXGN1YmljXG1ldGVyfSQgbGEgZGVuc2lkYWQgZGVsIGFn dWEgcGVzYWRhIGF+JFxTSXsyNTB9e1xjZWxzaXVzfSQsIHkgJHJfaSQgeSAkcl9vJCBsb3MgcmFk aW9zIGludGVybm9zIHkgZXh0ZXJub3MgcmVzcGVjdGl2YW1lbnRlLgoK --=-PpeCPdNlj6VB8yiYQyiu--