Open cwickham opened 4 months ago
As a user, I wonder how such announcement would work in the context of a book. Should the announcement be placed in the beginning of the whole book? Or should it be placed in the beginning of each chapter? Or should it be placed in the margin of the book text?
In any case, I would be interested in such a feature, which is beyond text narrative and code chunks. For example, there is "dictum" environment in scrbook
LaTeX class, which appears in the beginning of a book chapter. My use case is either to write a chapter summary or to list down what the students would learn in that particular chapter. Currently I do this using raw LaTeX code in the preamble and in each chapter.
It would only be for the HTML version.
It would only be for the HTML version.
I wouldn't be this closed to the idea. We could think of something for PDF version of a book through LaTeX, directly related or slighlty related (announcement box for printed book). There could be use case of having something shown at start of the book or elsewhere.
Maybe it is another issue though. This one is probably only about to make the current announcement feature working for website, and as book should really be a special case of website with different but not less feature.
The banner is only for website/HTML. You can't use it for anything else. Book project is supposed to be able to use "website tools" which the announcement bar is -> that is the point of the issue I believe. (Also, what would be the meaning/design of a "banner" in a PDF? That deserves a whole discussion on its own)
Now, another issue could be open to extend the announcement bar to formats.
Bug description
In 1.5, websites support the
announcement
option. Books probably should too.Steps to reproduce
Add
announcement
_quarto.yml
to:Expected behavior
An announcement bar should appear at the top of the book page:
Actual behavior
No announcement appears:
Your environment
OS: Mac Sonoma 14.4.1
Quarto check output