public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Can anyone provide a simple example of how to use custom styles with ODT output?
Date: Tue, 15 Jun 2021 09:39:47 +0200	[thread overview]
Message-ID: <CADAJKhDhJpwVtjq75HYziKdywSWxa9LX2WNsH2p=_ScKM_0y6A@mail.gmail.com> (raw)
In-Reply-To: <CAN1EhV__DCJTc=UbC2MpvPo5qdmodWwXQkPTf6ws1Eipw9m+oA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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

I will try to produce a working reference doc (with LibreOffice) when I get
back to my desktop later today and send it. Meanwhile a tip is to use only
ASCII letters (no space, digits, punctuation or multibyte chars) in your
style names.


Den mån 14 juni 2021 22:27T. Kurt Bond <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:

> 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
> <https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV__DCJTc%3DUbC2MpvPo5qdmodWwXQkPTf6ws1Eipw9m%2BoA%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/CADAJKhDhJpwVtjq75HYziKdywSWxa9LX2WNsH2p%3D_ScKM_0y6A%40mail.gmail.com.

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

      parent reply	other threads:[~2021-06-15  7:39 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
     [not found]         ` <CAN1EhV__DCJTc=UbC2MpvPo5qdmodWwXQkPTf6ws1Eipw9m+oA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-15  7:39           ` BPJ [this message]

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='CADAJKhDhJpwVtjq75HYziKdywSWxa9LX2WNsH2p=_ScKM_0y6A@mail.gmail.com' \
    --to=bpj-j3h7gcxpsitlodktgw+v6w@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).