Closed pagiraud closed 2 months ago
Thanks for the report.
Could you share the content of before-title.tex
in your example?
Yes, of course. Sorry, I forgot that part. Actually, this is quite simple : my before-title.tex
only contains comments:
%Some comment
But if I remove or comment:
template-partials:
- before-title.tex
from my .qmd
document, the beamer presentation is correctly generated…
EDIT: The error also occurs with other PDF engines, at least pdf-engine: lualatex
and pdf-engine: pdflatex
.
I tried
---
title: "TRY ME"
author: "My name"
keep-tex: true
format:
beamer:
template-partials:
- before-title.tex
---
Some content.
and the partials being
%Some comment
This generate a document, but the title is missing.
I think this is the same things at
The template is missing a newline as expected by Pandoc.
Try this
%Some comment
And can you confirm it works ok ?
Thanks.
I do confirm that it works. Thank you so much!
So same reason than #7293 where I explained the change that impacted that.
I wonder if we should keep adding those newlines after each partials we insert.
We don't currently for this one. https://github.com/quarto-dev/quarto-cli/blob/0a548a67cd4a2094c4b5c71b15bb53ee1b18c2cf/src/resources/formats/pdf/pandoc/template.tex#L418-L419
$before-title.tex()$
+
$title.tex()$
\begin{document}
Bug description
When I want to add template-partials to my beamer export, it fails: if the title YAML entry doesn’t contain any space, the export ends without error but no title is displayed. If the title contains a space, the export fails with a
Steps to reproduce
Make a simple qmd document:
Expected behavior
The document is generated.
Actual behavior
The document is not.
Your environment
I use RStudio but this is not relevant: I also tried from command line with the same result. But I use Ubuntu 24.04 with the texlive packages from my distribution, not tinytex. Maybe this is important.
Quarto check output