英文:
Abstract title does not show up in quarto pdf document
问题
PDF 输出不包含摘要标题。我们该如何修复这个问题?
英文:
Consider the following quarto
document:
---
title: "Untitled"
format: pdf
abstract: |
This is the abstract.
abstract-title: My abstract
---
Something.
The PDF output does not contain the abstract title. How can we fix that?
答案1
得分: 3
首先,您需要将选项 abstract
传递给文档类 scrartcl
以显示摘要标题。
现在,按照上述步骤,将显示摘要标题,默认情况下标题为 Abstract。如果您想要不同的摘要标题,可以使用 \renewcommand{\abstractname}{<自定义摘要标题>}
进行修改。
英文:
Firstly, you need to pass the option abstract
to the documentclass scrartcl
to show the abstract title.
---
title: "Untitled"
format: pdf
classoption: abstract
keep-tex: true
abstract: |
This is the abstract
---
Something.
Now following the above, will show the abstract title, titled as Abstract by default. If you want a different abstract title, modify the \abstractname
with \renewcommand{\abstractname}{<custom-abstract-title>}
.
---
title: "Untitled"
format: pdf
classoption: abstract
abstract: |
This is the abstract
include-in-header:
text:
\renewcommand{\abstractname}{My abstract}
---
Something.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论