From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28562 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T. Kurt Bond" Newsgroups: gmane.text.pandoc Subject: pandoc context template forces linkstyle, linkcolor, and linkcontrastcolor off by default Date: Tue, 8 Jun 2021 15:49:34 -0400 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bc28a005c446756b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34299"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJYFKFHUYHRBWUT76CQMGQE6ZBOLQY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 08 21:49:49 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f191.google.com ([209.85.210.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lqhjR-0008hC-8X for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 08 Jun 2021 21:49:49 +0200 Original-Received: by mail-pf1-f191.google.com with SMTP id b63-20020a6234420000b02902eef086465dsf3740963pfa.5 for ; Tue, 08 Jun 2021 12:49:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623181788; cv=pass; d=google.com; s=arc-20160816; b=AkoOlCGI0JdjJEVQvbGqLgvUJzkVR7UfkACeJnqOIvW51kdfkB5uJe+qEzba1cmqWW 6pvApP2H+Q7+EcIG5SzZUt4sEOh2oxk2cLBqaMsRJ4HEU7IHSH1IRck+5SoubQSKDXvj ppstT79g0JpUR1QDhIIjF+hE4QYlv63mLdJf/sTZj/LZAVTDxz5wFi/Ts/vRQGAP9LXK C6jDVyxMTOwpsmbGpumDQQxxycUvhOt9LBuFiGJsg+3lXR5tFja4u8pL+T7bRsuLxMAa HsY9zbgJgceRRSBj3EfuAMps9LOJ22OWWpR6ikfl2WzAqRd9WcgP6mN7TseEnYNjZz10 dt6w== 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:mime-version:sender:dkim-signature:dkim-signature; bh=UQNNSMVYVkr1bOXSimOT0ys6iOpJPyEpKa1TTxu9UZ8=; b=DURQeVoGnL+exrfmF7wBju8hfJXDD3ii5Fz7Ob6CyAYTApcUGiGR12G8PcV3PJ+zOs lhk60C93Be9KQs0QfmM7AIM+o09WMFeo9LKGgIBtNCl/yDZJW6UVm6r/Mbb6CcxoDgD9 2fVdaUKrQMOTAHOijDcPmPeqeXd59QuWweuUUgfixCFFEFk2CMoh8FncNFNK5kDy1r3i D7ekgGNfQKXn0wet8oOFuV6vcVbunXpcMil+vjJkax7QeGUEGer1ziRiuQtnZx5/OVKR tQTWo5WIF9qFcq2sIL41wX1yACOC89nf6sxvqGb9G4sTMiaOeNZT1w0459ySuJED3563 88Hw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IY9Lp8GW; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::130 as permitted sender) smtp.mailfrom=tkurtbond-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=20161025; h=sender:mime-version: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=UQNNSMVYVkr1bOXSimOT0ys6iOpJPyEpKa1TTxu9UZ8=; b=dybDgZycZLSWoe7y6uVXOmY8aZ0shHNbKG/tW11uZVVsvjORCgakJSL72cSNndKawy lg9D4tbPYURNS66tAD/8xocfwMCMYFDxNczutWSue4HGBjmjXZlt26/NjPDbXqD5UVcl BlOeYOrK8YU0CuN99/SF+r5yynfdgGjCdyM1EPDLaMRhuPtSYk42raxE/L7XWsEJ25rb N1QxBdN4rQFP7viFahnpBQETiYCHWYdKITMnhSYFi1raqcfBgdsQrk5m0xB0qTWstgD0 WDh3r3pKOCIAzYRIuabEwMVxl01iAlD7zZhKc/pWplqzppaxZfWsx+bT3mTCugKf3O5h BIuA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version: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=UQNNSMVYVkr1bOXSimOT0ys6iOpJPyEpKa1TTxu9UZ8=; b=f2Bzzcb9+x3S+M31MfC79MowPHmYu1kx7Ff3D+M4scS5iCILvUVB1cvlkFzD9ow73u kheqO501pEWvx2qHRGChQRHMnM9nT7uHDEJ6p9ytyURElwEzxjWtXEYtmTJ848S0TYRC BUDVnU1xLDpkaEiNkoLnSQJI/7dmmdf7nio9QlX3NUlQ/+vAmO1awFMTnw7R8CeUGq03 pO367mvyR/fYTWqZabJkL7jQuQbGIZAttPcJILRiQG2eRcjs3Tglb2NajWgQ3xGbmfwK KO6gdrGwGrtResv/6Wq7LGRffMNY7ImhN1fe/TU8ZEvhWkTprfOAjS+IvbKvWvo/F2bb GOlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version: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=UQNNSMVYVkr1bOXSimOT0ys6iOpJPyEpKa1TTxu9UZ8=; b=gEV9kHuB8TeVUw7yrClMdMGDeF6GVXLC9+/izMYz19rlyOE1Sn39PS2Ky89gFfbqG0 Yu05hTi+J5R41GKc+DrYFqy9nI3p5EwHz2avWfcpelHWK3jO8wokrypeqRmHDnhmiU88 CCQQW6pumA+Kz72aS+2gEz/Z5H12nZDU+b5RhasBYKyuwFpETMU/1hFsXElAHUpDGgjP Akx34UUqx1lpMSE9x36D85R/QtpaiQNkG4U3oWWLdeayCY4TzddRWwI+N4SgTs6RpWbB U9OHDHHXnWgHLavIJeMx8IMRJ01BOrbAiF0lZj5RVBUZ8kpogiqYXOBuqo+NJNHU1Bx5 juIw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5328ocd/nOXWLdMr+hjDPczxXR3r8pUihlpCtTHpJhpNwUc1mJZK DFNbyjbHEdRhCkd92XcV2h0= X-Google-Smtp-Source: ABdhPJwXBjqlI301XWjlSykhZKVhqG7vJCxygdqLIh+Oz1wJB50YZlowoU+uccBDBC7X5d4zM4aAAw== X-Received: by 2002:a17:90b:3593:: with SMTP id mm19mr6528389pjb.28.1623181787985; Tue, 08 Jun 2021 12:49:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:b256:: with SMTP id t22ls2400665pgo.8.gmail; Tue, 08 Jun 2021 12:49:46 -0700 (PDT) X-Received: by 2002:aa7:9983:0:b029:2ea:2408:386d with SMTP id k3-20020aa799830000b02902ea2408386dmr1332239pfh.13.1623181786198; Tue, 08 Jun 2021 12:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623181786; cv=none; d=google.com; s=arc-20160816; b=ZxO0i/RB6XEmG3c6FNscyL6+Pu5Il7ji3LsABEIyz478a6hx1cQIeBz6oT1+eX7P4k +00wYUp+dfO82n2/nKb8FzaSDqfmYX0e6eTnMJmwjDAYPpsX3s8BlNvBagGoQkcuNNGV vS669hiDz1azwBD5dzVyH1Q6ldWn+4+hkyUgcfP/Duwqeu+oKs1rlicxNkl90xbEPItG vokIzPy3IiTKw7Mh4u1/aOIbNa2LPn+syzr7WVB+S+aTGaEdJGeqvRWFxzTNgMD9PGD+ P3I99jtrm467mxFqrJjfiGUJqPb0bk8UA3+icstDHMGv0wyNmsecYXbEF/+IVz5miMT0 ftMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=28tZZJy6EjTBRP+M6jpmjeeN5BvWUkG28ruZ2PwlCSc=; b=FRWfRYOd2uTxJn1ua2fFnqDM+iJZbqTD0HpKSt7vNAB4bNfJdRzuWXp/g+iTrCHCYB ly4lLKfY0kPBu9LlE0dj2ubNpHP44gb4SUFULwohZv45shR50xQWMMnLWO2gk5Hw5uGd 43MA6lL4SgXEHJRNYQ7dBH/wQpbymgaRWJmqMf0wmSee16sP4JxvFXYYAI/6r3nHtAGC nuTFaVqm1Qxcp4WDOuCc1riKRkz3KF4Nt7AdirAqxMNuKyzchcxtEqCndivGmJhIqkEM a17GIZp+TRbbrbv852f+yACtaa9lfUGMBQyCPnVHwD3uQL8LVE1VAshuFLjITAnduhXu 6+8w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IY9Lp8GW; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::130 as permitted sender) smtp.mailfrom=tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-il1-x130.google.com (mail-il1-x130.google.com. [2607:f8b0:4864:20::130]) by gmr-mx.google.com with ESMTPS id c23si1763531pjv.2.2021.06.08.12.49.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Jun 2021 12:49:46 -0700 (PDT) Received-SPF: pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::130 as permitted sender) client-ip=2607:f8b0:4864:20::130; Original-Received: by mail-il1-x130.google.com with SMTP id v13so20940771ilh.13 for ; Tue, 08 Jun 2021 12:49:46 -0700 (PDT) X-Received: by 2002:a5e:9306:: with SMTP id k6mr10324389iom.157.1623181785572; Tue, 08 Jun 2021 12:49:45 -0700 (PDT) X-Original-Sender: tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IY9Lp8GW; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::130 as permitted sender) smtp.mailfrom=tkurtbond-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:28562 Archived-At: --000000000000bc28a005c446756b Content-Type: text/plain; charset="UTF-8" I'm always surprised when I produce a PDF with pandoc via context output and the hyperlinks are indistinguishable from normal text so I can't tell where they are. It turns out that the template for context output unconditionally sets linkstyle, linkcolor, and contrastcolor to the values of the variables $linkstyle$, $linkcolor$, and $linkcontrastcolor$ *even if the user hasn't specified them.* This forces those all off. Here's the code from pandoc -D context (pandoc version 2.14.0.1): % Enable hyperlinks \setupinteraction [state=start, $if(title)$ title={$title$}, $endif$ $if(subtitle)$ subtitle={$subtitle$}, $endif$ $if(author)$ author={$for(author)$$author$$sep$; $endfor$}, $endif$ $if(keywords)$ keyword={$for(keywords)$$keywords$$sep$; $endfor$}, $endif$ style=$linkstyle$, color=$linkcolor$, contrastcolor=$linkcontrastcolor$] I think the last three lines should be $if(linkstyle)$ style=$linkstyle$, $endif$ $if(linkcolor)$ color=$linkcolor$, $endif$ $if(linkcontrastcolor)$ contrastcolor=$linkcontrastcolor$ $endif$ ] instead, so the style, color, and contrast color are only set if the user specifies those variables. This way the document gets the default ConTeXt style, color, and contrast color. -- 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-hvWkLtcDMqJy8QZCvKK18TF%2BO3Uyf%2BgWtPTeubtRxWA%40mail.gmail.com. --000000000000bc28a005c446756b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm always surprised when I produce a PDF with pandoc = via context output and the hyperlinks are indistinguishable=C2=A0from norma= l text so I can't tell where they are.=C2=A0 It turns out that the temp= late for context output unconditionally sets linkstyle, linkcolor, and cont= rastcolor=C2=A0to the values of the variables $linkstyle$, $linkcolor$, and= $linkcontrastcolor$ even if the user hasn't specified them.=C2= =A0 This forces those all off.

