From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22766 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: docx writer: using styles from reference document Date: Mon, 20 May 2019 09:40:35 -0700 Message-ID: References: <0c37bc1d-ea10-4945-98a8-b169997ac437@googlegroups.com> <87v9ynr3wc.fsf@jhu.edu> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="255974"; mail-complaints-to="usenet@blaine.gmane.org" Cc: pandoc-discuss To: Alan , Jesse Rosenthal Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBD5RRPTQKGQECIXKJ4Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 20 18:40:52 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hSlLG-0014PD-4w for gtp-pandoc-discuss@m.gmane.org; Mon, 20 May 2019 18:40:50 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id w110sf1125720otb.10 for ; Mon, 20 May 2019 09:40:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1558370449; cv=pass; d=google.com; s=arc-20160816; b=GGDQAIM+02YqO8Lb33c0+bhLgZHTneeAvTlhUUGNxTmODyFKzHb+I6Tzu2anegWkpz /Uwo0GmEt8UTPxKpRqlGYfxKnVJ4W7fA+GyjIRZPatK3i1rd0SZGXs3Qr9ye0Wrcp65Q mmuFdGQ0726clp2tSiypKDWN24Qz/WHHa3Bqs/7ccSD5NnJODXaS4lhniT8S6i6MwdD2 p7xVHYSs1nv3V97Grs0PDw7hDzv0Kg53m860AUWxlSWxVU+qJ9JpTQbwjAwI2uTWCUyO eNPdFBz6WKpaupt4a/dGd+vatz4dCJBFTIk2Jm7DycIYBjxFpqNb7TBu88r4YG7tdQ1y q2vw== 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:mime-version:message-id :date:references:in-reply-to:subject:cc:to:from:sender :dkim-signature; bh=yoUa1dgUO3pfEC2XpgasYA+aTkgPVL6iwHtBkZ9Jo6w=; b=sPbjoqrYr0T1+cXBOpMtc0hyFb9j17Jc/7mPSKUDxExmAAAi63/YM2VvZPG2Oy2aEl iYB3hsvbuOP1cmWo//marSSplBANYBFL17oCsNBqjdqvWVIVpZJGCsRXIL8WC2YrQ4Vg V/+eDXFwPxow0Y0X+O6T0Gm3QnSwXy9szEe1GUC2piNlKt9N0meGiSvcfvka3RRK734E Dh4408wXpe0IlhlAZvwziXwKVTzWXn0DyUYI9S92O8js2T6FeWViyKw+iKtkkPAlP9w8 lFxlRNkeIJ+pQQqsRH7K+jSmCJZ8fnDXEEj9E0iw6nVAzoKgKNFcUQFwBUlUkkGM7GYv 1G8A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FIPXXwyq; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version: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=yoUa1dgUO3pfEC2XpgasYA+aTkgPVL6iwHtBkZ9Jo6w=; b=RdKjovTvGytNKWAa+kbvXj2DTPDXtNym+3GfnJIy6KvmMlJotLPZmBdoo7XCLsGUnK kYzmdY62xIf+K9SgqAKiJOHvvetGJiOHXTeidUgAi1h06T7qbpHNcaFnG1URwzf7AJWc Cdhy/w17FgNdpuzLVSlvSlD5wCTb2TfeCcAf2av1e/DKKun7pEZY6WKeWbkditWTjISS Mjp6GeWedHuesOvokvQHTsXzcIqcIepiHJysmSHkkSQdfUCPbEB9e5uaOvzu9zRAB7P1 zj8+h4z6VLz8WTP7MAzfaNs5ahkQ+G8bti212Kg7XTA8M97Nbh9+CpTTQi3orzxa1SmU Jzow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:in-reply-to:references :date:message-id:mime-version: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=yoUa1dgUO3pfEC2XpgasYA+aTkgPVL6iwHtBkZ9Jo6w=; b=gEfeW2ktdolv1tKo+l3dAPjdhDNzbtwyYxf6lfg6iMuPAYA7rB7Plst8dMBqRZ2SFF xqKr0iLhxH+jho/DP61CYTserH61uSIaIYwQUXWXKoW6F2x52kWWBLuwUDHMsmpzO82a bRnJEK3QDKdlBbRehnCfLWPhe07Ow2RcyAiDZDBSrWayvc4miVc9LguvEOTcwEkzR9hj BZ0LqAimVFFiT681Fw65WyMtmr5eb1ArhSQVCPfYZe3ani7QRnhUpZ56FHlVxbMdRl4A yXBfpFJNpViVtuJlC+Uk2eQltDtPnvTSGNVO78Sfg9gKw6zogtbzZ3m99FKRxeP4jZsc 2NUQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAU9jNHZ47g5OJfBDxMPlDf8IX1FySUJwx+qHt5i0a4/+yBeETGa c3Kr88XQ2bBgeuvvzUJ7Scg= X-Google-Smtp-Source: APXvYqwPt1cN67AMAJAJsJZIlZVyr74Hmi8W6g9E0JRD/ChvR0AhXVADSdKw4hMcll9BkRP6WxvgeA== X-Received: by 2002:a9d:6b98:: with SMTP id b24mr15544330otq.189.1558370448948; Mon, 20 May 2019 09:40:48 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:63da:: with SMTP id e26ls1661272otl.14.gmail; Mon, 20 May 2019 09:40:47 -0700 (PDT) X-Received: by 2002:a9d:eb7:: with SMTP id 52mr45163934otj.185.1558370447721; Mon, 20 May 2019 09:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558370447; cv=none; d=google.com; s=arc-20160816; b=hpjN8SCHFr8XlvWYloZSHdbbWvCRyni22TMiqzctWg0+aP9bvmjL2sUzve2feekHS3 nvPQRakfQvnlckjetgd+6raGtun0wXiKqsJmQXpktHKI39lXlx3cTO1b8JHC46i71lio 5QWhCQ7dtPSFYjKJhSNZUFv21znMVQNHnLb+Wj65Ya7knFB59Np7zYOaLRK6zAvouqAP 0jES3NaYy2UVIM2qj8Sv/d+r84kLavCPvCDWnXZl1nBnhA/nBJu0e7vk9b5L75X9EaCs ny8h/GLlIlxLfMvoTsQQjSDiNnvxPPHPWYMqDrdX74TvSAEgkPQFLLmhHoaRI19iJh3y 2m+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=RtCaOPHBLAKDjAdo8lZRtXDO654jXo/TcqZCloLUMSo=; b=jFu33a9uC36bPIZcUuXrV7O0PH5/qT/0t9SYab5nuCuF08I0HPrp4JGcvWRxIelTHQ g0NXw499YD5fV9ddR8sl+N6NAMzW6YNp9ca17x/e8tPlPu9tT2dZ/d7Sg0MyDvfkuHfD TKDPVfqd6WBV0Xt7HcQVXjfUNzIRk6P2UWz+JWuLM4OpA29dN9CUpOQdEsq+B8IgLNRe /V5um9mwM7lpv8oWz6UMxPmGLzCCTox48W/0N6o7huCpAixfbItVRBCLFbA2tL3K5h9P IecUImlls/wls+jxc4oaAVrebRwbZrlFjnnMqxRKohNVAqSSbXI5YBAaxDrxoier2vZI ucnw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FIPXXwyq; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com. [2607:f8b0:4864:20::430]) by gmr-mx.google.com with ESMTPS id k22si1399764otp.1.2019.05.20.09.40.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 09:40:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) client-ip=2607:f8b0:4864:20::430; Original-Received: by mail-pf1-x430.google.com with SMTP id q17so7483350pfq.8 for ; Mon, 20 May 2019 09:40:47 -0700 (PDT) X-Received: by 2002:a63:8bc9:: with SMTP id j192mr75897627pge.212.1558370447382; Mon, 20 May 2019 09:40:47 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id s80sm50888349pfs.117.2019.05.20.09.40.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 May 2019 09:40:46 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id BE75AA187; Mon, 20 May 2019 12:40:35 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FIPXXwyq; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=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: , Xref: news.gmane.org gmane.text.pandoc:22766 Archived-At: Alan writes: > 2. Hard breaks remain a problem though. I can work around this on the cover > page with some spacing, but that's not feasible for the rest of a typical > document. > Question: is the non-support hard breaks in Pandoc an intentional position, > or is this just a gap that the community would be interested in filling if > someone cared enough to implement it? What do you mean by non support of hard breaks? We support hard line breaks, but not hard page breaks. You should be able to insert page breaks using a lua filter, though. (You'd need to figure out exactly what openxml code to insert as raw openxml.) For some of the relevant discussion, see https://github.com/jgm/pandoc/pull/805 https://github.com/jgm/pandoc/pull/3230 https://github.com/jgm/pandoc/issues/1934 It's not so much about putting in the time to implement as making the decisions about how to do so. > 3. Page numbers. Can I use the lua filter to insert a page number footer in > the generated docx? You can put a footer in the reference.docx.