From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11031 Path: news.gmane.org!not-for-mail From: Ken Kleinman Newsgroups: gmane.text.pandoc Subject: Re: How to get a page break (/f) from Markdown -> docx? Date: Fri, 3 Oct 2014 07:28:42 -0700 (PDT) Message-ID: <404e04a7-e51c-4afe-ab5a-826a2ccfec86@googlegroups.com> References: <65081506-a54b-4aff-96a0-d8e1cb6accc2@googlegroups.com> <87fvf5ckhv.fsf@jhu.edu> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_427_83551019.1412346522973" X-Trace: ger.gmane.org 1412346539 22253 80.91.229.3 (3 Oct 2014 14:28:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2014 14:28:59 +0000 (UTC) Cc: ken.kleinman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBD4PNU4QSMGRBG7FXKQQKGQEXLKGBGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 03 16:28:50 2014 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vc0-f184.google.com ([209.85.220.184]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xa3qe-0006e1-GZ for gtp-pandoc-discuss@m.gmane.org; Fri, 03 Oct 2014 16:28:44 +0200 Original-Received: by mail-vc0-f184.google.com with SMTP id ij19sf219281vcb.1 for ; Fri, 03 Oct 2014 07:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:cc: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:sender:list-subscribe :list-unsubscribe:content-type; bh=GHNl1uzdtTwNUAI21kBCvPDeoAT/XcS+J4YnJUhW0nY=; b=W5vqCZ+BNKVq0JUdi/LgXTXgGx4DXEHDu3jfkpkz+Cl1OyOHUEG/3eHA5AJMR+PPdX 7EIx7Txqnt1x+cZlrCGOvxhf0nNo2JijKMOOx5GPZhay9WrJLHOeyLr3fzyT2aBWM1Cr BYmcO71V60ZExK220ERez4rmiLGKWQ/nPa2wuscU476lrvjjpmOc0ZR6HRGvrzhKJnVf mB4CWFZWzFMPDIrUqvJWtRyA4UQ1IsZIMC+ErqLdT56qr9hkE2djlVHLRiBuwzAdiDuj 3oMn1T3DtEPat9ObTgElLfHcC+8xKFzsumEm1mfur01uvnDoUU3Z1fYVILaN30IXESM/ Kuiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc: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:sender:list-subscribe :list-unsubscribe:content-type; bh=GHNl1uzdtTwNUAI21kBCvPDeoAT/XcS+J4YnJUhW0nY=; b=HQyWrGoW3szmYBSDrrlR8U+yOq830Vzpi8Q0VNv2167qwAuZX8HNNxB0w3D/aAihOa h0Apa7zCnQ6g4t64iD7vJTmSOw6qUThJuNNgH7pimbgJSVD0oMXrJ93Vz77ANdDWe9Cb uoEuJjMSTKpE7GzO3ienXRudIiuJKXwnDss4Yqa4YyOnrhB2eLLiLblxCUdqK2KA+HI6 nyAasUzSFcoRDFJC9hCLDCorrIBzhVxjhkF2kPxuaTMeTAVQ+xYb/J47G67LYp6obInL 2vMmks9yGWVDBQXeP3dz1IK7E8u0zu3I+xnoZcBBHX5bZytgSWMonboHFQMILsa1jYh+ TpYQ== X-Received: by 10.140.96.165 with SMTP id k34mr3789qge.29.1412346523732; Fri, 03 Oct 2014 07:28:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.20.141 with SMTP id 13ls1282665qgj.58.gmail; Fri, 03 Oct 2014 07:28:43 -0700 (PDT) X-Received: by 10.140.41.112 with SMTP id y103mr3832qgy.30.1412346523371; Fri, 03 Oct 2014 07:28:43 -0700 (PDT) In-Reply-To: X-Original-Sender: ken.kleinman-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:11031 Archived-At: ------=_Part_427_83551019.1412346522973 Content-Type: text/plain; charset=UTF-8 I suppose the dumb obvious workaround would be to insert some text like "PAGEBREAK" and then do a replace all in Word. Duh. On Friday, October 3, 2014 10:21:08 AM UTC-4, Ken Kleinman wrote: > > I had somewhat ignorantly contacted Jon MacFarlane separately to ask this > question, previously, and he replied with the following: > > "It should be possible to achieve what you want to achieve using > pandoc filters, with a bit of coding. The filters would insert > a bit of openxml code that produces a page break. I don't have > time to figure out how to do this right now, but it should be > possible." > > I gather you've provided the necessary XML code, Jesse. Thanks. Would > the idea of filters be a way in to making this work? > > Separate files would also be a possibility, thanks. It would be messier > coding in R than I'd hoped to do, and some administrative assistant will > have to open. print, close, each of hundreds of files, but I do think it's > better than nothing. > > > > On Friday, October 3, 2014 10:08:14 AM UTC-4, Jesse Rosenthal wrote: >> >> Ken Kleinman writes: >> >> > Hello, folks-- >> > >> > Can anyone help me figure out how to insert a page break into a .docx, >> > using a file written in Markdown? >> >> Well, the pandoc native format doesn't have pagebreaks (doesn't make >> sense in a lot of its output formats, particularly html). So I don't >> imagine it's possible. For what it's worth, the docx pagebreak xml is: >> >> ~~~ >> >> >> >> >> >> ~~~ >> >> But I don't know what input we would want to have produce this output, >> and we don't currently have a way to inject raw xml into a docx (nor do >> I think we should). >> >> For your purposes, probably producing different files for your different >> recipients would be the way to go. >> >> Best, >> Jesse >> > -- 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/404e04a7-e51c-4afe-ab5a-826a2ccfec86%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_427_83551019.1412346522973 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I suppose the dumb obvious workaround would be to insert s= ome text like "PAGEBREAK" and then do a replace all in Word.  Duh.
=
On Friday, October 3, 2014 10:21:08 AM UTC-4, Ken Kleinman wrote:
I had somewhat igno= rantly contacted Jon MacFarlane separately to ask this question, previously= , and he replied with the following:

"It should be possib= le to achieve what you want to achieve using
pandoc filters, with a bit o= f coding.  The filters would insert
a bit of openxml code that produ= ces a page break.  I don't have
time to figure out how to do this ri= ght now, but it should be
possible."

I gather you've provided = the necessary XML code, Jesse.  Thanks.  Would the idea of filter= s be a way in to making this work?

Separate files would also be a possibility, thanks.  It wo= uld be messier coding in R than I'd hoped to do, and some administrative as= sistant will have to open. print, close, each of hundreds of files, but I d= o think it's better than nothing.



O= n Friday, October 3, 2014 10:08:14 AM UTC-4, Jesse Rosenthal wrote:Ken Kleinman <ken.kl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= > writes:

> Hello, folks--
>
> Can anyone help me figure out how to insert a page break into a .d= ocx,=20
> using a file written in Markdown?

Well, the pandoc native format doesn't have pagebreaks (doesn't make
sense in a lot of its output formats, particularly html). So I don't
imagine it's possible. For what it's worth, the docx pagebreak xml is:

~~~
<w:p>
  <w:r>
    <w:br w:type=3D"page"/>
  </w:r>
</w:p>
~~~

But I don't know what input we would want to have produce this output,
and we don't currently have a way to inject raw xml into a docx (nor do
I think we should).

For your purposes, probably producing different files for your differen= t
recipients would be the way to go.

Best,
Jesse

--
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/404e04a7-e51c-4afe-ab5a-826a2ccfec86%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_427_83551019.1412346522973--