From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18033 Path: news.gmane.org!.POSTED!not-for-mail From: David Nebauer Newsgroups: gmane.text.pandoc Subject: Re: Latex command in header inclusion munged with \textbackslash{} Date: Thu, 10 Aug 2017 04:10:59 -0700 (PDT) Message-ID: <06c61ee7-a420-4787-b90f-dda37007ef07@googlegroups.com> References: <85d3801f-6a20-4873-bf2e-e8cd7f13445e@googlegroups.com> <20170807182546.GB91733@airbears2-10-142-0-86.airbears2.1918.berkeley.edu> <1cef78af-0bfb-4d45-983b-39863c588bb6@googlegroups.com> <6dc05b9e-b1fd-cf4c-6d6b-8b6adb9a1df0@rohieb.name> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_699_534061156.1502363459062" X-Trace: blaine.gmane.org 1502363465 17087 195.159.176.226 (10 Aug 2017 11:11:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2017 11:11:05 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD7YRUMRLYIMH7VQZQCRUBHHO3HUO-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 10 13:11:00 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f56.google.com ([209.85.213.56]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dflMc-0003p2-AD for gtp-pandoc-discuss@m.gmane.org; Thu, 10 Aug 2017 13:10:54 +0200 Original-Received: by mail-vk0-f56.google.com with SMTP id g189sf258971vke.2 for ; Thu, 10 Aug 2017 04:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=hmwhY6gAPEK83QQNqccj2e7dfUj8YhwjJMzk52o43ds=; b=daGI0RXfRoFLA04s/tD5oOK7M5LB+EV1yL/2XHN0Qg0/UmHkVvvC/JNgrpPTQ5wmNw PE4U3/fOTUJ8FEL3V4lEVeM4cP4dDQn+p4ZjC+9mxvi7oM691RK+X7/Uxt0e4UteCeE8 6w3MS57N/+ME4fMI6R/O0p1CHh/8cJHNiIM0SQq/QHEfwklq7mV9nHtOPxfzs3tcxkjF hywugzY7Qj8v9dXmoDw47ASUoTyyf/FJJGrgYf4KniE9kM/058NfBU9smJkEVJq5FUZa 7HRm9wBpLxpBlxEADSnT9I1Fvo5Kp4+UkO6IKPVJCaeQyzigJGu+VrFyFwNWwU50hgY7 Pqjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=hmwhY6gAPEK83QQNqccj2e7dfUj8YhwjJMzk52o43ds=; b=tV2wVpuufHxvOXCA0OoIrPNp6pyMUg5Q4SffBMHVTOInPhxKE+GbCa0RSuWPYf+q5W AhCjme6oENa7sDAjfupG3cmD8HaF4ej5CtHeV2qzP+8GiTjlH2GYburs3PB2/s3hp5m4 zUYDiMVBV9VPTYkgyKtkSsMga7upD4OkVma0jr8lzoE97TCNRcLet/XwQqJBN+ZGAH/c hTBoXaLjdrkyuwo/mQYP/JiDuTifMgCh66t4WpIoBgAXf/Xm1c5eI1O4MJdc0cekI9Oj D7Oz4l+27/PvUw9o+VpUxJHJYO4XvtOWu0mRFnSIezk9ePtz4bIfEQVvtPtLpDdbgHhM 71gQ== 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:in-reply-to :references: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=hmwhY6gAPEK83QQNqccj2e7dfUj8YhwjJMzk52o43ds=; b=K6achYAjD1apuXnqcJzx7R2G0ZPUmwpfatf35CO1mz04LsANz+BvuR/xXQ77giDhqd khX4rQoYNKrTZQhcvPLK3mOSE/1Kl4PORlpUb7zVWZiJ/sOZuvPBRpeYSimUUhoEx/GP Gy5jVNUxC+tCXMjjscHuLdjG0xLnMnHG2c29mC4piTeqlxkgSGazABE0J5glRXqMK0mT /eErUBQW+aHODlMt5XXpERw6/whFItsWD0D0igHHNQJMZTlXj6GFa846fKSP3UdEkHF8 Db+YEwB1ePKc6nbtsSDWeA81z/CG8bcUgfw6DnPRyJl0AkP/Ep4YJTXdanWlsomLA4eI OUmA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw112uEeqS2wT69GS7HFLk2V6WdoicGY9oTsEjzR5kiANrhOxngNJw aovJ4H8cPLeHSQ== X-Received: by 10.36.68.87 with SMTP id o84mr204686ita.9.1502363460444; Thu, 10 Aug 2017 04:11:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.141.4 with SMTP id p4ls11873579iod.30.gmail; Thu, 10 Aug 2017 04:10:59 -0700 (PDT) X-Received: by 10.36.103.84 with SMTP id u81mr503428itc.13.1502363459592; Thu, 10 Aug 2017 04:10:59 -0700 (PDT) In-Reply-To: <6dc05b9e-b1fd-cf4c-6d6b-8b6adb9a1df0-NSJBNaQhiPN7tPAFqOLdPg@public.gmane.org> 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:18033 Archived-At: ------=_Part_699_534061156.1502363459062 Content-Type: multipart/alternative; boundary="----=_Part_700_1423975377.1502363459062" ------=_Part_700_1423975377.1502363459062 Content-Type: text/plain; charset="UTF-8" Using a nightly worked. Here is a better minimal working example that shows the effect of the redefined command: --- title: "Minimal Working Example" header-includes: - \let\oldsection\section - \renewcommand{\section}[1]{\clearpage\oldsection{#1}} --- # Heading 1 # Text 1. # Heading 2 # Text 2. The command pandoc -t latex --latex-engine=xelatex --output=mwe2.pdf mwe2.md results in a pdf file with each heading on a new page. Producing latex output shows the header inclusions inserted without alteration - without needing the "backtick" notation John mentioned. Guess I'm using a pandoc nightly until this behaviour migrates into debian/testing :-) Thanks John, Roland and BP for chipping in to help me. P.S. It's been ages since I used Google Groups. If there is any way to mark this post or thread "solved" please let me know and I will. On Thursday, 10 August 2017 03:24:41 UTC+9:30, Roland Hieber wrote: > > On 08.08.2017 15:56, David Nebauer wrote: > > Can't install dev pandoc because the ghc archive downloaded as part of > > the process is corrupt. > > You could try installing one of the nightlies from > https://github.com/pandoc-extras/pandoc-nightly instead. > > - Roland > -- 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/06c61ee7-a420-4787-b90f-dda37007ef07%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_700_1423975377.1502363459062 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Using a nightly worked. Here is a better minimal working e= xample that shows the effect of the redefined command:

