* Creating links with citations (e.g., [some link text][@Smith2020] )
@ 2020-12-15 19:50 Joseph Reagle
[not found] ` <45d39007-b396-88f2-b76b-269e5b16bfc4-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Joseph Reagle @ 2020-12-15 19:50 UTC (permalink / raw)
To: pandoc-discuss
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Creating links with citations (e.g., [some link text][@Smith2020] )
[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>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2020-12-15 20:20 UTC (permalink / raw)
To: Joseph Reagle, pandoc-discuss
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Creating links with citations (e.g., [some link text][@Smith2020] )
[not found] ` <m25z52yg6t.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2020-12-16 7:12 ` BPJ
0 siblings, 0 replies; 3+ messages in thread
From: BPJ @ 2020-12-16 7:12 UTC (permalink / raw)
To: pandoc-discuss; +Cc: Joseph Reagle
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-16 7:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 19:50 Creating links with citations (e.g., [some link text][@Smith2020] ) 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 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).