Why are citations not producing links to bibliography?

Hi. As far as I understand from the documentation, cite function and @citation syntax should automatically produce a link to the bibliography section. However, it’s not working for me (with custom csl style or with default style).

Do I need to turn it on explicitly? Does it depend on my references.bib? On the citation style?

How to figure it out?

1 Like

Hello, could you provide a minimum working example?

Hi. This is it.

#set text(top-edge: "baseline", bottom-edge: "baseline")
#set par(spacing: 1.25em, leading: 1.25em)

#lorem(50) @knuth:1984


#pagebreak()

#bibliography("references.bib")

references.bib:

@article{knuth:1984,
  title={Literate Programming},
  author={Donald E. Knuth},
  journal={The Computer Journal},
  volume={27},
  number={2},
  pages={97--111},
  year={1984},
  publisher={Oxford University Press}
}

I copy-pasted the first two lines from some template that I wanted to use. The first line #set text breaks the linking behaviour in 0.13.1 version, but this behaviour is restored in the dev version (Aug 1st 2025).

Hi @Nikolay_Markov,

It works:

#let data = ```
@article{knuth:1984,
  title={Literate Programming},
  author={Donald E. Knuth},
  journal={The Computer Journal},
  volume={27},
  number={2},
  pages={97--111},
  year={1984},
  publisher={Oxford University Press}
}
```.text

@knuth:1984

#bibliography(bytes(data))

I mean, the link works…

I think no clickable link is the expected result. If you set both top and bottom edge to baseline there is no area left where you can click.
It works differently in the current dev version (future 0.14), because of a bug fix (#6252).

2 Likes

I’ve just noticed that. Also, the preview pane in the web app behaves slightly differently than the end result PDF when dealing with links.