在 Quarto YAML 中使用 LaTeX 包来实现 Typst 输出格式

问题描述 投票:0回答:1

我想在 Quarto YAML 标头中使用 LaTeX 包来实现 Typst 输出格式。下面是我的 YAML 标头的草图。看来这对

\usepackage[none]{hyphenat}
不起作用。在作者姓名和文档使用连字符呈现后,输出显示
usepackage[none]{hyphenat}
。请问有什么提示吗?

---
title: "Title"
author: "Author"
format:
  typst:
    papersize: a4
    mainfont: Latin Modern Roman
    sansfont: Latin Modern Roman
    fontsize: 12pt
    margin:
      x: 1cm
      y: 1cm
    toc: false
    section-numbering: 1.1.a
    columns: 1
    include-in-header:
      text: |
        \usepackage[none]{hyphenat}
editor: visual
---
r yaml quarto typst
1个回答
0
投票

正如评论中提到的,latex 包与 Typst 不兼容,因为这是两种不同的语言。

如果您想禁用打字机中的连字符:

format:
  typst:
    include-before-body:
      - text: |
          #set text(hyphenate: false)

参考资料:

© www.soinside.com 2019 - 2024. All rights reserved.