* Trouble with custom styles for docx output
@ 2019-02-10 6:19 Phil
[not found] ` <b8fd20bf-bb08-46e5-a6d7-7decfd41e91a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Phil @ 2019-02-10 6:19 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1677 bytes --]
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-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/b8fd20bf-bb08-46e5-a6d7-7decfd41e91a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 5198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Trouble with custom styles for docx output
[not found] ` <b8fd20bf-bb08-46e5-a6d7-7decfd41e91a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-02-10 15:29 ` John MacFarlane
[not found] ` <m2k1i71x2u.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2019-02-10 15:29 UTC (permalink / raw)
To: Phil, pandoc-discuss
Did you specify the styles extension (-t docx+styles)
on the command line?
Phil <phillipruppert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-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/b8fd20bf-bb08-46e5-a6d7-7decfd41e91a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Trouble with custom styles for docx output
[not found] ` <m2k1i71x2u.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2019-02-10 23:37 ` Phil
[not found] ` <d8b5e3a4-671e-4468-b967-c71f92e39c72-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Phil @ 2019-02-10 23:37 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 3188 bytes --]
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 <phillip...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> 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 <javascript:>.
> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> <javascript:>.
> > 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.
[-- Attachment #1.2: Type: text/html, Size: 5296 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Trouble with custom styles for docx output
[not found] ` <d8b5e3a4-671e-4468-b967-c71f92e39c72-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-02-11 16:49 ` John MacFarlane
[not found] ` <yh480kftsufexq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2019-02-11 16:49 UTC (permalink / raw)
To: Phil, pandoc-discuss
Phil <phillipruppert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> 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?
Answer to side question is yes. Extensions can be
applied separately to reader and writer formats.
As for the main question, perhaps someone who uses
custom styles could answer better than I.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Trouble with custom styles for docx output
[not found] ` <yh480kftsufexq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2019-02-12 13:11 ` BPJ
0 siblings, 0 replies; 5+ messages in thread
From: BPJ @ 2019-02-12 13:11 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw; +Cc: Phil
[-- Attachment #1: Type: text/plain, Size: 2384 bytes --]
Phil, have you defined both a character style and a paragraph style for
your custom style in your reference docx file? You have to do that because
paragraph styles and character styles are distinct entities even if they
have the same name and the same visual effect.
Den mån 11 feb. 2019 17:50 skrev John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>:
> Phil <phillipruppert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > 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?
>
> Answer to side question is yes. Extensions can be
> applied separately to reader and writer formats.
>
> As for the main question, perhaps someone who uses
> custom styles could answer better than I.
>
> --
> 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/yh480kftsufexq.fsf%40johnmacfarlane.net
> .
> 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/CADAJKhB9RJvN%2BXraZKUGvAKjdKN0jep7WONuX5D%3DbFF7mjXvkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 3617 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-02-12 13:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-10 6:19 Trouble with custom styles for docx output Phil
[not found] ` <b8fd20bf-bb08-46e5-a6d7-7decfd41e91a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-02-10 15:29 ` John MacFarlane
[not found] ` <m2k1i71x2u.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-02-10 23:37 ` Phil
[not found] ` <d8b5e3a4-671e-4468-b967-c71f92e39c72-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-02-11 16:49 ` John MacFarlane
[not found] ` <yh480kftsufexq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-02-12 13:11 ` BPJ
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).