From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23291 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: K4zuki Newsgroups: gmane.text.pandoc Subject: Re: How to improve .docx output? Date: Thu, 22 Aug 2019 06:04:46 -0700 (PDT) Message-ID: <32bb05e7-9d7b-47d8-8729-dd7b42281839@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_341_207971643.1566479086934" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="48912"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCY7J2HL3ALBB4FF7LVAKGQEGYPTNEI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 22 15:04:50 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i0mlm-000CPT-Gp for gtp-pandoc-discuss@m.gmane.org; Thu, 22 Aug 2019 15:04:50 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id o21sf3076340otj.7 for ; Thu, 22 Aug 2019 06:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to: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:list-subscribe :list-unsubscribe; bh=BfHI4TB6yEgp0paFubPjXQ8a1EiU5/3pWXtX6QaVX78=; b=L7bVVgke1zIQuj8jpZRKTrHWl7MkU+aMPgXqwAgvs2GPGN46gtRC29M7CWgpu0/7To p3y8bNFfrsM7Lqha+koeRqCy3ZSozkSX5E674KiZYP/uCSJqTh9JcrANEjkgVoJaDMTW wdIDlwQkp0ZDQnoBancvV6WdNP0lnE0tKpHxxf6hSrg/4URwuUml/eM69eOG4ONFfrZ/ V8wm/6lFZUGn3ccZBkSjIlBQjkWPBk4tO0D4MzT6coh/BeSaG2/NBG1pHdtlza9eS/Yp maZZUjHwuyRNcmUVYZPlJ1XVNnijRYW4PgiCsunibMm8nVqCpmzZVBMY9mPbdaYzfbu2 RKiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to: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:list-subscribe:list-unsubscribe; bh=BfHI4TB6yEgp0paFubPjXQ8a1EiU5/3pWXtX6QaVX78=; b=AKiegz0StfaS6tk/pucyH/XOTkC1w97HIzeIFpDgPNQnYKZO8pEqzJfJ55Gthq6odF Dg1SEArcJ2l0u+ntSBeqzBuqYH6baI5g8JaGnQD8vTVliXX4Gi8JEDbl+Hb9MHN+dyOF kpyIVrzo1UUitLJ/c8gq5DTdmlJNW2+q68Fy4wdbHVywpUn1kVWXbXrjvqDGmSEBhZtE H+LfAhDEcQz2nO+tTuCQJXlOYlfbrkuZX50SId3ZHVZeLLHQyDYvS1EhHuDYcuSbyxHP sop9a4tbe9HtIzB9rbWTHOiSi+kCkX5ftVfLyznH/+PTyMWGPrLk+cIjbqMkj/ti+1vK /HdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=BfHI4TB6yEgp0paFubPjXQ8a1EiU5/3pWXtX6QaVX78=; b=V0gNDscakNCaFDNfBrgrn7kQjk7qgE1y7XoSDvgaig2ixrTkbO2d6qq5cV22GnuZu8 tolbGvTGTXUr7vDAhggeSeeO85yHgVTf+pQDl1RMSBjKpRWfXhQwIKGNg49/deoHiAPI RHO6H/Y5mBiwsQv+sGrntQazfjHd5D3+YaRO8Cz9ciExd3REChklJjLxEDQYng4VLNUi V/uXAXZeyNUD9TCd/nP37B1i9bSt9GHu4yIOkGaYbex5HgeHPa7l+kkTnt0PxpIweCKK bNJGH+7adDFl4K0XVLLAsAW3mbwY3v171aEAmTWyZ8oLjeQKHtS0K3SS544dTyezsykv MZDg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUswsNtL8uU0Iw6IXXm6bdm67ji6wTZSHveAEUrd7EZd3LXiqaF 6WeXa/jDs3uA5OCWOEtyRo8= X-Google-Smtp-Source: APXvYqx4eZcpd5B2NwHCwjbAqP/JCTrL5ZgzyvxoIbRHiXpXyFT/nAalTuZyRC9xqjAi70vDnd8wBg== X-Received: by 2002:a05:6830:1411:: with SMTP id v17mr5375999otp.108.1566479089329; Thu, 22 Aug 2019 06:04:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:6395:: with SMTP id w21ls184170otk.10.gmail; Thu, 22 Aug 2019 06:04:47 -0700 (PDT) X-Received: by 2002:a05:6830:2250:: with SMTP id t16mr21297082otd.156.1566479087433; Thu, 22 Aug 2019 06:04:47 -0700 (PDT) In-Reply-To: X-Original-Sender: k.yamamoto.08136891-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:23291 Archived-At: ------=_Part_341_207971643.1566479086934 Content-Type: multipart/alternative; boundary="----=_Part_342_583608508.1566479086934" ------=_Part_342_583608508.1566479086934 Content-Type: text/plain; charset="UTF-8" Hello, I have also been working for docx output. [...] - With a custom-reference.docx modified to number section headings, `# References {-}` came out numbered, too; i.e., `{-}` was ignored. (A proper fix would probably require pandoc to attach a docx style like "Heading (unnumbered) 1" to such headings.) [...] This Lua filter might help you: https://github.com/pandocker/pandocker-lua-filters/blob/master/lua/docx-unnumberedheadings.lua Your guess is correct; you have to prepare unnumbered custom heading styles(up to 4th level) in your reference.docx, also need to point them in YAML frontmatter (or dedicated extra YAML file). -- 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/32bb05e7-9d7b-47d8-8729-dd7b42281839%40googlegroups.com. ------=_Part_342_583608508.1566479086934 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I have also been working for doc= x output.

[...]
-=C2=A0 =C2=A0With a custo= m-reference.docx modified to number section headings,=C2=A0
=C2= =A0 =C2=A0 `# References {-}` came out numbered, too; i.e., `{-}` was ignor= ed.=C2=A0
=C2=A0 =C2=A0 (A proper fix would probably require pand= oc to attach a docx style=C2=A0
=C2=A0 =C2=A0 like "Heading = (unnumbered) 1" to such headings.)=C2=A0
[...]
This Lua filter might help you:

Your guess = is correct; you have to prepare unnumbered custom heading styles(up to 4th = level) in your reference.docx,=C2=A0
also need to point them in Y= AML frontmatter (or dedicated extra YAML file).

<= /div>

--
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/32bb05e7-9d7b-47d8-8729-dd7b42281839%40googlegroups.co= m.
------=_Part_342_583608508.1566479086934-- ------=_Part_341_207971643.1566479086934--