quarto-dev / quarto-dev/quarto-cli
FR: Can notes in HTML subtables be treated as footnotes (rather than subtable notes) in PDF?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/8658
Originally posted by IULibScholComm February 8, 2024
Description
One of my two HTML subtables has data with notes that I want to be footnotes. These notes are footnotes in the HTML and EPUB versions, but in the PDF the data notes are subtable notes (i.e. placed adjacent to the subtable rather than at the bottom of the page, given a letter identifier (ex. "a") rather than a number (ex. "1"), etc.) rather than footnotes. Can the notes in the subtable be treated as footnotes in the PDF version just as in the in the HTML and EPUB versions?
Reproducible Example:
---
title: "test"
format: pdf
---
Text that has a footnote.^[This is a footnote.]
:::: {#tbl-test layout-ncol="2"}
::: {#tbl-test1}
```{=html}
<table>
<thead>
<tr>
<th>test</th>
<th>test</th>
</tr>
</thead>
<tbody>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
```
Test1
:::
::: {#tbl-test2}
```{=html}
<table>
<thead>
<tr>
<th>test<span data-qmd="^[This should be a footnote.]"></span></th>
<th>test</th>
</tr>
</thead>
<tbody>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
```
Test2
:::
Test
::::
I'm using Quarto 1.4.59 on Windows 10 Enterprise.
Thank you again very much for your help!
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.
Research direction
Start with the supplied .qmd reproducible example and compare its PDF output with the HTML and EPUB outputs. Trace how the HTML subtable's data note is converted for PDF, then verify that it is rendered as a numbered page footnote rather than an adjacent lettered subtable note.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, javascript
- Domain
- backend, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100