From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23389 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: concatenating md have a page-break between in resulting docx? Date: Fri, 6 Sep 2019 11:14:37 +0200 Message-ID: References: <16c406f5-ca1a-c2f2-de16-db846a919570@reagle.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ac46d50591dededa" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="14519"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDIY76M674FRBCOHZDVQKGQEY5BBG6Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 06 11:14:51 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i6AKR-0003ee-9h for gtp-pandoc-discuss@m.gmane.org; Fri, 06 Sep 2019 11:14:51 +0200 Original-Received: by mail-ot1-f59.google.com with SMTP id k70sf2778966otk.6 for ; Fri, 06 Sep 2019 02:14:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567761290; cv=pass; d=google.com; s=arc-20160816; b=sSsTlSFxH+wIOqg+SyAe36iq6sWQDASqJY01XzURdIMdGqnEDG+CCKs/Z4A+Z91E0s 6BblB9b0ZcytEd/KaN0GomZAM4BSJx2QKdtn8Jur+N7jVuJ1UpnZdSFJYzl1P05qXi0t CiwgJVneQYMLCMeLdLlhtwx6lG5fLk4qaewIntEvh+wPDb1v1kN/J2a056WLX0qGYcO3 iNDWdE/8hiNY/YejoCs6G31COGi5wRQcYYQPD5/Y2h3z5yCCIbRwSdQb7VPZFKx7IuV1 kwi+O+dqBLfPzXX0eb36RWGHe8dO4xJPjLhsimVQwA0DS7lmmqlU+KRPRkUczk7Tl4dq e2VA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=t3N0FPYTItEbpJik+4oTL+vxjrttXNP42ETK9ptf/f0=; b=bp+wuHH4GI9akfnDVmVvapFiCPvM4QO6QoNufZsgnVTv+7SDYg0DsoUWBmmL1SSXWd DoRmv6rihdXluVrs85lgcTpd7/ChN1I2TDvZ7iIzdCaH72Zp5br9k5E8mlnyGL+ASWgp nFvCWCNti/Y3qc73jUWYdhot3mki79DvRzCIZMQYkIClriX8seTMjtIUIcqsTSwyS3ni Qh7zAkWQhN+xaqBzdxlCfJfOrJT1k5Kxo/YBYRXdTVFKkpraBYCXVIJhc5K2Z7bUD5xN jfRQqeTZ2NHl1pdOqfjShYCA90gT/gpaEGC3QehbfWWhJkDZ9pqZzxGsbERHiJlHwAsv hZLg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UMl1vD/5"; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=t3N0FPYTItEbpJik+4oTL+vxjrttXNP42ETK9ptf/f0=; b=mF5zvGJDHdF3wxyjaZiArZqjIH9NPOYZ/S079aKi6UpSAOAQGqCm0WjC/yH8ZoP21V mNi/8kTkzCL6hfIqc5ldE12tjWa9mpyaMC3RirQMvXWwN9aRgEvEC0i5D+TTEJGVu1Xp wGEQzqJYHEDQkWIHShGnffEbDTHpfK0QpqxddK8IKKpZ2awNYKpb7eqtP1ip+ho3DVAH UDqAd6rW8WxEY9yogqj4SwgSgW+p1ssANBF93ZkHIemq1uPvK37wcZJKgxEM46nNKQ5C 10by+ksaXXiqDp3WvrkoeR36hiDBjCMc29bXg9HNu7MkTrhn3o0HVp1J/Clyj/izNjpB H6EA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=t3N0FPYTItEbpJik+4oTL+vxjrttXNP42ETK9ptf/f0=; b=Z7Uk9xUoe0dWgjT0fb8X7uTzt3GJHMdbORtpSaUQr8TbUs2N9R7NKRrJEiv72Yjegl drFM63XQaZncvHv+PlCV5XuL7e7JD2W/SegaMTrQUoaEYFIeDoq0HmvCUzqe25ucpdMp eF9riwueh4lxo2t6n59NoM5UC1z4viG9+KXIVlz1nPV1phb3UUKy2vXSWrQ+/PKtNdga cuHdmjfgmB4syqIri4xzV4nsxE+pkeR4tewEB5j33P1FGfsEdYIy7FMEtpbSLIiHDnhx r6iiUSKL8toydjuB1q6bHIt5ZSTTOhyxuyu1B1j36GKadrHOnU2H/vqXCPRohsBdXXps +SkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=t3N0FPYTItEbpJik+4oTL+vxjrttXNP42ETK9ptf/f0=; b=MTLsJbQSYlvRG0NgFKX8VMrsNQyRLywgOxcvI+UQb6PUqoH+zJUgOeLTcvT++drxDc MZDzfEPUEZX/YDVQVF4CjdFbV4sp9gpvKfSuUjQ/pR5rJCe2Bsd4OUw21X3FkCN5MMi/ FLWrlOnWCDvHtsyPCjZZaQcBfWuSMbZuV0IZTIKMlFv6JKdQJZENCrs/WKc3uv9x79Ct wthIEJR+FpKjGIFWPheDt+HJi/qxWLMHP7Rp5wyjODIfTalljBJNGPFXGp/mzK+RlJZM ChpiF64jwZgoOwEzelRgOTHat7VW341N3g0s2KBZ92QISkTnkc+AIimKr75lAtvvRCnx l9xg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXxUL0O9YVIdKxWJXCJRKYPyGztAPuD9M60ZPZdA83EzC8qtC20 TDg41jkEUQE04dQJzY0xCIE= X-Google-Smtp-Source: APXvYqz5XQP4QJRKZFsCd4ptjXQchDsSHt+nPKLvt39OEB7auFfUfRLKzvX6WwKEJRBnWXP0PXvy+g== X-Received: by 2002:a9d:2af:: with SMTP id 44mr6587271otl.130.1567761289898; Fri, 06 Sep 2019 02:14:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:6046:: with SMTP id u67ls895573oib.1.gmail; Fri, 06 Sep 2019 02:14:49 -0700 (PDT) X-Received: by 2002:aca:101a:: with SMTP id 26mr6194620oiq.137.1567761289172; Fri, 06 Sep 2019 02:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567761289; cv=none; d=google.com; s=arc-20160816; b=jrAp34AfW5ED+OrBJz4zIk+SRDpYeucGr4PzZt8W9XD0fuvXTgHpRcZOwfX1CTuAB2 +iwz9n1vR+RgS1dA0QbU/IRGVwvuPxXX8rgAEogxtdyu3bQCeIeYq92BSGEwBNC6PXKM 1D3eDfGnwBk0JkO4TEdTVdXdwp7J0q2JjvE8dhMZ2ftuMYomPhZ0FgjlkA0J+F6ReRp9 KSWpRsOKuxDI60PcJoJKzXM7FkQ+LYIm6Kg84En8kYDHclC/Xgl/KkL9Lg5NdzGu2eEb C79U3/+c0xvT9jLpGR9hHRTz/a/E2MT3NWnwoy3iVQzjssuD7l6k2njRWQFf7rTBtSL0 QmEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QXwNJ1HPeX0t7pnoL6gyowMabiuhu2ZEgLIAC/+QF3U=; b=eESbSmxK+GXXDt+UHvEij6kELqorWyCfHnY3x2V1YGXF3IE82CCZP/0IM3VpCXgA0n dDXkCTaI0B5qm7/qhAYzMY9JbA6v7X9EzDACsw1H62HOMRW7FFEaqidZA/cQQ8ey6hGC iqwqjJSObksKeRNRcsWn6hjg7DY4rlaHr6Iq1DnIoWXVfBwtNhg9i0yhmbY2sw+MfRGG ByYT92gAO7skE5SZX68JwkIOg21OQjSbxMmqjKELJijdYtw7lY60fzVJiqJTyVS1KOJZ AEUkVAvIkDETYQMN2zvHIXCzxoJ3xtr+TWLPKHaDrhUJsiuV6OmXQpRVaw0A7Z7BK9KU +Y8w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UMl1vD/5"; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com. [2607:f8b0:4864:20::42f]) by gmr-mx.google.com with ESMTPS id w131si243971oif.2.2019.09.06.02.14.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Sep 2019 02:14:49 -0700 (PDT) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) client-ip=2607:f8b0:4864:20::42f; Original-Received: by mail-pf1-x42f.google.com with SMTP id d15so3971742pfo.10 for ; Fri, 06 Sep 2019 02:14:49 -0700 (PDT) X-Received: by 2002:a17:90a:b013:: with SMTP id x19mr8915282pjq.58.1567761288151; Fri, 06 Sep 2019 02:14:48 -0700 (PDT) In-Reply-To: <16c406f5-ca1a-c2f2-de16-db846a919570-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UMl1vD/5"; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:23389 Archived-At: --000000000000ac46d50591dededa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That would work except for the fact that a JSON filter *could* be written in Lua and there probably are such filters out there. I thought there used to be an -L option but I can't find it anymore so perhaps -L can be repurposed as a synonym of --lua-filter. (Which reminds me I ought to update my default-options wrapper script to reflect the current set of options!) Den tors 5 sep. 2019 22:46Joseph Reagle skrev: > > On 9/5/19 3:55 PM, BPJ wrote: > > https://github.com/pandoc/lua-filters/tree/master/pagebreak > > Thank you, that requires me to add `\newpage` to my files (rather than as > an option on input file processing) but that's easy enough. And when I > don't use the filter, it looks like the latex command is ignored. > > Two asides: > > 1. For lua filters, why not use the same `-F`/`--filters` option? > > I know lua is internal and the other is json-based, but couldn't pandoc > figure it out? > > 2. When I accidentally used `--filter`, I get a confusing message: > > ``` > =E2=95=B0=E2=94=80=E2=9E=A4 pandoc --filter=3Dpagebreak.lua --toc -i 1-c= hap.md 2-chap.md -s -o > test.docx > Error running filter /Users/reagle/.pandoc/filters/pagebreak.lua: > Could not find executable /Users/reagle/.pandoc/filters/pagebreak.lua > ``` > > It is there, it'd be nicer if it said "if a lua file, use --lua-filter." > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/16c406f5-ca1a-c2f2-de16-= db846a919570%40reagle.org > . > --=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 view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CAFC_yuTGVSn9VaG4h3-NgngzKxOW0maTvcpnxakUx7oTYYEjWw%40mail.g= mail.com. --000000000000ac46d50591dededa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That would work except for the fact that a JSON filter *c= ould* be written in Lua and there probably are such filters out there. I th= ought there used to be an -L option but I can't find it anymore so perh= aps -L can be repurposed as a synonym of --lua-filter. (Which reminds me I = ought to update my default-options wrapper script to reflect the current se= t of options!)

