From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22070 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Phil Newsgroups: gmane.text.pandoc Subject: Re: Trouble with custom styles for docx output Date: Sun, 10 Feb 2019 15:37:54 -0800 (PST) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_722_909343960.1549841874179" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181100"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCO53TH53QNBBU7LQLRQKGQEPWXYXJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Feb 11 00:37:59 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gsyfd-000kwM-CR for gtp-pandoc-discuss@m.gmane.org; Mon, 11 Feb 2019 00:37:57 +0100 Original-Received: by mail-ot1-f56.google.com with SMTP id q16sf9535123otf.5 for ; Sun, 10 Feb 2019 15:37:57 -0800 (PST) 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=Cz7GHfF0SQ5HOlm6vnggZ4DSrpFD65PwHJwAVFmkaoQ=; b=kBPLTZzKvAivO8ZUvXzUH+x+fWgGJbbwfddy5ro4++n6Cz2rC2ar+QlXViqIXkzNMC ykNjpYAd27mnm32+UvxQbCGmEwZOYvR7LOKU95nAyzjJsJUZt/NcxRgrkMx3ZNCGnXyj YcV/SMHtNh4L/JTYdv6VJE+CFoBx0HzyGN5UELwx2fIrBcZwoKzExOZ1U+q0D4j6CAMS t5A243nn0a0nza/LiciTcMtDGLoN1AcqQVJGWRkHwhSzMWRELTA6XnWYrl1gwb43wTds m5XSAR/2YTR0XVhVW6IQy3qtuewiRDlhHACoFMTzzfz7gcb1+a/Wetp+jqNrLHvl8fAY 7ZRg== 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=Cz7GHfF0SQ5HOlm6vnggZ4DSrpFD65PwHJwAVFmkaoQ=; b=C7whrYLVNFCI/vdsrpGuetCV5DcubAi4vPmVMAzwBY8H0QTYw4ptNXvsjBuAXc7HL0 RRLJV5R7aYF3NamEUClIgaRCKLVN8iMS/k4G1O7bzVVJCcoOW1H0NNhpw5nvk5BQEjVl VHhPUhlRPegKAj3qnRtQHyL9DIU7mN87BQFqeWe1BtIxG5SnWo5ckfeF9K228SRl4sQl KP2C3krLbkE7r4AA7pzjx6LT+XXTVzFG7kqRScJ5R4yk3hjDC68aPSGqX8UL8pQsMVul s2nRQ9MHg+imrUrVXY6KAlDVi2kampEiaSGDFflbSa2mZs5PSkOsvOn7PXIB+2a84sqA Qhug== 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=Cz7GHfF0SQ5HOlm6vnggZ4DSrpFD65PwHJwAVFmkaoQ=; b=l2BdQK9nyRoxzwcyYcNml1MmNsBTfFo39HiUahWs9Rr1OUK4Bf7b9vlMuPDIQYWXGe DHJmtMYyjeyQA6BbhNOXbwNVpxkhEn2vRTWI+taXpRV66cEks0Yt+OEgTVVlldHvdLKW l6F4f9wszixgkRLDgezaWsUwq6yUd+Op8rQHWmtMWUXWKsjOy2C0wcQo30DuLNwdtRjg DkacK9+fRSm8CklsCmDa3TH+nFv+BwIqaK6b+rgVn0cJ03OSaZ//MkZWDow5yxgNI4Sh ltcnqoWAWBxILNJDUF6AM/y8hiRjb0+45PfRWRg2YZs5YCk9Vh7ndfVoBR1+etBGO2hm Okcw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHQUAuacX2PL6PEbgcbaxQ3F65+PUqYSXiFQhAr469ujHMYfbYfZh15/ H5rC8PKv9JHcAPZ9hvm8ybs= X-Google-Smtp-Source: AHgI3IbuYmtC6x4zapqruMqaer1V2oY0bPD0PI2nzhiyhBsm+gWBaeZDKFeWKLe2Ug6RD8BYQrNOvg== X-Received: by 2002:a9d:2c22:: with SMTP id f31mr415053otb.4.1549841876149; Sun, 10 Feb 2019 15:37:56 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:2c62:: with SMTP id f89ls6871214otb.2.gmail; Sun, 10 Feb 2019 15:37:55 -0800 (PST) X-Received: by 2002:a05:6830:1212:: with SMTP id r18mr269323otp.0.1549841874829; Sun, 10 Feb 2019 15:37:54 -0800 (PST) In-Reply-To: X-Original-Sender: phillipruppert-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:22070 Archived-At: ------=_Part_722_909343960.1549841874179 Content-Type: multipart/alternative; boundary="----=_Part_723_1557343109.1549841874180" ------=_Part_723_1557343109.1549841874180 Content-Type: text/plain; charset="UTF-8" Thank you for the reply, John, and for this awesome tool. Originally, I was not using the styles extension because the User Guide makes it seem like that extension is used when docx is input, not output. Regardless, I have tried now again with -t docx+styles as you suggest and am getting the same results. I have also tried adding the styles to my input: -f markdown+styles but get the same results. Side question, does it matter whether extensions are added to the -f or -t formats? On Sunday, February 10, 2019 at 9:29:28 AM UTC-6, John MacFarlane wrote: > > > Did you specify the styles extension (-t docx+styles) > on the command line? > > Phil > writes: > > > On Pandoc 2.6, I am converting from markdown to docx. I am trying to > learn > > and use the custom styles for docx output and am getting some odd > behavior. > > I am using the examples text straight from the Pandoc User Guide. I have > > only substituted the name of my custom style that is defined in my > > reference.docx. > > > > Just placing the following in my markdown file results in no styled > text: > > [Get out]{custom-style="greyBackground"}, he said. > > > > But placing this in my markdown file results in styled text: > > ::: {custom-style="greyBackground"} > > | A Bird came down the Walk--- > > | He did not know I saw--- > > ::: > > > > And placing both of the following contiguously in my markdown file > results > > in neither having the styled text: > > [Get out]{custom-style="greyBackground"}, he said. > > > > ::: {custom-style="greyBackground"} > > | A Bird came down the Walk--- > > | He did not know I saw--- > > ::: > > > > Am I doing something wrong with the bracketed span style? Not sure what > it > > could be since I am copying nearly directly from the example in the user > > guide. Is this a bug, or is there some trick or consideration I am not > > getting? > > > > Thanks. > > Phil > > > > -- > > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/b8fd20bf-bb08-46e5-a6d7-7decfd41e91a%40googlegroups.com. > > > For more options, visit https://groups.google.com/d/optout. > -- 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/d8b5e3a4-671e-4468-b967-c71f92e39c72%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_723_1557343109.1549841874180 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the reply, John, and for this awesome t= ool.

