You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Content *before* first MD header in chapter is moved *past* the header #3681
The default output of a new book project plus (in PDF output only) a list of figures and a list of tables immediately before the bibliography.
Actual result
As you will see, the page with the References heading will be empty, followed by a page with the list of figures and a page with the list of tables, followed by the bibliography content (the ::: {#refs} block).
System details
Quarto 1.2.280 (issue is also present in latest pre-release v1.3.56)
Latest TinyTeX providing XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
Ubuntu 20.04
Checklist
Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
Please format your issue so it is easier for us to read the bug report.
Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
Please document the operating system you're running. If on Linux, please provide the specific distribution.
We're unlikely to fix this because, as i understand it, the relationship between the first header and the .tex contents is pretty rigid. We generally recommend people move raw tex blocks past the header, but that won't work for the content you're trying to add. I think a custom project/format is your best bet here.
Thanks for the answer. But my issue is not really about the \listoffigures/\listoftables (I just wanted to provide a sensible example). It happens with any content. Also it's not specific to LaTeX output. I suspect it has something to do with #1108 (comment) ...?
I think there are some challenges to creating conditional chapters in this way (for example, if you were to try to create a PDF only chapter you'd end up with empty untitled pages in web or epub output). This sort of 'happens' to work for PDF chapters because of how we generate the book LaTeX, but it seems risky to rely upon.
So, Charles is indicating there that there's risk for us to try and come up with a solution for this kind of scenario. Yes, it's technically a bug. But like I mentioned, we're unlikely to fix it.
Yeah sorry for chiming in late - in books that H1 is conceptually synonymous with the title element in metadata, so it is expected that you can't really get content above it.
Activity
cscheid commentedon Dec 15, 2022
It looks like you're attempting to make more fundamental changes to the resulting layout (given that you're manually emitting lists of figures, etc). In that case, you should probably take a look at custom formats/project types: https://quarto.org/docs/extensions/formats.html and https://quarto.org/docs/extensions/project-types.html
cscheid commentedon Dec 15, 2022
We're unlikely to fix this because, as i understand it, the relationship between the first header and the .tex contents is pretty rigid. We generally recommend people move raw tex blocks past the header, but that won't work for the content you're trying to add. I think a custom project/format is your best bet here.
salim-b commentedon Dec 15, 2022
Thanks for the answer. But my issue is not really about the
\listoffigures/\listoftables(I just wanted to provide a sensible example). It happens with any content. Also it's not specific to LaTeX output. I suspect it has something to do with #1108 (comment) ...?cscheid commentedon Dec 15, 2022
The response to that comment was:
So, Charles is indicating there that there's risk for us to try and come up with a solution for this kind of scenario. Yes, it's technically a bug. But like I mentioned, we're unlikely to fix it.
salim-b commentedon Dec 15, 2022
Ok, I understand. Thanks for pointing out.
dragonstyle commentedon Dec 15, 2022
Yeah sorry for chiming in late - in books that H1 is conceptually synonymous with the
titleelement in metadata, so it is expected that you can't really get content above it.