Den tors 5 sep. 2019 22:46Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> skrev:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
On 9/5/19 3:55 PM, BPJ wrote:
> https://github.com/pandoc= /lua-filters/tree/master/pagebreak

Thank you, that requires me to add `\newpage` to my files (rather than as a= n option on input file processing) but that's easy enough. And when I d= on't use the filter, it looks like the latex command is ignored.

Two asides:

1. For lua filters, why not use the same `-F`/`--filters` option?

I know lua is internal and the other is json-based, but couldn't pandoc= figure it out?

2. When I accidentally used `--filter`, I get a confusing message:

```
=E2=95=B0=E2=94=80=E2=9E=A4=C2=A0 pandoc --filter=3Dpagebreak.lua --toc -i = 1-chap.md 2-chap.md -s -o test.docx
Error running filter /Users/reagle/.pandoc/filters/pagebreak.lua:
Could not find executable /Users/reagle/.pandoc/filters/pagebreak.lua
```

It is there, it'd be nicer if it said "if a lua file, use --lua-fi= lter."

--
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 pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com= /d/msgid/pandoc-discuss/16c406f5-ca1a-c2f2-de16-db846a919570%40reagle.org.

--
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 view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CAFC_yuTGVSn9VaG4h3-NgngzKxOW0maTvcpnxakU= x7oTYYEjWw%40mail.gmail.com.
--000000000000ac46d50591dededa--