The pdf tooltips that are inserted automatically often don’t add a lot of information.
See for example this simple document:
#import "@preview/nomos:0.1.0": *
#add-ncl($F$, "Gravitational force", unit: $"N"$, sec: "Latin")
#cite(<Barbu1998>)
#cite(<Barbu1998>, form: "prose")
#{
show regex("[^0-9\[\]][^\[\]]*"): ""
cite(<Barbu1998>, form: "full")
}
#{
show regex(".+"): it => {
if (it.text.at(0) == "[") {
let m = it.text.match(regex("(\[\d+\]) (.*),\W+"))
m.captures.at(1) + " " + m.captures.at(0)
}
}
cite(<Barbu1998>, form: "full")
}
//#add-ncl-silent($G$, "Gravitational constant", value: $6.67430 * 10^(-11)$, unit: $"m"^3 "kg"^(-1) "s"^(-2)$)
//
//#ncl($F$) = #ncl($G$) * #ncl($m_1$) * #ncl($m_2$) / #ncl($r$)^2
#print-nomenclature(title: "Nomenclature")
#bibliography("refs.bib")
with this bib file:
@ARTICLE{Barbu1998,
title = "$H^infinity$--control theory of fluid dynamics",
author = "Barbu, V. and Sritharan, S. S.",
journal = "Proc. Math. Phys. Eng. Sci.",
publisher = "The Royal Society",
volume = 454,
number = 1979,
pages = "3009--3033",
month = nov,
year = 1998,
language = "en"
}
Hovering over the symbol explained in the nomenclature, we see:
Hovering over the first citation we only see:
So far this is hardly an enrichment of our reading experience.
For the third citation I hacked together a nicer tooltip:
I find this very useful, as it saves lots of scrolling hin and forth to the bibliography.
The fourth citation has the same tooltip.
Is there a way to do this better syntactically?
And would it be possible to improve symbols listed in the nomenclature the same way? It would be very nice if it would show, for example, “Gravitational force (N)”


