From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11030 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: How to get a page break (/f) from Markdown -> docx? Date: Fri, 3 Oct 2014 07:27:44 -0700 Message-ID: <20141003142744.GB8111@localhost.hsd1.ca.comcast.net> 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: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412346484 21711 80.91.229.3 (3 Oct 2014 14:28:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2014 14:28:04 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB3HEXKQQKGQECOH32QI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 03 16:27:58 2014 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vc0-f192.google.com ([209.85.220.192]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xa3pt-0006FU-Rb for gtp-pandoc-discuss@m.gmane.org; Fri, 03 Oct 2014 16:27:58 +0200 Original-Received: by mail-vc0-f192.google.com with SMTP id hq11sf233064vcb.9 for ; Fri, 03 Oct 2014 07:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:date:to:subject:message-id:references:mime-version:in-reply-to :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type :content-disposition:content-transfer-encoding; bh=XtG96RRdIdqm0YkOdYKLbSU3bcXNOsLruueDZyRFiPI=; b=tJQ60EuLWMLatT6Z9z090ZUZmf5tPU5BZ721exuQXU541RSsSDmOg8hilJAQBz3QhK gEDyZrYDKFXzHlAgwKnZIDGaBBY4jmRkW57coPTWLOkT8zYOHNbmdHsKH3AVM9Md2qx3 oiyihGaJEEgifOidYC0oHl90REEM+3BwWgkhgcvEof7c/ubRqEAXyrSXA1F5NW8zL/gg NlSRsYwUVj7zWLBEMwza/ZybmukKy19EF4Bax61N2jd5jmC76PfjiSKFxU9TlOPukchs 6tcR95rnOxoNsLJlY4ncApsiSzIPiPlX1Honownx656Pul/3ykk2npehmdJBFu5AYG67 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:message-id:references :mime-version:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition :content-transfer-encoding; bh=XtG96RRdIdqm0YkOdYKLbSU3bcXNOsLruueDZyRFiPI=; b=g7T/BOfmw4xy726AXg3q5dW7cO7hSgIQSTRB8KgwELgmXPiYpYdzRyFxdcrFAPzJGx K+7qwR1ImoTcqDVgnen0sKx5+XQAbxEORKIYov0Yp+OsccxlzYIEgcJ9+1pJ5nYIfT5S xwbSrpjv0gP0fszNh1b1cqJL+L4lsncWSaCn0UTN8H4eUFjNBRYfUh2IwmFVaxOQyJom ePkReUJ0GR0dW5ArSJc5/TQPAxzC1XK3erx4eNwvQgx4i8k2lzSIx3/nEzIRMybeTnfd 3F6nadBssoAJ0ZGSm/IqrJsJVhVMJstnfAFPrexYLJD6 X-Received: by 10.140.109.203 with SMTP id l69mr4274qgf.27.1412346476956; Fri, 03 Oct 2014 07:27:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.30.200 with SMTP id d66ls956897qgd.68.gmail; Fri, 03 Oct 2014 07:27:56 -0700 (PDT) X-Received: by 10.52.167.129 with SMTP id zo1mr5241424vdb.2.1412346476537; Fri, 03 Oct 2014 07:27:56 -0700 (PDT) Original-Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by gmr-mx.google.com with ESMTPS id wa5si1008977pab.2.2014.10.03.07.27.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Oct 2014 07:27:56 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.220.44 as permitted sender) client-ip=209.85.220.44; Original-Received: by mail-pa0-f44.google.com with SMTP id et14so1641237pad.3 for ; Fri, 03 Oct 2014 07:27:56 -0700 (PDT) X-Gm-Message-State: ALoCoQl87cNykHj6k1izOeyTu/szvLJTGju9ogoo+Gf6Jgedw8HgHR4Rev598nyLj1z/wRVW8eCw X-Received: by 10.68.143.4 with SMTP id sa4mr7294813pbb.5.1412346476362; Fri, 03 Oct 2014 07:27:56 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by mx.google.com with ESMTPSA id q1sm4320710pdq.67.2014.10.03.07.27.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Oct 2014 07:27:55 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id E15B8A21C; Fri, 3 Oct 2014 10:32:02 -0400 (EDT) In-Reply-To: <87fvf5ckhv.fsf-4GNroTWusrE@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.220.44 as permitted sender) smtp.mail=jgm-TVLZxgkOlNX2fBVCVOL8/A@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: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:11030 Archived-At: +++ Jesse Rosenthal [Oct 03 14 10:10 ]: >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). It can be done with a filter. Just insert a RawBlock with type "openxml". = So it's just a matter of figuring out a syntax for the page breaks in the = input file -- this could be something as simple as a paragraph containing j= ust a formfeed character -- and using a filter to inject this into the docx= . --=20 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 e= mail 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/20141003142744.GB8111%40localhost.hsd1.ca.comcast.net. For more options, visit https://groups.google.com/d/optout.