public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Cc: Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
Subject: Re: Creating links with citations (e.g., [some link text][@Smith2020] )
Date: Wed, 16 Dec 2020 08:12:29 +0100	[thread overview]
Message-ID: <CADAJKhBjot0Ujq+s1pNOHrA1JJZLfmVKOzfk1UK7xyfgFDQdMw@mail.gmail.com> (raw)
In-Reply-To: <m25z52yg6t.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>

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

I think you need to include the `@` explicitly:

$for(references)$
[@$it.id$]: $it.url$
$endfor$

-- 
Better --help|less than helpless

Den tis 15 dec. 2020 21:21John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

>
> 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 <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> 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
> .
>
> --
> 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/m25z52yg6t.fsf%40MacBook-Pro.hsd1.ca.comcast.net
> .
>

-- 
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/CADAJKhBjot0Ujq%2Bs1pNOHrA1JJZLfmVKOzfk1UK7xyfgFDQdMw%40mail.gmail.com.

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

      parent reply	other threads:[~2020-12-16  7:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-15 19:50 Joseph Reagle
     [not found] ` <45d39007-b396-88f2-b76b-269e5b16bfc4-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2020-12-15 20:20   ` John MacFarlane
     [not found]     ` <m25z52yg6t.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-12-16  7:12       ` BPJ [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=CADAJKhBjot0Ujq+s1pNOHrA1JJZLfmVKOzfk1UK7xyfgFDQdMw@mail.gmail.com \
    --to=bpj-j3h7gcxpsitlodktgw+v6w@public.gmane.org \
    --cc=joseph.2011-T1oY19WcHSwdnm+yROfE0A@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).