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 or scrbook.
Render. Note that the error occurs as described on \begin{abstract}.
I've come a long way since posting the original issue. I now understand that neither scrbook nor the default book class include abstract environments.
I started working with the titlepage extensions, but am now using my own template.tex and including custom title page, abstract, and acknowledgement QMDs via the index file.
It is always nice to come back and share update on your original issue. 8 days is not that long for community member to look at opened question and try to help. They will take time (like me) to do so.
It is good practice to come back and close the question, and even share solutions to help others.
Just sharing this with you for you next time !
Thank for the question - it will be findable by others that could have the same issue so that is always good to ask and share questions.