emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* modify citation links in a derived HTML backend
@ 2021-07-02 17:53 Matt Price
  2021-07-03  7:53 ` Jens Lechtenboerger
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Price @ 2021-07-02 17:53 UTC (permalink / raw)
  To: Org Mode, lechten

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


(cc:ing Jens L. in case this is relevant for his dev work on org-re-reveal).

I'm experimenting with the new citation syntax in slideshows generated with
org-re-reveal.  Mostly it works fine, but cite-links don't function
properly in the slideshow because in reveal, internal links only work when
they refer to a slide (which will generally be generated from a headline in
org-re-reveal export). Otherwise, the framework will reject the location
change.  At least, that's how I read the code here:

Ideally, there would be some way to override this behaviour, but at present
I don't see how to do that from within Reveal.

I also know it is possible to just eliminate the links using
org-cite-csl-no-citelink-backends, but that is a significant loss of

Instead, I would like to modify the links that surround the individual
citations. At present, the generated code will look something like this:

<a href="#citeproc_bib_item_3">Zubaida, 2009</a>

and I'd like to change it to something like this:

<a href="#bibliography">Zubaida, 2009</a>

From what I can tell so far, the current behaviour of oc-csl is dictated by
a lambda defined in the citeproc package, and set via defconst in an alist
`citeproc-fmt--html-alist` defined in citeproc-formatters.el.

My question: what's the best way to override the output of citation objects
for a specific derived backend? Can I use an export filter? should I
instead use, I don't know, cl-letf to temporarily override some internal
function belonging to citeproc-formatters and return a modified link?

thanks as always for the help!


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-04 16:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 17:53 modify citation links in a derived HTML backend Matt Price
2021-07-03  7:53 ` Jens Lechtenboerger
2021-07-03 21:32   ` Matt Price
2021-07-04 12:56     ` Jens Lechtenboerger
2021-07-04 16:12       ` Matt Price

Code repositories for project(s) associated with this public inbox


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 read-only IMAP folder(s) and NNTP newsgroup(s).