Open MerkulovDaniil opened 2 weeks ago
I figured out, that adding the following line to the tex preamble solves the problem both locally and in the CI mode with GitHub page automatic build.
\newcommand{\theHtable}{\thetable}
The below command will exhibit the issue.
quarto pandoc --from markdown index.qmd --to beamer -o index.pdf
In the LaTeX file, the issue seems to be: \phantomsection\label{slide-2}
.
And looking a bit deeper with an educated guess: that's a bad interaction with longtable
(cc @cscheid 😏).
Not working with "longtable" | Working just fine with "tabular" |
---|---|
````qmd --- title: Table problems format: beamer --- # Section ## Slide 1 ```{=latex} \begin{longtable}{|c|c|c|} \hline \textbf{Header 1} & \textbf{Header 2} & \textbf{Header 3} \\ \hline \endfirsthead Cell 1 & Cell 2 & Cell 3 \\ \hline Cell 4 & Cell 5 & Cell 6 \\ \hline \end{longtable} ``` ## Slide 2 ```` | ````qmd --- title: Table problems format: beamer --- # Section ## Slide 1 ```{=latex} \begin{tabular}{|c|c|c|} \hline \textbf{Header 1} & \textbf{Header 2} & \textbf{Header 3} \\ \hline Cell 1 & Cell 2 & Cell 3 \\ \hline Cell 4 & Cell 5 & Cell 6 \\ \hline \end{tabular} ``` ## Slide 2 ```` |
@mcanouil it seems like an issue with Pandoc converting markdown tables to longtable
, and then an issue with longtable used in beamer in certain context right ?
If so, we should report to Pandoc probably
Yes, that's my understanding of the issue from few tests.
Note that using the \newcommand{\theHtable}{\thetable}
trick in the template could be a good fix which should not harm (although it would be good to know what overwrites this in the first place that needs to be set it again).
@mattysimonson as showed the bug does not originate from Quarto. That's still bad LaTeX bug but a LaTeX one nonetheless.
The fix will very likely be the workaround with the newcommand command.
the Posit folks really need to address this bug as soon as possible.
Just to set the expectations: we don't consider this tone to be helpful or constructive, and we expect you to be both in this forum.
the Posit folks really need to address this bug as soon as possible.
Just to set the expectations: we don't consider this tone to be helpful or constructive, and we expect you to be both in this forum.
Sorry! Was not thinking about my tone. I should have said, "I expect this issue will affect a lot of users in the coming days, so I hope it can be addressed promptly."
Bug description
I have many repositories with presentations and sites built using Quarto (❤️). Some of them encountered issues when they were automatically deployed with GitHub Actions after a commit, resulting in errors like this:
As a result, for the past week, I switched from automatic deployment to manually running:
However, after updating from TeX Live 2023 to TeX Live 2024, I noticed that several documents which previously built successfully now crash with the same errors. I decided to create the smallest possible example to reproduce the problem and observed that the issue occurs when a markdown table is followed by any content.
Here are my findings:
Steps to reproduce
Here is small Quarto document, that raise an error
While If you remove the Slide 2, the problem will disappear.
You can compile the document with the command
Expected behavior
Produce beamer presentation
Actual behavior
Your environment
Macos 14.5 (23F79) The problem occurs both in VSCode and in terminal compilation.
Quarto check output