<= div class=3D"prettyprint" style=3D"border: 1px solid rgb(187, 187, 187); wo= rd-wrap: break-word; background-color: rgb(250, 250, 250);">
---
title
: = "Minimal Working Example"
header
-includes:
-= \let\oldsection\section
- \re= newcommand= {\section<= /span>}[1]{\clearpage\oldsection{#1}}
---

= # Heading 1 #

Text 1.

# Heading 2 #

Text 2.

The co= mmand

pandoc -t latex --latex-engine=3Dxelatex --o= utput=3Dmwe2.pdf mwe2.md

results in = a pdf file with each heading on a new page. Producing latex output shows th= e header inclusions inserted without alteration - without needing the "= ;backtick" notation John mentioned.

Guess I&#= 39;m using a pandoc nightly until this behaviour migrates into debian/testi= ng :-)

Thanks John, Roland and BP for chipping in = to help me.

P.S. It's been ages since I used G= oogle Groups. If there is any way to mark this post or thread "solved&= quot; please let me know and I will.

On Thursday, 10 August 2017 0= 3:24:41 UTC+9:30, Roland Hieber wrote:
On 08.08.2017 15:56, David Nebauer wrote:
> Can't install dev pandoc because the ghc archive downloaded as= part of
> the process is corrupt.

You could try installing one of the nightlies from
https://gi= thub.com/pandoc-extras/pandoc-nightly instead.

=C2=A0- Roland

--
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/06c61ee7-a420-4787-b90f-dda37007ef07%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_700_1423975377.1502363459062-- ------=_Part_699_534061156.1502363459062--