From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18023 Path: news.gmane.org!.POSTED!not-for-mail From: David Nebauer Newsgroups: gmane.text.pandoc Subject: Latex command in header inclusion munged with \textbackslash{} Date: Mon, 7 Aug 2017 00:39:58 -0700 (PDT) Message-ID: <85d3801f-6a20-4873-bf2e-e8cd7f13445e@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2989_816355518.1502091598328" X-Trace: blaine.gmane.org 1502091598 7847 195.159.176.226 (7 Aug 2017 07:39:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Aug 2017 07:39:58 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD7YRUMRLYIM5MVAZQCRUBELWRHFW-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 07 09:39:54 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pf0-f186.google.com ([209.85.192.186]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1decdl-0001lW-Et for gtp-pandoc-discuss@m.gmane.org; Mon, 07 Aug 2017 09:39:53 +0200 Original-Received: by mail-pf0-f186.google.com with SMTP id s86sf4891390pfd.3 for ; Mon, 07 Aug 2017 00:40:00 -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=IQEwIbcJnq9ZmghhJ9L79LfeuTHIIEpchfQvkFyN710=; b=K/lISfq6P2lpJmluJn25ZTTfESEr+DPT81xRR/B9CESszN4Mf9jDir+r/eH0wF11d/ 3cL4/bfWwWSAZ4ENGwbybfvkyUca13oGOe+LBGQdtu5qelzgm4PUJ4qz8f8b4I57GKrG iuzDWCeNNyjjUqdKqSmD1Ecjw4QP+BXOD6PI30/GbeupR+YuIvbtTcCverd/R94Y8FsI ctlHEDsilObLWofDPFkh1H3qao8P68tt2RHF1r1+0K9nA7kXjlrtCcuQnUwQNjucCIr1 WqLEqlDy59XtgxJAJhLjxAhfp9Tjl1t7d7bGYL7cVesWf28ndtMKPioM29DXs6r50ID2 ZSmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=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=IQEwIbcJnq9ZmghhJ9L79LfeuTHIIEpchfQvkFyN710=; b=VQOtkq6dyOhWN79Cu4xHmQczHNApJxCmn3ej/Qkdiefg7Sw7GvpldGop3ivgtKCnkA 6a/ARL3Y51sHvbNfghp8Rea5+wjcVUAAlbkZNw8VK6rmAt24iNmIBe/J4Fe6GrlggpfK rHfseAu+mn9o1PV1qTnhs2VwObtNqC0egz///J+nRVW+vMq2mYbWVsEYOPS6xbkJkx5J mRQHytXVe5XiufdSQMhlfIXtQ8RHho6t1cC+vIEPb6ggqmUDhvC3zGtvM+tNOXMGwDLj x09C6jbJyTwcvt2wy8wm9VSkRJshN8WqwNLiim1c0cKQzRlEegAT4YULd2EX/m+vHcfh KVWQ== 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=IQEwIbcJnq9ZmghhJ9L79LfeuTHIIEpchfQvkFyN710=; b=FDFCf/N2hJlJUYfJcAUud9YriLlecP/JcHenduABacDU9dmOiT/UcT8iqbPTTz/nfr kAbLdYpM1q9IrgOl/+c0kWGVWdtpZRBdmfQMUE1LDC+B5GomgMydcLVuc5J7PaD4nTz8 9WyTGG+hTMj2fdrVXxyIIto4mF4UgAIobz7yf+rvVi1mI+YP1KX86+GSGL3mJmw0boRN MijvcjffWEulWpQnpP+Xogod9RYjLIIHx8D1JFKiXASFad0Dg1PbB5+zoncf3X1Cvblu TYZAFfrXd1QB5VS/bixy9YzwOaW10meJ1IOw1CrTsfTxVyq7L7E+07mIZ04nHqpL7LtL H+EQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5il95WYWc6XlZLo6pKw/hNauIfKnAcrVbPBMxfnzisE3MiMb1p4 aAVSpSd0qaSREw== X-Received: by 10.36.86.12 with SMTP id o12mr976itb.5.1502091599435; Mon, 07 Aug 2017 00:39:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.74.69 with SMTP id k66ls5192996itb.20.canary-gmail; Mon, 07 Aug 2017 00:39:58 -0700 (PDT) X-Received: by 10.36.82.83 with SMTP id d80mr1376itb.8.1502091598764; Mon, 07 Aug 2017 00:39:58 -0700 (PDT) X-Original-Sender: davidnebauer-Re5JQEeQqe8AvxtiuMwx3w@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.org gmane.text.pandoc:18023 Archived-At: ------=_Part_2989_816355518.1502091598328 Content-Type: multipart/alternative; boundary="----=_Part_2990_522355494.1502091598328" ------=_Part_2990_522355494.1502091598328 Content-Type: text/plain; charset="UTF-8" If I process this markdown file ('mwe-latex.md'): --- title: "Minimal Working Example" header-includes: - \let\oldsection\section - \renewcommand{\section}[1]{\clearpage\oldsection{#1}} --- Text. with the pandoc command: pandoc -t latex --latex-engine=xelatex --output=mwe-latex.pdf mwe-latex.md I get the the error: ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.49 \let\oldsection\textbackslash{}s pandoc: Error producing PDF On generating latex output with the command: pandoc -t latex --latex-engine=xelatex --standalone --output=mwe-latex.tex mwe-latex.md and examining line 49 of the output file it becomes apparent that this line from the header inclusion: \let\oldsection\section has been munged by pandoc to: \let\oldsection\textbackslash{}section and this is causing the processing problem. (Note: changing latex engines makes no difference.) Once line 49 is edited to resemble the original command from the header inclusion the error disappears. How can I prevent this latex command in the header inclusion from being munged by pandoc? -- 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 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/85d3801f-6a20-4873-bf2e-e8cd7f13445e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2990_522355494.1502091598328 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If I process this markdown file ('mwe-latex.md'):<= br>
---
title
: "Minimal Working Example"
header
-includes:
-= \<= span style=3D"color: #000;" class=3D"styled-by-prettify">let\oldsection\section
- \renewcommand{\= section}[<= /span>1]{\clearpage\oldsection{#1}}
---

Text.

with the pandoc command:

pandoc -t latex --latex-engine=3Dxelatex --out= put=3Dmwe-latex.pdf mwe-latex.md

I get the the error:

= ! LaTeX Error: Missing \begin{documen= t}.

See the LaTeX manual or LaTeX Companion for explanation.
Type= H <return> for immediate help.
...

l.49 \let\oldsection= \textbackslash{}s

pandoc: Error producing PDF


On gener= ating latex output with the command:

pandoc -t latex --latex-engine=3Dxelatex --standalone --output=3Dmwe= -latex.tex mwe-latex.md

and examining line 49 of the output f= ile it becomes apparent that this line from the header inclusion:

\let\= oldsection= \section

has been munged by pandoc to:

\let\olds= ection\textbackslash= {}<= span style=3D"color: #000;" class=3D"styled-by-prettify">section
=

and this is causing the processing problem. (Note: c= hanging latex engines makes no difference.)

Once lin= e 49 is edited to resemble the original command from the header inclusion t= he error disappears.

How can I prevent this latex command in the hea= der inclusion from being munged by pandoc?

--
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/85d3801f-6a20-4873-bf2e-e8cd7f13445e%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2990_522355494.1502091598328-- ------=_Part_2989_816355518.1502091598328--