-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-reference to figure in revealjs presentation not working #9742
Comments
The crossreference itself exists and "is correct"; the issue is that revealjs hijacks the URLs so that links don't behave as regular documents. We should try to do something about this. @cderv, what do you think? |
I think the cross reference exists, but it is not correct in a slide presentation context. I believe this is an oversight, as we do the right thing for bibliography references already with a special processing and same for end-document footnotes (orignal commit 5246d7d) ---
title: test
format: revealjs
bibliography: ref.bib
---
##
```{r}
#| include: false
knitr::write_bib("knitr", "ref.bib")
```
See [@R-knitr] for more information.
## References
---
title: test
format: revealjs
reference-location: document
---
## Start
See this content[^1]
[^1]: This is a footnote
## End
So we probably need to do something similar. To be clear on Reveal js presentation, the use of I believe this is how we need work around to make the cross refs links work in Revealjs context |
FWIW, this works now with Revealjs 5 ---
title: test reveal
format:
revealjs:
auto-stretch: false
---
## Slide 1
{#fig-elephant}
## Another slide
See [Figure Element](#fig-elephant)
I just need to fix an issue with stretching image which is loosing id - which is probably source of the issue with previous revealjs version |
Excellent, many thanks for the fix/development! |
It is not fixed yet. #10688 is needed. The issue will be closed upon PR being merged. |
Bug description
Hi, thank you for the great software!
My problem is that cross-references to a figure in a revealjs presentation does not seem to work. The figure appears correctly and with its caption and the cross-reference (Figure X) also appears with a link, but clicking it leads nowhere.
I initially tried by following the "Basics" section of the Cross-references guide which did not work. I've now opted for the div syntax, which means that I basically have this:
For context, my yaml header is the following:
Steps to reproduce
Writing the same code should do the trick.
Expected behavior
Clicking the link to the figure should bring to the figure.
Actual behavior
Clicking the link to the figure does absolutely nothing.
Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: