From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29933 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cassandra Lyderitz Newsgroups: gmane.text.pandoc Subject: Re: Format cross-references and web hyperlinks differently in Word Date: Sun, 9 Jan 2022 13:00:31 +0300 Message-ID: References: <60a0cabf-884e-452c-b094-9f6b1a9f546an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000054eb805d5234b2c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15450"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCCZHVVIW4CRBS7E5KHAMGQE3NMXHUY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jan 09 11:00:46 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f59.google.com ([209.85.221.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n6V0I-0003qd-99 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 09 Jan 2022 11:00:46 +0100 Original-Received: by mail-wr1-f59.google.com with SMTP id o28-20020adfa11c000000b001a60fd79c21sf1706972wro.19 for ; Sun, 09 Jan 2022 02:00:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1641722445; cv=pass; d=google.com; s=arc-20160816; b=UNXrOxKaqGd3rVVdPhs6I8FjpNOGsf/HTmV/BOjW9uIaa3bVEvtDT6VVMADbhxxT+2 XkesLKFgNbSuWGwP1LRao5yMZQlorxGnD6XGNQPESBCH6jEsOE40S+pn5rgjy7aKggYg KiTS3CcPtyR4jHR+IRe2FyrIBHzTCBgXyCvrPCqcRmfWKZ4kjb8iZvBDynHMoSaaXIuQ hRg3PPBr8jGEWApqmCf1m5lMqqXo2lGCLQDbYzDxOiLrL59BBaB0Z+7bVEbX6BCp1k/1 PYwlBBXhEFQhpMp4IgatSFpgyuIR26gLohqvKvt6elTZF+Td9Deen5uanFMrUM9qw90A Y4mA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=jJY9wmJfxGQ8VasD4qGMH7xFl9CDHNmA4vLwHrY+rMg=; b=wph8N8fTkGzXvQLMMet+EvPx8unOt5ATDpExGAfs2oAt8V93xRSn09wXETdjmkIdbl PNFrwBLt7b+7zVZ0MypO8/pONJsOrs07ExPcxG8XWJ1cf/6ddLcHOejyhLo0ZK8P9Qgt npv+Tk/KmXrWiBDAC8cfqDeqsUDTvQ0D/LwjqKTgPkhHPbi8i4EryaSmaQXyQ7Drmdeq sTVYtQ5phIwp3q+mVfpK7xcHA71KasccRGn9Ua9udYZ3zflQJ0U4KvkUYutM23O9sSWs mJ/DZW1mgGF4/XmC/S5vhqbvTai2KNk4/4JsogKA6DzxGGCLyM5QFrhc5TvKNifnVj9c cA2Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qX9boKDl; spf=pass (google.com: domain of cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=jJY9wmJfxGQ8VasD4qGMH7xFl9CDHNmA4vLwHrY+rMg=; b=DrRMZcR46As2wOgQg9OYRmkSkYwqKOSaNjSsaNKW8pNh1iPqq2u6ZoSyHrYExDzAhx 02Bij8UTAhKvVthKO3DWhL93v95/QzIrfbptEW2vNV+Y5FIYJrwZDoMI9S0/QlXCaY5q piBMX4P70wIDaxXK8yrw1YUL826eC2/T0+eCeCNuzJPz2idpU6UOZLyVby9xFG8hpVxf wbd18bVTR5g1SiQYRJblpT5Pq7DF2U5+tAe8scFEclyF1TzQFcXyGeWJ5YZh/7mQhqp7 hbpqUbLo91/TLyd0Jn4qElTtbTO4W23TCwANINBk7+fOAaYZK9Og4MceIVJt99SiLik0 eykw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=jJY9wmJfxGQ8VasD4qGMH7xFl9CDHNmA4vLwHrY+rMg=; b=YkxUMeZ8eyA7mnFrU8C/TcZvJCDRKWklFos6cxKF9AJZnpGiyC/JZKFuF+p6SNCUCC EL7iO9EgSzXYWvMu8ZE9vBhNYHZk3IRuQUHhfFuYqpIIaYgUYvRle0UjIo6TGJmYPY3t E+ZvUqJ6VFoGt7UsQaCvG2+adfS8s2Co1/5PAb3f8S9+nLy/Skmn9l6Qj+IDL/6Xr81V S85HpmspCQfPDNzE81o/ILCdJPpw+DWwSaxgUsvhFmc6bSUpbfJDKLUrz6Taox5v6CZa aT0DyGvnFk0wkpc+gw/syt4vcVXKv/8WnAvtutKIhPFjQr+SjPoPyx3DaBw8Ap5buWIO nsNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=jJY9wmJfxGQ8VasD4qGMH7xFl9CDHNmA4vLwHrY+rMg=; b=lXbJAK3qpQsNNJzizdW6MDNMli6lYkdUOKn6orUXHgOIdCACx+Hf02OfCqkW6/FJf/ He4SmRcbsdYWvtlmFGA5jlrUTd91Wn6y9+RuAd7eQK2h51ycQudxwX9vDZYWPv5rPAI/ /uUlHS4AkLFNTXhtZDzbWkhgJSajxzjYoMtHLzGRYLXOsoXEPnOKajpZEP8Qa1uYh3b0 nButk4nCpbueL234/HZq8loqIlaoEDlBPHJYZhA8hJQr0XdLIbJwsliBXNLLo9h1dGQD J8oc8lx14gb9mQAbQ2Crd5MeVmnz0iZrz+rHcZGdaKKmyF15QxZ2F0l1XTLZ+3/NVps3 XW0g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533FEZLHmr1R1J+K2kT0UUsLlU+mleMp8kwi5goYdv4Hmb+F+Ipt gUvOoCMXJNvYIki1uihqZEI= X-Google-Smtp-Source: ABdhPJxkzPCRlg8757SigZ+Wd511c21/Ugx69h9I2OwQq64OSZk1Olii3wXEhdg6s6+hQGRKtmaLug== X-Received: by 2002:a05:6000:1867:: with SMTP id d7mr60928910wri.21.1641722445555; Sun, 09 Jan 2022 02:00:45 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:3b45:: with SMTP id i66ls191185wma.1.canary-gmail; Sun, 09 Jan 2022 02:00:43 -0800 (PST) X-Received: by 2002:a1c:4c19:: with SMTP id z25mr4230642wmf.173.1641722443101; Sun, 09 Jan 2022 02:00:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641722443; cv=none; d=google.com; s=arc-20160816; b=nHVxMo9f3U0gyhVPTDjXz9lEaBMk/FLDoEfCZRycvC8fYlgZ8pI8zu1sqsrZfC1p/G mhVkWAB/8wbmxkQCZEtENCMQyDXcutS55eWl0ylN91x9D8TZ/xiDgCUf6ct12yLnb7c/ NKQUg8p/QuJlKjUN8fpXM/L/eteiS4a7q6bHiZ1BtB/iVTQKcvJXI4S88eqS4C6ORHi2 b2lTjtqrF/uIhJufSR5qqSGJZqiU7468Km3FwLaFaRm9AfMk9GelPHYIiMr4gqlbS/Km knAeUCN2IJCweC3UTAvddQqT2UJnp/IxLL1VLflnmOOsJkPBEvH9GRcPna4s1PUgXzMU MHhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+M6Xul+q/M7AxGDYkZocRThwonMN7WBS9eypUU0vS2g=; b=cFNZClliIlY6Q6JjRZe4Ho3SCZcvgNCKkld7XP8Mg16xUP2TMLDRIY6jf+1neYt9lM hItGVO+Sgqsg5ii0Loshbt3v9PVBmrXqwgv1/GAbNt0kmtmojVXbu+BHx2FhOGQSi66m L6V8+KXf5Ir85Ro6dwGgo8ytJIQIFGPFbrTQrlqHUOcd+5YvwfDj6Vqb7uLz9nwDP2X4 Ah3QbOCVwEV7HSeylpWaA56pqofLITvTSBk7kQRAw9uZdOdCmK+6ZLpbvoUIhdKWSt+V y2us8ILYH46WTqYS9x/W/rCAXUM8hjbdacHBf/xPNjZZLiswTHUCAg3LO4/LLIGmJ/Sm Ewrg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qX9boKDl; spf=pass (google.com: domain of cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com. [2a00:1450:4864:20::32d]) by gmr-mx.google.com with ESMTPS id f14si215344wmq.2.2022.01.09.02.00.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jan 2022 02:00:43 -0800 (PST) Received-SPF: pass (google.com: domain of cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32d as permitted sender) client-ip=2a00:1450:4864:20::32d; Original-Received: by mail-wm1-x32d.google.com with SMTP id x18-20020a7bc212000000b00347cc83ec07so3191516wmi.4 for ; Sun, 09 Jan 2022 02:00:43 -0800 (PST) X-Received: by 2002:a7b:cbd4:: with SMTP id n20mr17595173wmi.125.1641722442763; Sun, 09 Jan 2022 02:00:42 -0800 (PST) In-Reply-To: X-Original-Sender: cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qX9boKDl; spf=pass (google.com: domain of cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=cassandra.lyderitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.io gmane.text.pandoc:29933 Archived-At: --000000000000054eb805d5234b2c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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! =D1=81=D0=B1, 8 =D1=8F=D0=BD=D0=B2. 2022 =D0=B3. =D0=B2 23:12, BPJ : > 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-LibreOf= fice-(and-Word) > > /bpj > > Den l=C3=B6r 8 jan. 2022 20:10Cassandra Lyderitz > 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 blac= k. >> >> 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 we= re >> 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 Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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 >> >> . >> > -- > 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%2= B4xjV9skk4dMcE8HPTNFkFrdJQ9Nw%40mail.gmail.com > > . > --=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 e= mail 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.g= mail.com. --000000000000054eb805d5234b2c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks a lot for your linkful answer!

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

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

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


