From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27244 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Creating links with citations (e.g., [some link text][@Smith2020] ) Date: Tue, 15 Dec 2020 12:20:26 -0800 Message-ID: References: <45d39007-b396-88f2-b76b-269e5b16bfc4@reagle.org> 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="24364"; mail-complaints-to="usenet@ciao.gmane.io" To: Joseph Reagle , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBGFV4T7AKGQEVK5TCXY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Dec 15 21:20:44 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kpGoN-0006BW-Jm for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 15 Dec 2020 21:20:43 +0100 Original-Received: by mail-oo1-f56.google.com with SMTP id m1sf5167830ooj.23 for ; Tue, 15 Dec 2020 12:20:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608063642; cv=pass; d=google.com; s=arc-20160816; b=j8NIHMmQupuf86gM3oTH2OsP5bb+iF6MfrOvi+whXXlM+Neza8a5awLDu6e4/Ou8vD 6D/BGSJAQmQg3WRizAVVBV1bHG9PZ/ka+4DqdohAB0RDpZHI0O8SdrhQpQQQyRrD9eYV lT4sogkZAoMGindSIcUvuogE3j1XooJX6vZMDmwOvxr4H+XyDuXPfmyYtM1X1n8UZvp9 WaQxZRY8SV0/MTSeWylNt4IlfAk0f/BpzptUsRKl50GkxqbKvN3Z+ZB34jkHRNMPuD9V +ioaWlNcSo4cDZeGmSY5lF3YpLGymKjBqosH3U2PYqfN2hSggXRqwsN4F7+IPOxblyO5 gYag== 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=JQ9t5q02sBPzdFoWaeV0DRM9+3jFrYcETeiIhxg8x04=; b=JOY+3Pfy1m9q9wVcZUK9/u8sn93l3hXgPHqZ94jzptdtTMDqMPuxiwqlLc+VsuX1sP RFJwTdOCyBiqZN2UcBJ1WPzpAQZ3i9uRLw7bkaP6eW14mW6tmhWAyjxHiqNWBX/uQv8w 2zaegR/OP8yJqD2XTrFem6GCNh7ROMLfc9XA0xdKfgdJEqRQ6eJytNDBL43J+3QZG8Fd ECx2XTrm5YpWmVaeBC5f8NjbIzQhg3/oJffNaYDvJ43HQ5vZ6y+zBCIgckaTzanKmdPb XMFNXUHIcpXLOxNIKsaFsdIaOvN9IAaIe5isWIbiSodKLDmIlUvdK0td1TSXF2y0zcCy vXiA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="izDD/Bmm"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::431 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=JQ9t5q02sBPzdFoWaeV0DRM9+3jFrYcETeiIhxg8x04=; b=XeRZsLoiUncJs7vokwz52giA8HDJKPmkmekq7TdjFBtxJpuQ/9ofeX4UU3C/Wyg8B8 Hap6NNwC04AkCmSj7DEBic5zbZTyfHj1B6bf2SIjvU28ydj9qTH/V89zgniqpvQQTvV/ ysQwrCZHdZ8ig2uYr9m6/VnzZDiQw31Wwgk0jZ9j/0E4rC8zrWeeM5JczapgOPEpki5R wOHU/78zfQs4bceeTnmENqV+2eyPKhX4CHR2xp4MN/BX3p92cCowh+04vWykeQO4n7M6 2cfEyAVC+9Rzn74zBxp+Wq6k0R0ciW6KQe4ShjFZxdvBdqEqY0++dXRBubdpcxPJDJIp ryLw== 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=JQ9t5q02sBPzdFoWaeV0DRM9+3jFrYcETeiIhxg8x04=; b=bxWOQBfpXFDY3MWlPsygTSIergsj7p4LfssC4ALfyZMfgwpDH1Cb0FyhYtP3HiGZ64 lMpliVttMoNrkvp8IT2GC82PttNim+JuNtt/i2yCnKhyc8ioAMywrnRu9HqT3B6v1D2a aqr34Hk1r5Bke8g7vOFG0HDY6VeS0JDY7i1YjQvxjJvZn8Bjo8KXkK+wXtaPUr0v9IkN 0BCQg37N+lYo3a1NEiTtoScKHTmy+i0PlRTKQyEaIqCFjzHpB/Kt5QRqoaROb11M7TNJ 0nefmvkNgaoWkxi0yy4G/x9nCu0/Ed3rVIG6J3sp2LjUx7WVE6gUROxIKuy64NdMIMLD ssjw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532fIoDAR0cGl14Y+kSqjGQZLYTPs/llzscpisWZV96SaSwuUWPj E6j3kLgAZ9XDsobDk86WaG8= X-Google-Smtp-Source: ABdhPJxVHnVYG5KnZIBzGpgvJH6h+KeGY4tvCy6x7iVEYvpQAJLIhYD2N5JbV7hd9K9kIHpNps4t5Q== X-Received: by 2002:a4a:aac4:: with SMTP id e4mr23637524oon.2.1608063642654; Tue, 15 Dec 2020 12:20:42 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:aad2:: with SMTP id t201ls4839214oie.1.gmail; Tue, 15 Dec 2020 12:20:40 -0800 (PST) X-Received: by 2002:aca:53ca:: with SMTP id h193mr409526oib.122.1608063640061; Tue, 15 Dec 2020 12:20:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608063640; cv=none; d=google.com; s=arc-20160816; b=tldx9LXN7Q0HxVO8dotBJB/YDwSkM5jEoBx395gNhyi5fkh+b25t/9eDa6Zu0AxXA1 yzqf0u94N/wOWgoP+mAojwIgJouLmszOGR4DE4eUKUSPn0HgZIrTRLxchUoMakahDi3L 2UKBwcoIF9jslb4ZhvCEOKgIjOPp9K3Q/AB/YvWyYnajlbO0KEu1UqIWQ+6SwAPkmMPO MnzVT91esNT2EZcg7A5Tqx5ZcC5FoyK8YqInPWJpIsN/aSjiLBwcwAE1uQ+xdV0cLq37 IruIAmV3ynh5l/N4wWp0AKLbMt1A8js7cJBp25YlhZ322UYGrMYD6J0qeTNtba5l0bFb cGHQ== 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=OGfZaY38HpEPfjY4o9P4A9AjgMzetfbyoQQIK+DdP0o=; b=J5luNVuxvAIpnzf4BoGU4R6xUSvu034eMT1xp5aKYz5nfMxzISJwrO2PwyL0zmenot Y/t5Py9MwKpAJdFIsUs2fdSztHJ9jUFEMz2esrwAgzAtlqzw3q0rPjeTGPHlm5KeNr4S EYSzQDjx8EdwxDX3ghrF5kwxJoitsOsK2WMe9Yml4myJ8MwDK5Zbu8WbK4KCzVrESSBe qwuEhydhsLymQD4fazhXCy5xKxk9ce4SKqN2h3VP7aIkPr9EPpcvZYw9iX5vOhYJf+Ta +ptVHJm8u7SNtLIChzRxZRvqItYZOdyEUffAecUrL9FiE3o/hiSWFcz8WG7t7aeWVxvw Plkg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="izDD/Bmm"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::431 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com. [2607:f8b0:4864:20::431]) by gmr-mx.google.com with ESMTPS id u25si1492224oic.0.2020.12.15.12.20.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Dec 2020 12:20:40 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::431 as permitted sender) client-ip=2607:f8b0:4864:20::431; Original-Received: by mail-pf1-x431.google.com with SMTP id 11so15173367pfu.4 for ; Tue, 15 Dec 2020 12:20:40 -0800 (PST) X-Received: by 2002:a63:2153:: with SMTP id s19mr30162253pgm.221.1608063638754; Tue, 15 Dec 2020 12:20:38 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id q9sm24597833pgb.82.2020.12.15.12.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 12:20:37 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 64D05A256; Tue, 15 Dec 2020 15:20:26 -0500 (EST) In-Reply-To: <45d39007-b396-88f2-b76b-269e5b16bfc4-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> 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="izDD/Bmm"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::431 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:27244 Archived-At: Just create a tool that produces a list like this, for the items in your database: [@Smith2020]: https://example.com/whatever [@Joens2020]: https://google.com/whatever ... Then pass the file to pandoc after your main markdown file. How, then, to create the list? I think it could be done using pandoc's templating system, if you have the bibliography in YAML form. Use a template like $for(references)$ [$it.id$]: $it.url$ $endfor$ Joseph Reagle writes: > I sometimes find myself writing for a popular venue where citations aren't welcome but links are. If @Smith2020 has a URL associated with it in the citation database, it'd be cool to do something like: > > You should really read [the excellent book][@Smith] from earlier in the year. > > Anyone have any ideas for achieving something like this? > > -- > 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/45d39007-b396-88f2-b76b-269e5b16bfc4%40reagle.org.