From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22677 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan McLachlan Newsgroups: gmane.text.pandoc Subject: docx writer: using styles from reference document Date: Mon, 6 May 2019 08:15:06 -0700 (PDT) Message-ID: <0c37bc1d-ea10-4945-98a8-b169997ac437@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1887_137789877.1557155706345" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207973"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCHJFA6CVYERB646YHTAKGQELGI4MBQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 06 17:15:11 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hNfKh-000rxa-0i for gtp-pandoc-discuss@m.gmane.org; Mon, 06 May 2019 17:15:11 +0200 Original-Received: by mail-ot1-f61.google.com with SMTP id q15sf7626754otl.8 for ; Mon, 06 May 2019 08:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=RrWbRdwb6otp8GCMf8Tt6f6qntHNaBD5whtCY9RKx7Y=; b=MkvzfZ2LB+CgKQ1wwOrSJOBA7dJIz1EXVqVJzj3q1Oz0Wy4AchBVJf7RL8UlygJ8qY KVkqqvYbcSOVdSstnRFK9ZGleOa/AW3z8utbLLzpFmAeQd0ze4zAuSkt1hzXKPQqbVdD jS1BdyzDg95rTeLgiw6aKg0dUikbaptF+wC0B6IAoVsddutSYiK8c8lSZq1IsyM34Vfp J+ez8pQtXH+CpwSELlmD1uvMPdkoLDVrxtmVYYaBcfjmzhHmkEgO0+Q9UrSusysEETAm hFD8NKnz2vzFHwbmWdwXA8Yzz7IakilLt64yBAbCCJgf4NQVttE9x0R9m2WM5qMQnnAo Y7Sg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=RrWbRdwb6otp8GCMf8Tt6f6qntHNaBD5whtCY9RKx7Y=; b=JFHu8Is/GyyLAPPLD7pWaL6lXbOcmQG+vX0MG1mk9snRlbxaI43xmsDu7ti1dpt86e tGMKJDxxBaM9Lzo/bbemb/d7ru+SDDCn95+VapBbrfJRwxSVQnFc5XcZfkxQuSiLesV4 yduJFeq/4Xbjt7OLQujaFzKbDLl02CWz9dFklo746lbmD4R+c9smNPSMpocxYteUG+n6 JEodKThww6Y9jZzt1K7Kae+1rGXq29OC9dNbH3whbHEq63FP4FG9swWEcgU0ZpSHjNsz SFyxYf2U6eWJYqNAnJfDN+efEW/JKTAytrfXeNGQtfE17gSllvD99BegyY7NIyGtyEXv ipHQ== 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: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=RrWbRdwb6otp8GCMf8Tt6f6qntHNaBD5whtCY9RKx7Y=; b=IA91sutNgtE1knotPIaVjPHS6Zxi2PGeN7Tq9SxBksSSFg+Aq1nx9WCcZKYZSrlXM/ U6JjTfNCb40BUbYIomtXlzOI4yLK0BXu1Ls6rpekIaegnZRrmZ4wWnErZfjw8YJfisK2 3d3Kg/fIr/Iy9s/cBGSBDuM2NwG4O18SegftabtbmnWWwoY7DDq9A0G6XWOmIX9qdqwd vafntheHCvgMAAo6BdZIp0aPxrjD/5DpYNd90z1JPVNFpDO8z4tCFxBCQMw3EZpS4K23 B8nDY1tYlXIOozuawtj+OqaYswq8tvSGCt3xaVtHHZppw+x0O6cAIYpRSxIG5rTSjiJJ mxmA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUWyCSg1u6YeW+zCUjXUeqHhc+HXGlGAUS1qCZSUvm9Cc69t6BV 0Xh6PD/XJ0A5v6SOArS9GUU= X-Google-Smtp-Source: APXvYqxoo8FTz8Sjet5cOC1IQoHgp3+Bx0sbiVKJA6QPSs5TibgqGC074+lJdbAAnu5r73r9RJgTDQ== X-Received: by 2002:aca:a9c7:: with SMTP id s190mr1541055oie.21.1557155708671; Mon, 06 May 2019 08:15:08 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:4c8d:: with SMTP id m13ls875956otf.16.gmail; Mon, 06 May 2019 08:15:07 -0700 (PDT) X-Received: by 2002:a05:6830:99:: with SMTP id a25mr9140389oto.46.1557155707073; Mon, 06 May 2019 08:15:07 -0700 (PDT) X-Original-Sender: alan.mcl-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:22677 Archived-At: ------=_Part_1887_137789877.1557155706345 Content-Type: multipart/alternative; boundary="----=_Part_1888_1440367201.1557155706346" ------=_Part_1888_1440367201.1557155706346 Content-Type: text/plain; charset="UTF-8" Hi What I'm looking to do is write a docx and style it using a reference document, but I want the generated docx to use styles from the reference document, not the default Word styles. For example: pandoc today generates the paragraph text set to "Normal" style, I want it to use "My Style 1" instead of Normal. I've done some research and tested different approaches but can't quite get it working. Hand crafting a reference.docx with the styles I need is not a great option because the reference docx I'm getting in is outside my control and subject to change (thanks corporate marketing dept). 1. Any suggestions for tackling this? 2. Failing that, is a pull request supporting this something you'd be interested in? My last Haskell was 20 years ago in uni, but the docx.hs code looks reasonably self contained and maybe I can put something together :) regards Alan -- 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 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/0c37bc1d-ea10-4945-98a8-b169997ac437%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1888_1440367201.1557155706346 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

What I'm looking to d= o is write a docx and style it using a reference document, but I want the g= enerated docx to use styles from the reference document, not the default Wo= rd styles.
For example: pandoc today generates the paragraph text= set to "Normal" style, I want it to use "My Style 1" i= nstead of Normal.

I've done some research and = tested different approaches but can't quite get it working.
H= and crafting a reference.docx with the styles I need is not a great option = because the reference docx I'm getting in is outside my control and sub= ject to change (thanks corporate marketing dept).

= 1. Any suggestions for tackling this?

2. Failing t= hat, is a pull request supporting this something you'd be interested in= ? My last Haskell was 20 years ago in uni, but the docx.hs code looks reaso= nably self contained and maybe I can put something together :)
regards
Alan


=

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/0c37bc1d-ea10-4945-98a8-b169997ac437%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1888_1440367201.1557155706346-- ------=_Part_1887_137789877.1557155706345--