From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23290 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "'Nick Bart' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: How to improve .docx output? Date: Thu, 22 Aug 2019 12:24:26 +0000 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="147772"; mail-complaints-to="usenet@blaine.gmane.org" To: "pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" Original-X-From: pandoc-discuss+bncBDR4BGVI44MRBBMT7LVAKGQEGCJQRIY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 22 14:24:38 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ed1-f60.google.com ([209.85.208.60]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i0m8s-000cMD-5F for gtp-pandoc-discuss@m.gmane.org; Thu, 22 Aug 2019 14:24:38 +0200 Original-Received: by mail-ed1-f60.google.com with SMTP id l15sf3280148edw.15 for ; Thu, 22 Aug 2019 05:24:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566476677; cv=pass; d=google.com; s=arc-20160816; b=V7rsx0DyDjjRuoOHY1NM5mMvvgfH6QpiNr9+sOKpKaun9bZ5PuPnhVBxNU20GBm2eU BPyUDZCOyHSMvU/8qk6IIIjcT/GBBtVnMPftS+qlWoVBraLmxAovRYGXPBb1Ijt9N9au WqEug9g1DB7NwKIRSGVXlOf2fcnajnXaj0npu/qeXZPQXlMuyuMTOULgCE2FnljVwUHv FPjW0MBO0Z+Q8+g2yatE/hfmiParY+H2m0LeNu0csVMyAJsDnrWC73YIC5jzbnBKqAyJ 4TMhynjqifXQMzLnzCUUrVF/zocRROBOqn5y3Okq3NCt/B9yGuxj8It1c7+52a90SMl2 q9sQ== 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:content-transfer-encoding :mime-version:feedback-id:message-id:subject:reply-to:from:to:date :dkim-signature; bh=cpuYV/vAONc/PbygSUEQ525+9t/iJGVoS8tLXAkVZDo=; b=H4/GkSvSQ3DfOp2sgD+Q++TC4rCZ3ndOX7rJYYXTw5PzoVYUuQvTWmmfbVxtaOd5J4 AkenWd4/Bzf5pQP8OK0Em2vLdifpDi0olYtfXmT2lUx6ebFIhFKa9+akAkO5qn7lM87F /epHCyYHzqxk6DKadup15YH3JmPR8y3UFFBou88y3hI64qAnNCUZaDftLyledvqL+/Zy DB1Obtc6V5+lZc0IXYPY9PLcNG0uTQC3DSGybLxmDtJnrXUD5W0EG9igcRf9aU+k1q1R LlhsN5gcBJjKYzqGN3U0iS7yCXp+JFBqXeh+EPdsro+3qOMIusbOC3kDWIz0rjoxmJMZ HfsQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=default header.b=kEa9Z3iK; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.133 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:to:from:reply-to:subject:message-id:feedback-id:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=cpuYV/vAONc/PbygSUEQ525+9t/iJGVoS8tLXAkVZDo=; b=YqtP9APy6Nu3u+5vXMctIwxI5m/R7qaMzKciDmoyj45Ld0qFgBUpse/6lMAhwzHNYF O4cSokVf9jrRk3QJriPlZdXl+bYsmmQO6OPkmduNkexNXTXOKSrnAG6oLpITqcjnVwv1 02HpuJKU2InXgA03LU9bCzlLbMsXAYYNxfJ2BGtuwKbmsTzE/1DbJr6cksLrlpXfnOzE UBGqhe2wcmWW+n2i74khaFBfI8vpNyPBCKiBQ0Cn8GQSZ69o9A6REQMm0fzsOmEGhxF2 N4FHcu3vlMnC7FQS/qtGLeG2ecPJqKUXrBARdIFfecveaxf2Cxqvl0xnH9Ny4/tWgI+w 3szQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:to:from:reply-to:subject:message-id :feedback-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=cpuYV/vAONc/PbygSUEQ525+9t/iJGVoS8tLXAkVZDo=; b=FRh9HA/8y5xQy1SGMeXZCVvwiRLen8/wew9JdD5M3W+EDfTad9fLIdjVTVHrURyusX d+fJijEo7I+g0XQSzf9XJJSFd8VcpBaLeuO2uMLxC90bcAv3CBuJz19HnNdSunovfylc q+rP3NqTpA+t3XZRwyDwoGxbAu74ryt3lvQnM1mFNkKwbjMaDIXS6vhgW3WwaWLkSNIm 0LSGge/0xE2/taGGqZbOT0l/MDeh3e9EPnHE0M7726+Mb8EdE2dZ26H8wq/pheJJeQXe lgSrrHPIJrLmtqC0jNsYNBNTRW1tnhKMwkpgP2mznaRunJXXqms97kRU4Y+WnAr4x5tK pQQA== X-Gm-Message-State: APjAAAUt3n6K/N6zZtNml5gkr8lJopp1zaQDD0gLrbpo2x4oegUMU9uL 4WErM4FIoWRE6rVLuLCXp70= X-Google-Smtp-Source: APXvYqzy6WTfzR5UQsGPVQaKptNW7DakWBMeJJHpwRk4m2q7mvysiiL2ZSdTDDZLFkUg841kCOLWGw== X-Received: by 2002:a17:906:75b:: with SMTP id z27mr13439578ejb.67.1566476677685; Thu, 22 Aug 2019 05:24:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:210f:: with SMTP id qn15ls1795907ejb.2.gmail; Thu, 22 Aug 2019 05:24:36 -0700 (PDT) X-Received: by 2002:a17:906:2596:: with SMTP id m22mr17711677ejb.253.1566476676962; Thu, 22 Aug 2019 05:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566476676; cv=none; d=google.com; s=arc-20160816; b=GSY1k0obsYDRmSmzu3+eF4soB9+XDm9g+79Og/WuMnVZlUVou9uOeyx0dX9WYenZjE 0Fi1/PfzGJhVZVz++pUvAzeCj34XFQfVDCOk6gQyErVd6seJfps9HKfCaawCBsXWyXz6 2DGbR1kZgpKtb/CAMayFRG0Mnkc/VsKMxTTYGt0RvlpAaK9wF6JNDqFrYBTpuSCttR+w Mi7RjpzcFT8A5PfkE0nYcudcY9MbzacRDaaW6ol7+M4PFksfKgGLfe5CqlO7pHWdSTqs wmoJKZgs9xQTHSWSDNR8OvB4YTVkcVIiySQCGIu+iCOPy9+cbmR9TK74G0m2xsvAWP7y gwzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:feedback-id:message-id :subject:reply-to:from:to:dkim-signature:date; bh=tfF/tj2oHICtuaz7z59wgOGkTVzlmcc07EeOU+PXeJs=; b=p55WR3Lo6O7yPw3Jp+r42Yr0Hr6k/cjIH4x5vQJtxxfDGZIDiKcPiiyhVcGwVQfgqQ iOOxc8q6508pk1WCEr1yp8AK7smBuY7PpJeIrRDk0TB3GsDw+aA7xGob57bH98ssqfz/ WDooDQPIDRzFLTvGSgLYlmj4R7378mEylOd3qsPY20De/cBVvFTHKSzRSGRSwd1Tduoz X258POcB4pgru5NM4OjFohxMBOi876yYDRtW8Z4CMvK3aqnwCc+Nb/H4ZDSohDLQc/Ix /cJ4GeMDvhDTbG6pQFVBZHLThriEhi2Kq8bHAqLn9uPpIDmWqwe+MEc0TXUmz/gSvm3m iZ7A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=default header.b=kEa9Z3iK; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.133 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Original-Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch. [185.70.40.133]) by gmr-mx.google.com with ESMTPS id m16si1587706edv.2.2019.08.22.05.24.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Aug 2019 05:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.133 as permitted sender) client-ip=185.70.40.133; Feedback-ID: T7I7uPR9W9evC_OcG8CBOCN9yIeN-ZcL5eoBW0Yo0yb1KBuFiWJHPOG_haM_8t-U8KFedKZ5MEsM7XTOyk4nhw==:Ext:ProtonMail X-Original-Sender: njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=default header.b=kEa9Z3iK; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.133 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com X-Original-From: Nick Bart 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:23290 Archived-At: For a certain project, I am forced to generate.docx documents. While trying this out, I noticed that pandoc's default output still feels somewhat rough around the edges in a number of aspects. There are some issues that I have been able to fix using a custom-reference.docx file (labelled as "can fix" below). I have had trouble with others; some problems might of course be due to the fact that I do not own Word (and have no inclination whatsoever to buy it), so I have been editing custom-reference.docx with LibreOffice (currently 6.2.6.2 on MacOS 10.13). All in all, I wonder whether it would be feasible to generate.docx documents that are out of the box more correct, feature-rich, and aesthetically pleasing (ok, I'll admit I'm biased a bit here: more latex-like) that currently. What I've noticed so far regarding the default output, in no particular order: - no page numbers (can fix) - no numbered section headings (was able to fix the first level, but not levels 2 and up; note that my results did not look right to begin with in LibreOffice, Menu: "Styles" =E2=86=92 "Manage Styles") - 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.) - uses default Microsoft fonts (could probably be fixed easily using a custom-reference.docx, but why doesn't pandoc use something more neutral, such as a Times/Helvetica combo - or at least something else that doesn't scream "I'm a Word document" straight away)? - LibreOffice displays some pandoc docx tables too wide (reported before: https://github.com/jgm/pandoc/issues/2576). For me, this happens when using simple tables (multiline tables come out ok). - With `--toc`, an empty table of contents (ok, can be fixed in LO via "Tools" =E2=86=92 "Update" =E2=86=92 "Update All"); and with a custom-r= eference.docx modified to number section headings, the toc title, again, is numbered. So, my questions: - Has anyone been able to come up with a custom-reference.docx that solves some or all of these issues, and would be willing to share it, or would be interested in collaborating in order to develop one? - Any tips or tricks on editing a custom-reference.docx with LO (or with a plain text editor, for that matter)? - Any ideas on how to generate/update the table of contents without user interaction? - I've seen this:https://ask.libreoffice.org/en/question/46586/how-to= -automatically-update-indices-in-headless-mode/, and spent about an hour on it, but couldn't get it to work. - Any ideas on how to generate lists of tables and figures? --=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/RC5rhmsP_qtblfskRIcPZHhdVlJt76IbH1X0a1IN_iFZ_-Q1fwRtQUS16-5M= 0zfTI0J54Wi9vk5Z8xzTRfAyYrOwpmlUzosE-rH9C1UcK7c%3D%40protonmail.com.