quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.95k stars 326 forks source link

have custom appendix sections work in formats besides html #10928

Open katossky opened 1 month ago

katossky commented 1 month ago

Feature requested

Currently, the the custom appendix mechanism only works for HTML. It would be nice if it also worked for, say, pdf and docx. At the moment {.appendix} has no effect whatsoever in these formats.

Current behaviour

---
title: "Document en français avec annexes"
format: pdf
lang: fr
toc: true
number-sections: true
---

## Un problème intéressant

Une description

## Plus de détail {.appendix}

Des détails

## Un problème compliqué

Des compléments

## Encore plus de détail {.appendix}

Plein de détails

-> No section is moved nor considered part of the appendix.

Whised-for behavior

I would expect uniform behaviour across html, pdf and docx formats, that is all the appendices to be sent at the end of the document and be numbered together.

mcanouil commented 1 month ago

Where did you see it was supposed to work for non HTML formats?

From https://quarto.org/docs/authoring/appendices.html:

HTML pages rendered with Quarto include a formatted appendix at the end of the article.

There is no mention of the other formats.

katossky commented 1 month ago

Oh no sorry I missed that part. Can we turn this into a discussion for a feature request then?

mcanouil commented 1 month ago

Edit your issue in that direction.

katossky commented 1 month ago

I am not sure I can turn this into a discussion, as recommended in your guidelines for new features.

mcanouil commented 1 month ago

I am not asking you to convert or open a discussion. I am asking you to edit your issue (title and description) to make it a feature request.