-
Bug descriptionThe point is to build a listing of crossrefs by type over a website generated by quarto. I managed to use @tobydriscoll crossref-listing extension, and I tried to look into the new FloatRefTarget. From what I understand, this is not collectiong all crossrefs. Consider the example there:
project:
type: website
format: html
filters:
- peek.lua
---
title: a test
---
::: {#fig-afigure}
some content
:::
::: {#tbl-atable}
some content
:::
::: {#tip-atip .callout-tip}
## some title
some content
:::
function peek(f)
quarto.log.debug("------- FloatRefTarget ")
quarto.log.debug(f.type)
quarto.log.debug(pandoc.utils.stringify(f.caption_long.content))
quarto.log.debug(f.identifier)
quarto.log.debug(f.parent_id)
end
return {
{ FloatRefTarget = peek }
} When
Your environmentwindows, RStudio 2024.09.1 388, quarto 1.6.26 Quarto check outputQuarto 1.6.26
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.6.26
Path: C:\Program Files\Quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: (external install)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Using: TinyTex
Path: C:\Users\timbe\AppData\Roaming\TinyTeX\bin\windows\
Version: 2024
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.11.2
Path: C:/Users/timbe/AppData/Local/Programs/Python/Python311/python.exe
Jupyter: 5.3.0
Kernels: python3
[>] Checking Jupyter engine render....OK
[>] Checking R installation...........OK
Version: 4.4.1
Path: C:/PROGRA~1/R/R-44~1.1
LibPaths:
- C:/Users/timbe/RLibs/4.4
- C:/Program Files/R/R-4.4.1/library
knitr: 1.48
rmarkdown: 2.28
[>] Checking Knitr engine render......OK
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's correct, but isn't a bug: not all ref targets float. Equations, for example, are also cross-referenceable and not targetable by You'll need to target (In the future, please consider asking a Q&A question first. Thanks!) |
Beta Was this translation helpful? Give feedback.
-
OK, that's clarifying. However, if I wanted to produce the same fields as for FloatRefTarget, is there a piece of lua I can get inspiration from ? |
Beta Was this translation helpful? Give feedback.
That's correct, but isn't a bug: not all ref targets float. Equations, for example, are also cross-referenceable and not targetable by
FloatRefTarget
.You'll need to target
Callout
to find those nodes.(In the future, please consider asking a Q&A question first. Thanks!)