From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29243 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Pandoc to (La)TeX creates ampersands inside tables Date: Wed, 15 Sep 2021 09:49:02 +0200 Message-ID: References: <0967c094-0aeb-45a2-a617-34eb476aa189n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000005941d05cc03efd3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36599"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB56KQ2FAMGQEFKCZWGA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 15 09:49:14 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f190.google.com ([209.85.208.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mQPfO-0009Lu-EF for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 15 Sep 2021 09:49:14 +0200 Original-Received: by mail-lj1-f190.google.com with SMTP id c16-20020a2e89d0000000b001d018ef42aasf1054237ljk.23 for ; Wed, 15 Sep 2021 00:49:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631692153; cv=pass; d=google.com; s=arc-20160816; b=Ll4DmYf/mFe9+0TH7cMW8dAW1oapRWzdQRBw/jkk4u4txPwijr9rZysyVTFNPhqVDm TxvWWw84iRtOt/InPpKc+nPGVi5yUKJ4xIiDNFiffvmO+8B9YA7uFJTJ662BHtXxF85q ydM9gWFnJHgPklKuB2HBgQRHJde8E1O+gz4qGJ2YQuGk6e8bk15ltyvKOJUojFBrmHDt 9S5U/V2qBCvelnz/H5D2yi6uCiQL6pyO4Y3HO+6qCxxh/MT+GAMFJm6xbKrtKLrWvhwB 9rClbOEdWYxh3cwiJhv23PQytpaaL6JoRkPD4i//GmNvl14oK1NfTO+fZVZYyPuNq70i p18A== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=kMU56aUK9PbLrP7sXph2b8u9XIcfaSvTrZn63qlJq8E=; b=LM2+HcOYeMfxlbjT2tnuQ9A8jnRPRtYyQmlHUf9tnEEGjBNEkOnvj+2vn0PCLCsGjc CpgifpUlEkDLarH4qNQOqXJoUUMGcL/TLsUjg362Fp2o53hQSUut/tfgE8OD9jFiWtH3 doXw7wHC9zl+mYVo68Wv/x1fLYPfxQccyFwCf1btcN6hK3St5adVpcq56addrajAaiY3 54iJU3nAqN2Okvqa6HPF0jltQkemISeTafB/qG7GFAlb1MmHM4RC6LomzG1x4WU9QbQM zJoMO1xqATB+Y6i+C9JlHXXffF602a98KtYw7BMtqCne5PV3Cuf+54GpigU7kipj2+ea nmGg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="RF8/r9xD"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=kMU56aUK9PbLrP7sXph2b8u9XIcfaSvTrZn63qlJq8E=; b=A+2iwteOZqXaoiuCb21rGdYwNilE9ZYc21Zkj93oycadVaTLsflq+gQz6AwirsfWZH j+oCOcXCRxsc8PHnOd9kfQdCzvrqXuPx1r8FTINkC83RfYfCiF6ObUMZSc4EjgqgYoBU GfsKvAWK1GwRmTMfHEF89qh+tHZnReJ/eaU/fupfYMkIgV9WrdY9tSphQ0RIIGo966tw lIzsm6A/C2VMaFNIzSTK0R8ybpHGN0cPDmyNXUXITOaFP9+Dz7xob/vvijhEDf2IzMzC maNdjo3Ojao56rfGOgszdeRHhwpKVwPtDnzoz1Vs/BR7WEqYyKFXmkOCUNQ4V4LaVr0A 5iqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=kMU56aUK9PbLrP7sXph2b8u9XIcfaSvTrZn63qlJq8E=; b=dK4pR/FCBICYWHVhQpxetFRwxlMweEERWcpgHz+6mMa74Bp9tmbpN0rAIvaLsExDYy Xb++3woYre9yWwnWrBpfyF6QqK/Aps7Hkm+8izbOUOCPjiZXeuSrm6ZjZrb7odPoIwYa sFKkBSj84YV3iq6CkQiZHkZVfFJnUghkUR5oIOQ6cKMA/UC9bvK6fnub4+U+4nMitVyK 8xb94VSj1QHWTzgSjU65qFwaS2X92p3B1T57PBvx6NYVn9gQ74x+bx+hsfT+WXYqvOLx QK9TwTie41Qmw/wnwet0ayWkU0GZPh/M1pORE4PP8kCbin3NvcP4pkOBN2w1cTFZ6L1K YEgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=kMU56aUK9PbLrP7sXph2b8u9XIcfaSvTrZn63qlJq8E=; b=ZaAlLjQNgbuwpEU7nZvXubufsZU1kAqop9F8NjR8bCApEp3yBacXlF2XNm7RQbQw6R 7X2yvePrs4KgJcwxVqTXCCgTOqnZdIRT0+YjezBR5q/Hn7Fxq1iWE/twruvkByOOvv05 StfKH5UlJvkTnW7+1OCVlLKuCGsBsu8mBFaqtjumxdgFcM3/jEZvKzLbsjcXE3Nx6tqk h5QgY2oLA53z2Bz6HO9ZYZGWuVUDXhvft5gLrVBGmOqLpvgmSyCVBUYuXEnhfOFd/e6K P880+efiYIki4Ck7dNeFNt/y2P+wowaw7VD7QKvZEstJ1YgHxRaPI64D9mxNX8Zl2im4 OTQQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531m9yI8ND2/ud5siaAgDOq6RyYytz6+/BS80qF8EaYhyIS5Vppx 6W53A7VxyAxI3hxrLFKQxu4= X-Google-Smtp-Source: ABdhPJxHfcqOItzzXn4j3pI+zE5to5nLFRWeiK5BXPoD1x847KZfNoBmRK6tSCa8kPLHDO0HLgvS6Q== X-Received: by 2002:a05:651c:54e:: with SMTP id q14mr18434762ljp.426.1631692153612; Wed, 15 Sep 2021 00:49:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3b88:: with SMTP id g8ls1510207lfv.1.gmail; Wed, 15 Sep 2021 00:49:11 -0700 (PDT) X-Received: by 2002:ac2:4d35:: with SMTP id h21mr3117367lfk.237.1631692151011; Wed, 15 Sep 2021 00:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631692151; cv=none; d=google.com; s=arc-20160816; b=ZB02o4xGX6rRnvr7M8BQh7Xh+FZquMrQfgLXO9dfxZbiapJ6uhfv6WbOPp0zp65N3/ PNgOpC3CcQpgQOQ5BxwN6P72Y8Byqw3UCwQlT9vTCdw7we7p3NnOTfB04596NPkxavSD nETimEq7s9k3aCCzopXEeXcoanChKhpiCGByd+lt58hLsF2rZS+Y2DXATT1tSHrodh3C CwFF5XMXVS//pYgydKPEmBygvXwpWl7iAwdvGTO7928OKxL6WUL2mKqufNnXNc2KtH2V vNAu9oIcDkBTLDXJrvVFSSactnZvLaNbtEqjvgQ707aRBBVozjzreq4KCqIpDrqEW/9g jWLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GfK79fZ2FNwDydf66pnh8wYwekjRC7Quz4reoM7KZag=; b=0U7VBvVlvqiOn+0ipgfL+yztSkzouSVEZA76ysKn8y1qP5G4SVyywv8w0t7WI6OTSj PPdvMbudHy20gaITpV1e3sCvoLaCEsWd+GWPYaLTipXdatCxO991FEwp/u32dOuj2+uz vymGgfgTW5d29hNkKJemYFFSULy3pQ+4xov4sP/88D35gF+W8AXch6+iDTS1LI77Pchb DYGcdE3/uXFZJk/JpD8KCANemRMHroWZj0YoVnN+msw1r7sqiQvcbE38FQ15YkxkK9DI 9nwtuAErCqD4V6fjk6IjsRaKMgZmnpn5NsTKfkoRS86/H6qxRtHiDQlaMjqNjK9Y+ScW PyBw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="RF8/r9xD"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com. [2a00:1450:4864:20::230]) by gmr-mx.google.com with ESMTPS id f16si1189078ljj.3.2021.09.15.00.49.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Sep 2021 00:49:11 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) client-ip=2a00:1450:4864:20::230; Original-Received: by mail-lj1-x230.google.com with SMTP id f2so3674228ljn.1 for ; Wed, 15 Sep 2021 00:49:11 -0700 (PDT) X-Received: by 2002:a2e:bc14:: with SMTP id b20mr19034657ljf.71.1631692150640; Wed, 15 Sep 2021 00:49:10 -0700 (PDT) In-Reply-To: <0967c094-0aeb-45a2-a617-34eb476aa189n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="RF8/r9xD"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:29243 Archived-At: --00000000000005941d05cc03efd3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable LaTeX uses & to separate the cells/columns in table rows so `foo & bar & baz \\` is one row with three cells/columns with the text "foo", "bar" and "baz" respectively. That is perfectly normal. If these ampersands show up in your PDF something else is wrong somewhere. It is impossible to tell what it is without seeing your Markdown source for the whole table and the LaTeX Pandoc produces from it. Try to get a minimal working example (MWE) by copying the Markdown source for just the table into a file of its own and converting that to LaTeX and PDF. If the problem persists attach the input and output from the MWE to a message so we can have a look at it (obviously removing/replacing any sensitive content as long as it doesn't affect the result.) Disclaimer: I am not a Pandoc developer, just another user who knows a thing or two about LaTeX. /bpj Den ons 15 sep. 2021 09:27Ferty skrev: > I am using Pandoc to turn my latest book, written in markdown, into Tex. > On the way, Pandoc adds & (ampersand) to the one table I have in the book= . > So this > > | Sample | 14=E2=80=AF=E2=82=AC/kg | > > gets turned into this: > > Sample & 14\,=E2=82=AC/kg \\ > > Which, of course, creates problems during my conversion from tex to pdf > further up the road. > > Why does Pandoc do that? How can I stop it? > Using Pandoc to go from Markdown straight to PDF works fine > > -- > 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/0967c094-0aeb-45a2-a617-= 34eb476aa189n%40googlegroups.com > > . > --=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 view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CADAJKhBidpr9MJSZ7foO4yo3w0quvckLzzvDAUA4EF8d-5k5ew%40mail.g= mail.com. --00000000000005941d05cc03efd3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
LaTeX uses & to separate the cells/columns in table r= ows so `foo & bar & baz \\` is one row with three cells/columns wit= h the text "foo", "bar" and "baz" respectivel= y. That is perfectly normal. If these ampersands show up in your PDF someth= ing else is wrong somewhere. It is impossible to tell what it is without se= eing your Markdown source for the whole table and the LaTeX Pandoc produces= from it. Try to get a minimal working example (MWE) by copying the Markdow= n source for just the table into a file of its own and converting that to L= aTeX and PDF. If the problem persists attach the input and output from the = MWE to a message so we can have a look at it (obviously removing/replacing = any sensitive content as long as it doesn't affect the result.)

Disclaimer: I am not a Pandoc develop= er, just another user who knows a thing or two about LaTeX.

/bpj



Sample & 14\,=E2=82=AC/kg \\

W= hich, of course, creates problems during my conversion from tex to pdf furt= her up the road.

Why does Pandoc do that? How can = I stop it?
Using Pandoc to go from Markdown straight to PDF works fine<= br>

--
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
pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0967c094-0= aeb-45a2-a617-34eb476aa189n%40googlegroups.com.

--
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/CADAJKhBidpr9MJSZ7foO4yo3w0quvckLzzvDAUA4= EF8d-5k5ew%40mail.gmail.com.
--00000000000005941d05cc03efd3--