You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Quarto PDF中实现作者信息分多行显示

Quarto PDF 作者信息分行显示解决方案

针对你遇到的Quarto中HTML格式作者信息正常分行,但PDF格式下作者姓名挤在同一行的问题,给你三个实用解决办法:

方法一:用结构化作者配置强制换行

通过给每个作者/单位条目添加linebreak: true,让PDF编译时强制换行:

---
title: "Untitled"
author:
  - name: "**Analytics Unit**"
    linebreak: true
  - name: "John Smith"
    linebreak: true
  - name: "Jane Doe"
format: pdf
---

方法二:插入LaTeX换行命令

因为Quarto PDF依赖LaTeX编译,直接在作者字段里用\\\\(YAML中需转义反斜杠)实现换行:

---
title: "Untitled"
author: "**Analytics Unit**\\\\John Smith\\\\Jane Doe"
format: pdf
---

方法三:关联作者与单位(规范场景)

如果是作者隶属于某单位的场景,用affiliation字段关联,自动将单位显示在作者名下方:

---
title: "Untitled"
author:
  - name: "John Smith"
    affiliation: "Analytics Unit"
  - name: "Jane Doe"
    affiliation: "Analytics Unit"
format: pdf
---

内容的提问来源于stack exchange,提问作者Josh Persi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.15 11:00:56