出力形式したい(format)
format:
html:
theme: cosmo
toc: true
number-sections: true
mainfont: "Noto Sans JP"
monofont: "Noto Mono"
include-in-header: |
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP&family=Noto+Mono&display=swap">
typst:
papersize: a4
number-sections: true
mainfont: "Hiragino Sans"
# include-before-body: templates/preamble.typ
pdf:
pdf-engine: lualatex
toc: true
number-sections: true
documentclass: jsarticle
# include-in-header: templates/preamble.tex
docx:
toc: true
number-sections: true
# reference-doc: templates/reference.docx
revealjs:
theme: solarized
slide-number: true
chalkboard: false
incremental: false
transition: fade
controls: true
progress: true
center: false
scrollable: true
width: 1920
height: 1080
formatフィールドで出力形式ごとのオプションを指定できます。
_quarto.ymlファイルでグローバル設定、個々の.qmdファイルのフロントマターでローカル設定できます。
HTML形式したい(format: html)
format: html
title: "ドキュメントのタイトル"
subtitle: "ドキュメントのサブタイトル"
date: 2026-04-19
date-modified: last-modified
author: "著者"
abstract: "ドキュメントの概要"
# doi: "10.1234/5678"
theme: cosmo
tabsets: true
smooth-scroll: true
html-math-method: katex
# mainfont: "Noto Sans JP"
# monofont: "Noto Mono"
# keywords:
# copyright: "Copyright (c) 2026 著者"
Typst形式したい(format: typst)
format: typst
title: "ドキュメントのタイトル"
author: "著者"
date: 2026-04-19
keep-typ: true
スライド形式したい(format: revealjs)
format: revealjs
title: "プレゼンテーションのタイトル"
subtitle: "プレゼンテーションのサブタイトル"
date: 2026-04-19
author: "著者"
institute: "所属"
theme: solarized
# logo: "logo.png"
# footer: "フッターのテキスト"
scrollable: true
スライド形式したい(format: pptx)
format: pptx
title: "プレゼンテーションのタイトル"
date: 2026-04-19
author: "著者"
ドキュメント形式したい(format: docx)
format: docx
title: "ドキュメントのタイトル"
subtitle: "ドキュメントのサブタイトル"
date: 2026-04-19
author: "著者"
abstract: "ドキュメントの概要"