public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "T. Kurt Bond" <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Can anyone provide a simple example of how to use custom styles with ODT output?
Date: Mon, 14 Jun 2021 16:26:44 -0400	[thread overview]
Message-ID: <CAN1EhV__DCJTc=UbC2MpvPo5qdmodWwXQkPTf6ws1Eipw9m+oA@mail.gmail.com> (raw)
In-Reply-To: <CADAJKhCZ8=EVj_=VikW2MawA+Qwz0-0c7z_bJgf3DTXHNRKcnw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 3101 bytes --]

No, I did create a character style.

On Mon, Jun 14, 2021 at 4:07 PM BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> Did you by any chance create a paragraph style rather than a character
> style? Custom-style spans need character styles; divs need paragraph styles.
>
> Den mån 14 juni 2021 21:16T. Kurt Bond <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>> This <https://github.com/jgm/pandoc/issues/2106#issuecomment-714824114>
>> comment says custom styles have been implemented for ODT, but I can't find
>> any examples of how to do it.
>>
>> I know that I have to use --reference-doc=custom=custom-reference.odt
>> and I know how to produce custom-reference.odt using
>>
>> pandoc -o custom-reference.odt --print-default-data-file reference.odt
>>
>> and I know how to create the custom styles in custom-reference.odt, but
>> I can't figure out how to put the pieces together.
>>
>> I want to have, for instance, a custom style name that makes things
>> marked up with it show up in italics in the ODT output.  Should this
>> markdown work?
>>
>> This sentence includes a name: [J. Random User]{custom-style="name"}.
>>
>> It doesn't seem to work.
>> --
>> T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV8K3qkd4XpHY7T5%3DSfXr4qgA%2BVp4AQZ2KsnvEQwTctf7A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV8K3qkd4XpHY7T5%3DSfXr4qgA%2BVp4AQZ2KsnvEQwTctf7A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhCZ8%3DEVj_%3DVikW2MawA%2BQwz0-0c7z_bJgf3DTXHNRKcnw%40mail.gmail.com
> <https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhCZ8%3DEVj_%3DVikW2MawA%2BQwz0-0c7z_bJgf3DTXHNRKcnw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV__DCJTc%3DUbC2MpvPo5qdmodWwXQkPTf6ws1Eipw9m%2BoA%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 5220 bytes --]

  parent reply	other threads:[~2021-06-14 20:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-14 19:15 T. Kurt Bond
     [not found] ` <CAN1EhV8K3qkd4XpHY7T5=SfXr4qgA+Vp4AQZ2KsnvEQwTctf7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-14 20:07   ` BPJ
     [not found]     ` <CADAJKhCZ8=EVj_=VikW2MawA+Qwz0-0c7z_bJgf3DTXHNRKcnw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-14 20:26       ` T. Kurt Bond [this message]
     [not found]         ` <CAN1EhV__DCJTc=UbC2MpvPo5qdmodWwXQkPTf6ws1Eipw9m+oA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-15  7:39           ` BPJ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN1EhV__DCJTc=UbC2MpvPo5qdmodWwXQkPTf6ws1Eipw9m+oA@mail.gmail.com' \
    --to=tkurtbond-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).