From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11029 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:21:08 -0700 (PDT) Message-ID: 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_12_1451855525.1412346068559" X-Trace: ger.gmane.org 1412346075 15961 80.91.229.3 (3 Oct 2014 14:21:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2014 14:21:15 +0000 (UTC) Cc: ken.kleinman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBD4PNU4QSMGRBVHBXKQQKGQEX6EG3XY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 03 16:21:10 2014 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yk0-f185.google.com ([209.85.160.185]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xa3jK-0003av-0s for gtp-pandoc-discuss@m.gmane.org; Fri, 03 Oct 2014 16:21:10 +0200 Original-Received: by mail-yk0-f185.google.com with SMTP id 79sf218687ykr.2 for ; Fri, 03 Oct 2014 07:21:09 -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=Y8oPypDycw2DcWiqOrhTk36wiBmvXEU/2Tc2h3OGIgo=; b=fz0sKV+4C6dCUalEKnu8k5FJuwsJfX0mau+nGeBiVfzCjXHDNd73vgwL1gtqeF8l1n ZvG2TDyHHt0d7MFWBgvYqr0/MxIrFhIWL+PTYuvnnc5U/GHfKddvKHfWmHzMJ49mXFd9 u3ykFZrxoLlDV9tA5CSGzMhrkTyHvfiHnYayravIuhpnbIoLPdi9w2PoCwL2pNnUenVB mgawBssMrOxxm5qKP14AIZWB6Cl4UhIpmJv0p84M37MTbMboBdKAey6dnwyipx1pzYQL JP/rClo+RL3oJ0iL23MPlu8I8YKlXcK0JOhpUrhiygP1Zm6AfhorZK8yIQf/hx1ggB/b 5BtA== 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=Y8oPypDycw2DcWiqOrhTk36wiBmvXEU/2Tc2h3OGIgo=; b=vP919gj1q5ByCq/q+iDg5UskDN+BuIBCiS6bxYPTAwYfMu0dlUHcPqRUL2wNyKnzKK qtfdt4CEH78zl/XkrbMZzVxpNbRkVPfeG9qKUHhOSBczxKD9PnH7G5fGiX9pk+LG8xOg MNh7OaUNstv4SLUg+2ulkkCdWJ5+Qd9OgA8yyTNZZin26+F0wgcngPykOpzbQgIkVBOI ae4dZRRstoRrUMNgB1HmcVr7ijeHQq7Qb5aBdxxDSeMvnfaSVovsGqXja2R4oAFpnwdK 8Mp9NEgJilrXEUkEQqwrF+BowY9Y3gY7RcR8midL9qAsK/NfkN4O2Ntiqj/IKgXSAX/8 uxhQ== X-Received: by 10.140.20.39 with SMTP id 36mr19021qgi.15.1412346069214; Fri, 03 Oct 2014 07:21:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.34.168 with SMTP id l37ls1257037qgl.46.gmail; Fri, 03 Oct 2014 07:21:08 -0700 (PDT) X-Received: by 10.140.90.20 with SMTP id w20mr5132qgd.24.1412346068793; Fri, 03 Oct 2014 07:21:08 -0700 (PDT) In-Reply-To: <87fvf5ckhv.fsf-4GNroTWusrE@public.gmane.org> 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:11029 Archived-At: ------=_Part_12_1451855525.1412346068559 Content-Type: text/plain; charset=UTF-8 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/d4db22fa-7e71-4ae5-aa46-ff75a2fe3a62%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_12_1451855525.1412346068559 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I had somewhat ignorantly contacted Jon MacFarlane separat= ely to ask this question, previously, and he replied with the following:
"It should be possible to achieve what you want to ach= ieve using
pandoc filters, with a bit of coding.  The filt= ers would insert
a bit of openxml code that produces a page bre= ak.  I don't have
time to figure out how to do this right = now, but it should be
possible."

<= /span>
I gather you'v= e provided the necessary XML code, Jesse.  Thanks.  Would the ide= a 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 admi= nistrative assistant will have to open. print, close, each of hundreds of f= iles, but I do think it's better than nothing.

<= div>

On Friday, October 3, 2014 10:08:14 AM UTC-4, Jesse Rosenthal w= rote:
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/d4db22fa-7e71-4ae5-aa46-ff75a2fe3a62%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_12_1451855525.1412346068559--