From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28574 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: pandoc context template forces linkstyle, linkcolor, and linkcontrastcolor off by default Date: Wed, 09 Jun 2021 15:28:51 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23187"; mail-complaints-to="usenet@ciao.gmane.io" To: "T. Kurt Bond" , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBMEBQWDAMGQES2YN5HA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 10 00:29:07 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f56.google.com ([209.85.216.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lr6h9-0005rB-4e for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 10 Jun 2021 00:29:07 +0200 Original-Received: by mail-pj1-f56.google.com with SMTP id t10-20020a17090a5d8ab029015f9a066bc3sf2373859pji.2 for ; Wed, 09 Jun 2021 15:29:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623277745; cv=pass; d=google.com; s=arc-20160816; b=KVrbWfNnFqtskyb+hMo7czkcNftA2KFNlWzNwE9igj4krM4ZtFpv0ERdHaDDTAw8XZ I9bK2U3plAynmdQNeJLF1c203CCUUR7k49+yPLkm1D+1phgpqL0AsjHX08/y9SgoM8uA aP+yxJsRNt/TRF0xAe18r+yxJ2MDaeHy/oOIhfVrBI/GLwmxVYJC/GpQnfRxGKCzjaKe w31HAYkxGXa5F95y41YN5v/zjoEDNLfMbWuUpW68BYqo4rWNGCeGqDIWbqqd7N9mhT7d mde6vjQPN876tLOeluoYoEM8Cg/grpv8TDpjzWxoaD4XUFH8VxDEDl/EUwPARdJAxvyY d5lw== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=HkDjkDXtIfR3lZhvdTfoADVBSCeqju67HlDmGsMNeL8=; b=BExipbq5nkYvQhyZQDLmvb3+Ch5vAv7q96n885hbpzKQ5XqvAbbrLOhlNNprEbyazi C1S/uDkfsCyRVOXh4V20JXzCcP+8M7iXoGgmb+6yF4RfYpSW1ocneKUPFc4zZMpekipV XhdQjGpIU7kCbKL2jrPe+8SXIXqjFLxX5qCJm0Unf+DaWADrcwxqoDOCM+VUXxKOBX+2 86rECrxGTZz6/vVByETdN7lp0wx93O2AEid+RaDkJYvasGZFFp+yKpN7NWfCbbQMk2pJ MFxL8XqWffuQoeR+5z2tNZZVqCwhV8+6u9czv9SnZIiRft52BuOGXrCb4aKFABlfF/5y DfUQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=xEFqaJXD; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::535 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=HkDjkDXtIfR3lZhvdTfoADVBSCeqju67HlDmGsMNeL8=; b=PJe7lppE2rAM1I8puYc2qa8flXhC/YYd3NJbw4ftnn0uuISh/+RJ6jqBBwkZhKvNNY I5cKZDMtjqzvTQw1yGZCCgWaZelrQHurubNYto4VUACeGWOxgVZrOU9nldFRuogbnEko bPhK0Enf0/q+ZDNtKJK0n9HClD3cyB3/hnM2phwIbroB3O0CToKcFi33CKbpVLWkC5cj C8uoBBIsWTB6zrmDwl8U12jLVBSzlX/i7jg9Nt8kjhL8I4O3IcDRmh+VeWWRRIk0D8eC J7wnAugVZpc6hcqt46Tj+g1bV9Kz1It8tJ4ETJgI/Q+NSemNUvaUhuEEX3Hg/pk8VIL8 hThw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=HkDjkDXtIfR3lZhvdTfoADVBSCeqju67HlDmGsMNeL8=; b=iWOyqXzLDU3DsGoP74y7ELLW6qOTyartr3y9v8chSHHkpVPC+owGUaByU8LGfxIl2n JnXsTwIQ0O24me5FH99V+YvG7Amb+ldiQmEkTrrKLi83TKSDsnrY/UPSRjIooakpKw1f eKlk/tbKPrqvRHTW0MxTtUFTUPwmtDyZDUaTuWpXT7LmGRqh5el1D85zmeSrYWaU7SZc dSSoA3sPFQ9oekgGyHO0kmNcA9pNpHPCcogpdW003N+wAi2cKku32rB03XKV12l59JNG hj1DtlXPCy+Mxgt/jUEIA27CRdaYqFRnpzNzY8oegEmNkD3nrI5YvmhNiXg2MTHUlBqx B8fg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532pFjYNeDv9ICDGXivTJ5iKPR7J4w0MZCmsbdim4+ElfvOKZRTx uIMNo4a6Y0/HlKs4hLcBTqY= X-Google-Smtp-Source: ABdhPJzjVseEeGq/hKJDPkrJRu8cAntPTueAr0WB9Ef7h9M0Spus6kAZWB84b+Z38/2sAPnW12VTVQ== X-Received: by 2002:a17:90b:3e89:: with SMTP id rj9mr1833297pjb.114.1623277745569; Wed, 09 Jun 2021 15:29:05 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a65:44c8:: with SMTP id g8ls1827930pgs.0.gmail; Wed, 09 Jun 2021 15:29:03 -0700 (PDT) X-Received: by 2002:a62:2e04:0:b029:2db:4c99:614f with SMTP id u4-20020a622e040000b02902db4c99614fmr1960978pfu.47.1623277743322; Wed, 09 Jun 2021 15:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623277743; cv=none; d=google.com; s=arc-20160816; b=v8nUHqW2A2LJlrtfhDNu7IpC/+wtuLDO5CJI06C8BpQItN779sfN5GFqMiAseSRAOy mKA4Zzhjd7h8i7uRUqEge22ppx36KrHG6C/6Csq9AjtrBlWICp2anzMUoyFrv8IemtWq cufJWjzsgPsWC+VH1eD81tjvs9L+8mCbkTUgypIT8/ayNlFCXW6UphjbQkZQrpaTXi5q olwX/xOC2SXEdWx3ZAx0ty5+QnUHJ1YyFG3DkKN+OdylW0IXt35SCiIn5iWeIcBCCbyH QhPed3Tzp989xn/XY3kpXCbyikK7Sl9bISC/PzrxmhA6yI9uj2be5DjV6G+3CKmyv4fQ RWiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=yfnKv4xtGB1TzWh3/fRADUrZcDTjEbfGOmeeGWL5y2M=; b=wNoE3bGKx/wkmEci4qLsY01/DzIkGVY+pMvMWPW7GQcjRmD8pKx6V9MRcLVKW4cZO5 27Kv0yRF6A8Abyd0KdZGv2WaceJUZYtTHaY6NIeb/empVgixpo/6gdlo7g0zv9kyCyBu 44ElJaod9/TWUzRVtwtpk1EMrLnr3JM2TwzkdlP8Vf5cSZvnM7iSySJj1tWON+A/QTE4 DUuJig06ZWu2grBGARAziWFgP+XKM+NsPyK+1eRQSk1b+Nz/MvcnLyAfBFyzZRqjiOSj i9yyLe2jfHR3O0golXihsalT4vzDJf1udKxtj27QFUJvNFQSl2puw1nRoyJquYfY+6CG S0SQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=xEFqaJXD; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::535 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com. [2607:f8b0:4864:20::535]) by gmr-mx.google.com with ESMTPS id x27si19958pgu.3.2021.06.09.15.29.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 15:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::535 as permitted sender) client-ip=2607:f8b0:4864:20::535; Original-Received: by mail-pg1-x535.google.com with SMTP id n12so20885171pgs.13 for ; Wed, 09 Jun 2021 15:29:03 -0700 (PDT) X-Received: by 2002:a65:624e:: with SMTP id q14mr1809778pgv.103.1623277742840; Wed, 09 Jun 2021 15:29:02 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id ca6sm588605pjb.21.2021.06.09.15.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 15:29:02 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 5519AA23E; Wed, 9 Jun 2021 18:28:51 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=xEFqaJXD; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::535 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:28574 Archived-At: The current behavior is consistent with how things work with latex. Rather than using the defaults, we specify black unmarked links by default. The reason is that this is best for documents that are to be printed. I can see arguments on both sides, but the current behavior is consistent across formats. "T. Kurt Bond" writes: > 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.