Hello, all.
I'm struggling to get the abstract
environment working with PDF book formats.
It works fine for the base Quarto PDF, but when I try to use it with a book
or scrbook
document class, like this:
format:
pdf:
documentclass: book % or scrbook
abstract: This is my abstract.
I get: LaTeX Error: Environment abstract undefined.
I've tried this a number of ways as I am working with partials, etc., but can't get it to work in any configuration. Here are the minimal steps to reproduce the problem:
- Create a new Quarto document, choose type PDF
- Add
abstract: This is my abstract.
to the YAML frontmatter. - Render. The PDF is output without error and it includes the abstract.
- Change the format YAML to match the prior code block, adding
documentclass: book
orscrbook
. - Render. Note that the error occurs as described on
\begin{abstract}
.
Any help would be appreciated.