Quarto PDF book: "LaTeX Error: Environment abstract undefined" #11193
-
DescriptionI posted this question on Posit forums a week ago but haven't received any responses (https://forum.posit.co/t/quarto-pdf-book-latex-error-environment-abstract-undefined/194119). I am writing a quarto book. I include ERROR:
compilation failed- error
LaTeX Error: Environment abstract undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.328 \begin{abstract}
ERROR: Error
at Object.onComplete (file:///opt/quarto/bin/quarto.js:92847:91)
at eventLoopTick (ext:core/01_core.js:153:7)
at async renderFiles (file:///opt/quarto/bin/quarto.js:78077:16)
at async renderProject (file:///opt/quarto/bin/quarto.js:78479:25)
at async Command.actionHandler (file:///opt/quarto/bin/quarto.js:83077:32)
at async Command.execute (file:///opt/quarto/bin/quarto.js:8017:13)
at async Command.parseCommand (file:///opt/quarto/bin/quarto.js:7907:20)
at async quarto (file:///opt/quarto/bin/quarto.js:118224:9)
at async file:///opt/quarto/bin/quarto.js:118244:9
at async mainRunner (file:///opt/quarto/bin/quarto.js:118128:9)
Error: Process completed with exit code 1. The error is because my LaTeX document class (krantz) does not include an abstract environment, as noted in the following forum posts:
However, it is "by design" that my document class does not include an abstract environment. I don't want the abstract to appear in the PDF version, if possible, because I want to use the krantz document class. Yet I still want to include the Abstract in the HTML version. And I'd prefer not to have to maintain separate To try to address this, I moved Any help would be greatly appreciated. Basically, I want to accomplish the following:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Use profiles, see https://quarto.org/docs/projects/profiles.html. |
Beta Was this translation helpful? Give feedback.
-
This resolved my problem--thanks! For future readers, here's how I accomplished that: I created a book:
abstract: INSERT TEXT HERE I removed that code from my global - name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
env:
QUARTO_PROFILE: html
with:
to: html |
Beta Was this translation helpful? Give feedback.
Use profiles, see https://quarto.org/docs/projects/profiles.html.