=D1=81=D0=B1, 8 =D1=8F=D0=BD=D0=B2. 2022= =D0=B3. =D0=B2 23:12, BPJ <bpj@melroc= h.se>:
The links produced by Pandoc should have a named character = style applied to them. Follow the instructions at


for Word or


for LibreOffice
and modify that style however you like *without re= naming* it, then use that file as reference document when you run pandoc as= described in the manual

=

There is a wiki page which I = started once upon a time. It should still be relevant


/bp= j

Den l=C3=B6r 8 jan. 2022 20:10Cassandra Lyderitz <cassandra.lyderitz@gmail= .com> skrev:
Is there a way to format cross-references and web hyperlinks differentl= y when converting Markdown to MS Word with Pandoc?=C2=A0

On the one hand, since the output remains digital, I definitely need click= able cross-references to images, tables etc., so I need to set the `ref-hyp= erlink` parameter to `true`.=C2=A0
I need the clickable cross-ref= erences not to stand out from the surrounding text, i. e. they need to rema= in without underscores and black.=C2=A0

On the oth= er 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.= =C2=A0

However, in the proposed sample doc templat= e, the same `Hyperlink` style is governing the appearance of both objects. = I have seen such unused styles=C2=A0 as `Smart Link` and `Smart Hyperlink`,= but do they mean anything to pandoc?=C2=A0

Thanks= in advance for any response.=C2=A0

--
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 pandoc-discuss+unsubscribe@googlegroups.c= om.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/60a0cabf-884= e-452c-b094-9f6b1a9f546an%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://g= roups.google.com/d/topic/pandoc-discuss/vjdzDYCUqxY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to p= andoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhAW8LSVGBS5= 6UmSM%2B4xjV9skk4dMcE8HPTNFkFrdJQ9Nw%40mail.gmail.com.

--
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 view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CAGvXcu-zzXFuVvb_bXQ-GM2X8JbSgFbNbjFn-kNZ= XVcdERUKxQ%40mail.gmail.com.
--000000000000054eb805d5234b2c--