Originally, I was not using the styles extension b= ecause the User Guide makes it seem like that extension is used when docx i= s input, not output.

Regardless, I have tried now again = with -t docx+styles as you suggest and am getting the same results. I have = also tried adding the styles to my input: -f markdown+styles but get the sa= me results. Side question, does it matter whether =C2=A0extensions are adde= d to the -f or -t formats?

On Sunday, February 10, 2019 at 9:29:28 A= M UTC-6, John MacFarlane wrote:

Did you specify the styles extension (-t docx+styles)
on the command line?

Phil <phillip...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> On Pandoc 2.6, I am converting from markdown to docx. I am trying = to learn=20
> and use the custom styles for docx output and am getting some odd = behavior.=20
> I am using the examples text straight from the Pandoc User Guide. = I have=20
> only substituted the name of my custom style that is defined in my= =20
> reference.docx.
>
> Just placing the following in my markdown file results in no style= d text:
> [Get out]{custom-style=3D"greyBackground"}, he said= .
>
> But placing this in my markdown file results in styled text:
> ::: {custom-style=3D"greyBackground"}
> | A Bird came down the Walk---
> | He did not know I saw---
> :::
>
> And placing both of the following contiguously in my markdown file= results=20
> in neither having the styled text:
> [Get out]{custom-style=3D"greyBackground"}, he said= .
>
> ::: {custom-style=3D"greyBackground"}
> | A Bird came down the Walk---
> | He did not know I saw---
> :::
>
> Am I doing something wrong with the bracketed span style? Not sure= what it=20
> could be since I am copying nearly directly from the example in th= e user=20
> guide. Is this a bug, or is there some trick or consideration I am= not=20
> getting?
>
> Thanks.
> Phil
>
> --=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 email to pandoc-discus...@googlegroups.com.
> To post to this group, send email to pandoc-...@googlegroups.com.
> To view this discussion on the web visit
https://groups.= google.com/d/msgid/pandoc-discuss/b8fd20bf-bb08-46e5-a6d7-7decfd4= 1e91a%40googlegroups.com.
> For more options, visit https://groups.go= ogle.com/d/optout.

--
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/d8b5e3a4-671e-4468-b967-c71f92e39c72%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_723_1557343109.1549841874180-- ------=_Part_722_909343960.1549841874179--