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

Quarto中LaTeX模板如何单独提取多位作者姓名各部分?

解决Quarto LaTeX模板中作者姓名不显示的问题
  • 问题根源:模板错误使用了不存在的by-author循环变量,且多余的.literal后缀导致无法正确读取姓名字段。
  • 修正后的模板代码如下:
    1. 脚注提取作者姓氏:
      {$for(author)$ $author.surname$ $sep$/ $endfor$}
      
    2. 标题页显示完整作者姓名:
      $for(author)$ $author.given-names$ $author.surname$ $sep$ and $endfor$
      
  • 补充说明:如果你的Quarto配置中作者字段用的是given/family(而非given-names/surname),只需将模板中的字段名对应替换为$author.given$和$author.family$即可。

内容的提问来源于stack exchange,提问作者Benjamin Fretwurst

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.05 00:15:29