摘要标题未显示在Quarto PDF文档中。

huangapple go评论96阅读模式
英文:

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}{<自定义摘要标题>} 进行修改。

摘要标题未显示在Quarto PDF文档中。

英文:

Firstly, you need to pass the option abstract to the documentclass scrartcl to show the abstract title.

---
title: &quot;Untitled&quot;
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}{&lt;custom-abstract-title&gt;}.

---
title: &quot;Untitled&quot;
format: pdf
classoption: abstract
abstract: |
  This is the abstract
include-in-header: 
  text:
    \renewcommand{\abstractname}{My abstract}
---

Something.

摘要标题未显示在Quarto PDF文档中。

huangapple
  • 本文由 发表于 2023年3月7日 17:33:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/75660168.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定