* Pandoc to (La)TeX creates ampersands inside tables @ 2021-09-15 7:26 Ferty [not found] ` <0967c094-0aeb-45a2-a617-34eb476aa189n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 2+ messages in thread From: Ferty @ 2021-09-15 7:26 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 882 bytes --] 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 €/kg | gets turned into this: Sample & 14\,€/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. [-- Attachment #1.2: Type: text/html, Size: 1381 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <0967c094-0aeb-45a2-a617-34eb476aa189n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Pandoc to (La)TeX creates ampersands inside tables [not found] ` <0967c094-0aeb-45a2-a617-34eb476aa189n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-09-15 7:49 ` BPJ 0 siblings, 0 replies; 2+ messages in thread From: BPJ @ 2021-09-15 7:49 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1: Type: text/plain, Size: 2475 bytes --] 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 <felixcreates-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 €/kg | > > gets turned into this: > > Sample & 14\,€/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 > <https://groups.google.com/d/msgid/pandoc-discuss/0967c094-0aeb-45a2-a617-34eb476aa189n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CADAJKhBidpr9MJSZ7foO4yo3w0quvckLzzvDAUA4EF8d-5k5ew%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 3477 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-15 7:49 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-09-15 7:26 Pandoc to (La)TeX creates ampersands inside tables Ferty [not found] ` <0967c094-0aeb-45a2-a617-34eb476aa189n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-09-15 7:49 ` BPJ
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).