public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Cassandra Lyderitz <cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Format cross-references and web hyperlinks differently in Word
Date: Sun, 9 Jan 2022 13:00:31 +0300	[thread overview]
Message-ID: <CAGvXcu-zzXFuVvb_bXQ-GM2X8JbSgFbNbjFn-kNZXVcdERUKxQ@mail.gmail.com> (raw)
In-Reply-To: <CADAJKhAW8LSVGBS56UmSM+4xjV9skk4dMcE8HPTNFkFrdJQ9Nw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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

Thanks a lot for your linkful answer!

Of course I have already learnt the way I need to change the styles so that
they would apply to my document.
The issue is however that I want different styles for what is perceived as
a single style by pandoc custom template or any pandoc output that I obtain
!

Namely, if I set `ref-hyperlink` parameter to `false` in Pandoc config, the
cross-references in output MS Word Document are shown as plain unresponsive
text ("Body Text" style) and thus cannot be different from any other text.
If I set it to true, the cross-references have "Hyperlink" style and thus
cannot have format different from the format of real web links (which
itself have "Hyperlink" style as well).

My issue is that I want cross-references, web-links and body text styled
differently, but there are only two styles: "hyperlink" and "body text"
that they can take.
Is there a way to do that?
Thanks in advance for any response!


сб, 8 янв. 2022 г. в 23:12, BPJ <bpj@melroch.se>:

> The links produced by Pandoc should have a named character style applied
> to them. Follow the instructions at
>
>
> https://support.microsoft.com/en-us/office/customize-or-create-new-styles-d38d6e47-f6fc-48eb-a607-1eb120dec563
>
> for Word or
>
>
> https://documentation.libreoffice.org/assets/Uploads/Documentation/en/GS5.2/HTML/GS5203-StylesAndTemplates.html
>
> for LibreOffice
>
> and modify that style however you like *without renaming* it, then use
> that file as reference document when you run pandoc as described in the
> manual
>
> https://pandoc.org/MANUAL.html#option--reference-doc
>
> There is a wiki page which I started once upon a time. It should still be
> relevant
>
>
> https://github.com/jgm/pandoc/wiki/Defining-custom-DOCX-styles-in-LibreOffice-(and-Word)
>
> /bpj
>
> Den lör 8 jan. 2022 20:10Cassandra Lyderitz <cassandra.lyderitz@gmail.com>
> skrev:
>
>> Is there a way to format cross-references and web hyperlinks differently
>> when converting Markdown to MS Word with Pandoc?
>>
>> On the one hand, since the output remains digital, I definitely need
>> clickable cross-references to images, tables etc., so I need to set the
>> `ref-hyperlink` parameter to `true`.
>> I need the clickable cross-references not to stand out from the
>> surrounding text, i. e. they need to remain without underscores and black.
>>
>> On the other hand, I would like the true hyperlinks, i. a. web links, to
>> be blue and underscored. Moreover, it would be great if the web links were
>> clickable.
>>
>> However, in the proposed sample doc template, the same `Hyperlink` style
>> is governing the appearance of both objects. I have seen such unused
>> styles  as `Smart Link` and `Smart Hyperlink`, but do they mean anything to
>> pandoc?
>>
>> Thanks in advance for any response.
>>
>> --
>> 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/60a0cabf-884e-452c-b094-9f6b1a9f546an%40googlegroups.com
>> <https://groups.google.com/d/msgid/pandoc-discuss/60a0cabf-884e-452c-b094-9f6b1a9f546an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pandoc-discuss/vjdzDYCUqxY/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CADAJKhAW8LSVGBS56UmSM%2B4xjV9skk4dMcE8HPTNFkFrdJQ9Nw%40mail.gmail.com
> <https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhAW8LSVGBS56UmSM%2B4xjV9skk4dMcE8HPTNFkFrdJQ9Nw%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/CAGvXcu-zzXFuVvb_bXQ-GM2X8JbSgFbNbjFn-kNZXVcdERUKxQ%40mail.gmail.com.

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

      parent reply	other threads:[~2022-01-09 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-08 19:09 Cassandra Lyderitz
     [not found] ` <60a0cabf-884e-452c-b094-9f6b1a9f546an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-01-08 20:12   ` BPJ
     [not found]     ` <CADAJKhAW8LSVGBS56UmSM+4xjV9skk4dMcE8HPTNFkFrdJQ9Nw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-09 10:00       ` Cassandra Lyderitz [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=CAGvXcu-zzXFuVvb_bXQ-GM2X8JbSgFbNbjFn-kNZXVcdERUKxQ@mail.gmail.com \
    --to=cassandra.lyderitz-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).