odd behavior if cross-referencing an image as an equation
@cscheid is already working on this.
Since Jun 11, 2024.
Assessment
This issue has not been assessed yet.
Description
Bug description
Kind of a weird one. Due to some annotated equations that won't render in html, I'm screenshotting the latex output and showing the image so it will work for both. However, I'd still like the cross-reference for the figure to be an equation. This could also be useful when displaying tables from other papers (saving the trouble of recreating), you could just snag the image and use that while still cross-referencing it as a table.
Figure references for the images are fine. These are not the issue.
Table references for the images, such as {#tbl-x}, also actually appear to work for table cross-references.
This doesn't hold for equations.
I've attached the pdf produced from the following code, but the same thing happens in html (not able to attach)
Steps to reproduce
---
title: "Untitled"
format:
pdf:
fig-pos: 'H'
crossref:
fig-prefix: Figure # can we do better than figure?
tbl-prefix: Table
eq-prefix: Equation
---
No cross-reference of any kind, misaligns to left
{#eq-test width=50%}
\pagebreak
Figure cross-reference works as expected
{#fig-test width=50%}
\pagebreak
Table cross-reference works as expected
{#tbl-test width=50%}
\pagebreak
Adding a caption results in it being appropriately centered, but still not cross-referenced as an equation.
{#eq-test width=50%}
\pagebreak
As expected
{#fig-test width=50%}
\pagebreak
As expected
{#tbl-test width=50%}
Expected behavior
I would expect that if figure and table cross-references both work for a figure, an equation cross-reference for a figure should too.
Actual behavior
It may not produce any cross-reference, or not an equation cross-reference.
Your environment
- IDE: VSCode 1.90.0
- OS: Ventura 13.4
Quarto check output
Quarto 1.5.6
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.6
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: v2024.06
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/micl/Library/TinyTeX/bin/universal-darwin
Version: 2024
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.5 (Conda)
Path: /Users/micl/anaconda3/bin/python
Jupyter: 5.3.0
Kernels: python3
[✓] Checking Jupyter engine render....OK
(|) Checking R installation...........── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.1 ✔ tibble 3.2.1
✔ lubridate 1.9.3 ✔ tidyr 1.3.1
✔ purrr 1.0.2
(/) Checking R installation...........── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ ::() masks
ℹ Use the conflicted package (http://conflicted.r-lib.org/) to force all conflicts to become errors
Attaching package: ‘scales’
The following object is masked from ‘package:purrr’:
discard
The following object is masked from ‘package:readr’:
col_factor
[✓] Checking R installation...........OK
Version: 4.3.3
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Users/micl/Rlib
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.45
rmarkdown: 2.27
[✓] Checking Knitr engine render......OK
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quarto-dev/quarto-cli
-
binder bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
quarto-dev/quarto-cli#14907 · 3 comments ·
-
brand bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarto-dev/quarto-cli#14891 ·
-
brand bug html revealjs
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
quarto-dev/quarto-cli#14882 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
quarto-dev/quarto-cli#14875 ·
-
Percent scripts: accept raw-string (r""") and '''-delimited markdown cells, as jupytext writes them Openengines-jupyter enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
quarto-dev/quarto-cli#14850 · 2 comments ·
All issues in quarto-dev/quarto-cli
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bevyengine/bevy-website#2595 ·