public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: <denis.maier-NSENcxR/0n0@public.gmane.org>
To: <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: AW: Clickable citation links
Date: Wed, 9 Feb 2022 11:33:39 +0000	[thread overview]
Message-ID: <8b7e233bd9fe4a9389e734e0eca9ad79@unibe.ch> (raw)
In-Reply-To: <YgOkQ+gxqIAwwkCz@localhost>

Yes, but it should actually work out of the box even with context. I've got correct backlinks with LaTeX, ConTeXt and HTML.

```
---
references:
- type: article-journal
  id: WatsonCrick1953
  author:
  - family: Watson
    given: J. D.
  - family: Crick
    given: F. H. C.
  issued:
    date-parts:
    - - 1953
      - 4
      - 25
  title: 'Molecular structure of nucleic acids: a structure for
    deoxyribose nucleic acid'
  title-short: Molecular structure of nucleic acids
  container-title: Nature
  volume: 171
  issue: 4356
  page: 737-738
  DOI: 10.1038/171737a0
  URL: https://www.nature.com/articles/171737a0
  language: en-GB
...

Test [@WatsonCrick1953]
```

pandoc test.txt -o text.html -s --citeproc -L backlinks.lua
pandoc test.txt -o text.pdf --citeproc -L backlinks.lua
pandoc test.txt -o text.pdf --pdf-engine=context --citeproc -L backlinks.lua

Denis

> -----Ursprüngliche Nachricht-----
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Bastien DUMONT
> Gesendet: Mittwoch, 9. Februar 2022 12:24
> An: 'Jan Ulrich Hasecke' via pandoc-discuss <pandoc-
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Betreff: Re: Clickable citation links
> 
> Wherever "if FORMAT == 'latex'" appears, you can add instructions for other
> formats as well. For instance:
> 
> ```
> local function with_latex_label(s, el)
>   if FORMAT == "latex" then
>     return {pandoc.RawInline("latex", "\\label{" .. s .. "}"), el}
>   elseif FORMAT == "context" then
>     return {pandoc.RawInline("context", "\\pagereference[" .. s .. "]"), el}
>   else
>     return {el}
>   end
> end
> ```
> 
> Le Wednesday 09 February 2022 à 12:12:56PM, 'Jan Ulrich Hasecke' via
> pandoc-discuss a écrit :
> >
> > Am 08.02.22 um 22:32 schrieb John MacFarlane:
> > >
> > > I sent a complete backlinks filter to this list a week ago:
> > >
> > > https://groups.google.com/g/pandoc-
> discuss/c/qPiuWTKQLp8/m/TlsWzKrOA
> > > AAJ
> >
> > Oh, thanks a lot. I missed that discussion.
> >
> > Unfortunately I don't get backlink neither with ConTeXt nor with HTML
> > or EPUB.
> >
> > This is my settings file:
> >
> > --from=markdown
> > --to=html
> > --standalone
> > --template=../../control/default/html/template.html
> > --section-divs
> > --lua-filter=../../control/default/div-context.lua
> > --top-level-division=chapter
> > --table-of-contents
> > --toc-depth=2
> > --citeproc
> > --lua-filter=../../control/default/backlinks.lua
> > --csl=eva-berlin-konferenz.csl
> > --bibliography=hostsharing.bib
> >
> > I hope it is safe to use multiple calls to --lua-filter.
> >
> > juh
> >
> > --
> > 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/a4377868-b5db-16df-
> 32bf-2e96856d5738%40mailbox.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/YgOkQ%2BgxqIAwwkCz%40localhost.

-- 
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/8b7e233bd9fe4a9389e734e0eca9ad79%40unibe.ch.


      reply	other threads:[~2022-02-09 11:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-07 14:21 'Jan Ulrich Hasecke' via pandoc-discuss
     [not found] ` <2c70a2f6-189a-714a-77d4-19039882f7c1-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2022-02-07 14:32   ` William Lupton
     [not found]     ` <CAEe_xxh796mP3tPSX6OZvH+kt_1wFhvJHy_9rZ_q1B6QCZw7zQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-02-08  9:16       ` 'Jan Ulrich Hasecke' via pandoc-discuss
     [not found]         ` <f35187fe-36d6-9e6b-ba3e-ec83b99a2ce7-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2022-02-08  9:36           ` AW: " denis.maier-NSENcxR/0n0
2022-02-08  9:39           ` William Lupton
     [not found]             ` <CAEe_xxgGV-vSvNDX9fWON=E=R5RntvGKuK8vMJzq0Yubyxp-Kg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-02-08  9:48               ` AW: " denis.maier-NSENcxR/0n0
     [not found]                 ` <fac3bed6f8084cb0ad55df3f7647d62c-NSENcxR/0n0@public.gmane.org>
2022-02-08 21:32                   ` John MacFarlane
     [not found]                     ` <yh480kee4dm4cw.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2022-02-09 11:12                       ` 'Jan Ulrich Hasecke' via pandoc-discuss
     [not found]                         ` <a4377868-b5db-16df-32bf-2e96856d5738-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2022-02-09 11:23                           ` Bastien DUMONT
2022-02-09 11:33                             ` denis.maier-NSENcxR/0n0 [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=8b7e233bd9fe4a9389e734e0eca9ad79@unibe.ch \
    --to=denis.maier-nsencxr/0n0@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).