Here's the code from = pandoc -D context (pandoc version 2.14.0.1):
% Enab= le hyperlinks
\setupinteraction
=C2=A0 [state=3Dstart,
$if(title)$
=C2=A0 title=3D{$title$},
$endif$
$if(subtitle)$<= /div>
=C2=A0 subtitle=3D{$subtitle$},
$endif$
$if(author)$
=C2=A0 auth= or=3D{$for(author)$$author$$sep$; $endfor$},
$endif$
$if(keywords)= $
=C2=A0 keyword=3D{$for(keywords= )$$keywords$$sep$; $endfor$},
$en= dif$
=C2=A0 style=3D$linkstyle$,<= /font>
=C2=A0 color=3D$linkcolor$,
=C2=A0 contrastcolor=3D$linkcontrastco= lor$]
I think the last three lines = should be=C2=A0
$if(linkstyle= )$
=C2=A0 s= tyle=3D$linkstyle$,
$endif$
$if(linkcolor)$
=C2=A0 color=3D$linkcolor$,
$endif$
= $if(linkcontrastcolor)$
=C2=A0 contrastcolor=3D$linkcontrastc= olor$
$endi= f$
=C2=A0 ]=
instead, so the style,= color, and contrast color are only set if the user specifies those variabl= es.=C2=A0 This way the document gets the default ConTeXt style, color, and = contrast color.

--

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CAN1EhV-hvWkLtcDMqJy8QZCvKK18TF%2BO3U= yf%2BgWtPTeubtRxWA%40mail.gmail.com.
--000000000000bc28a005c446756b--