From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30579 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shane Liesegang Newsgroups: gmane.text.pandoc Subject: Re: Manually apply styles to output docx? Date: Wed, 18 May 2022 20:33:53 -0700 (PDT) Message-ID: <56357d0c-ae70-44bc-8e53-25c686fa73f0n@googlegroups.com> References: <2a9a59ee-359b-4670-a140-234fb4c52311n@googlegroups.com> <3b8d1a41518f4384a6087ac54b826b3c@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_122_1467289144.1652931233532" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9726"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC2OTJELV4GRBIXVS2KAMGQEO6T7EOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 19 05:33:57 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f58.google.com ([209.85.160.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nrWvF-0002IZ-UM for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 19 May 2022 05:33:57 +0200 Original-Received: by mail-oa1-f58.google.com with SMTP id 586e51a60fabf-e67951fe25sf2146030fac.5 for ; Wed, 18 May 2022 20:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=fifuaZ1LWPD0rwPXgBeiElu9wUJlk9luKBlikhtuLvQ=; b=qjCD5haR3FnhguCMPccrRsBmhAPAdV5IGjO6Ro67RTFLOEFnTUIb/0PAA8FrJWQ6cw c5l8WogeXAHYcrj7X0BYckHq8GiKfC0F/9kYuyzxunCWTpNMcr3yMFmAcZk5peJyzb3U MHvHG1zfy+RD8DLqW/AcTrj8soPZ+wFdWFJW+yZtQQ4w5udmt/ePBVsuQmkvETkhz44Z 4xbpIgkqJ23DJvvh1Zw0RuFXsGrNbot6plxQkjWdmsS06VOmLhEjISt59NpcppqybFfV +CWpbcVEwOvpR+UqESWMcPBlw5gf5+fStJo9fbylLO4hQn4UOKsy7eDupUiW7fjK3zGy RbCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=fifuaZ1LWPD0rwPXgBeiElu9wUJlk9luKBlikhtuLvQ=; b=RKpjaVIO4hcYwYApweti2JxPM+vGYGniXBDS1UVmDOGGhRbjqHSNJp0VXGaQN4yQaA GP5OGGiEuS3SM4W201th1eh7pFY4SuRRirzXRKtqYyNkrBabnW05UKpphQyy4rAo/6Rf GhcxmYaMYpn8dDcttZniIPAG3gvWuzQgI1EJr9b7b+Rh9aw/uTwqDczCKJ/TMAUTiBXm mgUj1++UkiYULtq/WOSkyBaOWZfqoeO59lAx/V5l4vKzo1QLJAzW2NHPYsSQN1rjhid6 VC2tT6NPx3wcEWYxZE2VQYeyGCcCaHvKCunFJAtBlAjKPwFffwE+XD5N1dPWk/TDAqtS JFzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=fifuaZ1LWPD0rwPXgBeiElu9wUJlk9luKBlikhtuLvQ=; b=fh89RNDoq8Za8hDPGQ5T1QodIECfqiSLiWbkRSmb007AP9lUO0CrDOAnv0YMRN9Tdr obRl9FSJQzPJ0d5BOSHEhURqe9dWwJMSKqJEni0rbRdaCX/YAQiB7g9psmesjHsQkVE1 YXGqMS8aKMxUNFa2HJiDWHCwsmAyqy2Tv1zRicLkKAw9MNMCrka3Ecdm272hL/1QbfRv 47nKHR30eK/9BLSFp80FGB+1Qgx2DNwV66HIlLyfyrVtwC7uueoz0zDqJbVMgODZWhAy l766N0iBYjHk3oApgZ5SZu8MqAI09Bp99c8qfEKjec/rRGQkBiIxE1y308m/9zvUgxqM wIqg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531vBdimhObj+sDNOZE7OKQk5kIuvIQWGTQ+9JFvT0EMSyYL4V6j Be6aLXpKnBznBzQj2jQkrKk= X-Google-Smtp-Source: ABdhPJxgedOkvTqebDcJwFdKhyI9UW6kecaqmR3myZwDSlU4G7s/nb45EfnhrNx4/goU3qh6jfKs5A== X-Received: by 2002:a05:6808:1709:b0:2f9:30ec:c95b with SMTP id bc9-20020a056808170900b002f930ecc95bmr1682570oib.240.1652931236810; Wed, 18 May 2022 20:33:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:23d2:b0:326:98c2:25a8 with SMTP id bq18-20020a05680823d200b0032698c225a8ls569741oib.11.gmail; Wed, 18 May 2022 20:33:54 -0700 (PDT) X-Received: by 2002:a05:6808:21a2:b0:326:a16e:ceeb with SMTP id be34-20020a05680821a200b00326a16eceebmr1527499oib.157.1652931234250; Wed, 18 May 2022 20:33:54 -0700 (PDT) In-Reply-To: <3b8d1a41518f4384a6087ac54b826b3c-NSENcxR/0n0@public.gmane.org> X-Original-Sender: liesegang-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.io gmane.text.pandoc:30579 Archived-At: ------=_Part_122_1467289144.1652931233532 Content-Type: multipart/alternative; boundary="----=_Part_123_1165507527.1652931233532" ------=_Part_123_1165507527.1652931233532 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That was my understanding of that line in the documentation, too. But I'm= =20 not sure if my understanding is wrong (and I can't do this), or if the=20 documentation is wrong (and the current behavior is intended), or if the=20 current behavior is wrong (and it's a bug).=20 On Monday, May 16, 2022 at 12:43:11 PM UTC+3 denis...-NSENcxR/0n0@public.gmane.org wrote: > I would have expected the same given the documentation says =C2=ABFor doc= x=20 > output, styles will be defined in the output file as inheriting from norm= al=20 > text, if the styles are not yet in your reference.docx. If they are alrea= dy=20 > defined, pandoc will not alter the definition.=C2=BB=20 > > =20 > > *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org *Im=20 > Auftrag von *Shane Liesegang > *Gesendet:* Sonntag, 15. Mai 2022 14:28 > *An:* pandoc-discuss > *Betreff:* Manually apply styles to output docx? > > =20 > > I've customized a reference.docx file for applying styles to an exported= =20 > Word document, and am attempting to follow the instructions from the Cust= om=20 > Styles section of the=20 > manual. If I'm reading the documentation right (and I may not be!) if I= =20 > attempt to apply a custom style that is already defined in the reference= =20 > document, it will not redefine it but apply the existing style.=20 > > =20 > > However, when I do something like this in markdown+bracketed_spans:=20 > > =20 > > [my strong text]{custom-style=3D"Strong"} > > =20 > > And there is already a "Strong" style in the reference file, I find the= =20 > span instead has a new style applied to it called "Strong1".=20 > > =20 > > Is there any way I can manually apply styles to Markdown text for docx=20 > output?=20 > > =20 > > Thanks for any help / letting me know where I misunderstand.=20 > > --=20 > You received this message because you are subscribed to the Google Groups= =20 > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= =20 > email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/2a9a59ee-359b-4670-a140-= 234fb4c52311n%40googlegroups.com=20 > > . > --=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/56357d0c-ae70-44bc-8e53-25c686fa73f0n%40googlegroups.com. ------=_Part_123_1165507527.1652931233532 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That was my understanding of that line in the documentation, too. But I'm n= ot sure if my understanding is wrong (and I can't do this), or if the docum= entation is wrong (and the current behavior is intended), or if the current= behavior is wrong (and it's a bug).

On Monday, May 16, 2022 at 12:43:11 PM = UTC+3 denis...-NSENcxR/0n0@public.gmane.org wrote:

I would have expected the same given the docum= entation says =C2=ABFor docx output, styles will be defined in the o= utput file as inheriting from normal text, if the styles are not yet in you= r reference.docx. If they are already defined, pandoc will not alter the definition.=C2=BB <= span>

=C2=A0

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...@googlegroups.c= om> Im Auftrag von Shane Liesegang
Gesendet: Sonntag, 15. Mai 2022 14:28
An: pandoc-discuss <pa= ndoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Manually apply styles to output docx?
<= /p>

=C2=A0

I've customized a reference.docx file for applying styles to an = exported Word document, and am attempting to follow the instructions from t= he Custom S= tyles section of the manual. If I'm reading the documentation right= (and I may not be!) if I attempt to apply a custom style that is already d= efined in the reference document, it will not redefine it but apply the existing style.

=C2=A0

However, when I do something like this in markdown+b= racketed_spans:

=C2=A0

= [my strong text]{custom-style=3D"Strong"}

=C2=A0

And there is already a "Strong" style in t= he reference file, I find the span instead has a new style applied to it ca= lled "Strong1".

=C2=A0

Is there any way I can manually apply styles to Mark= down text for docx output?

=C2=A0

Thanks for any help / letting me know where I misund= erstand.

--
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-discus...-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2a9a59ee-359b-4670-a140-23= 4fb4c52311n%40googlegroups.com.

--
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/56357d0c-ae70-44bc-8e53-25c686fa73f0n%40googlegroups.= com.
------=_Part_123_1165507527.1652931233532-- ------=_Part_122_1467289144.1652931233532--