quarto-book
25
总安装量
11
周安装量
#15051
全站排名
安装命令
npx skills add https://github.com/htlin222/dotfiles --skill quarto-book
Agent 安装分布
claude-code
10
antigravity
9
gemini-cli
9
windsurf
7
codex
7
opencode
7
Skill 文档
Quarto Book Generator
Generate complete Quarto Book project structure with proper configuration.
When to use
- User wants to create a book or multi-chapter document
- User asks to set up a Quarto book project
- User needs a technical manual or documentation structure
- User mentions “quarto book” or “book project”
Quick generation
Run the generator script with book name:
python3 ~/.claude/skills/quarto-book/scripts/generate.py <book-name> [--chapters N] [--author "Name"]
Or use Quarto CLI directly:
quarto create project book <book-name>
Project structure
mybook/
âââ _quarto.yml # Book configuration
âââ index.qmd # Preface/Introduction
âââ intro.qmd # Chapter 1
âââ methods.qmd # Chapter 2
âââ results.qmd # Chapter 3
âââ summary.qmd # Summary/Conclusion
âââ references.qmd # References
âââ references.bib # Bibliography
âââ _book/ # Output directory (generated)
_quarto.yml template
project:
type: book
output-dir: _book
book:
title: "Book Title"
author: "Author Name"
date: today
chapters:
- index.qmd
- intro.qmd
- methods.qmd
- results.qmd
- summary.qmd
- references.qmd
bibliography: references.bib
csl: apa.csl
format:
html:
theme: cosmo
toc: true
pdf:
documentclass: scrbook
papersize: a4
epub:
toc: true
Chapter template
# Chapter Title {#sec-chapter-id}
## Section 1
Content here...
## Section 2
More content...
## References
::: {#refs}
:::
Commands
| Command | Description |
|---|---|
quarto preview |
Live preview in browser |
quarto render |
Render all formats |
quarto render --to html |
Render HTML only |
quarto render --to pdf |
Render PDF only |
Multi-part structure
For books with parts:
book:
chapters:
- index.qmd
- part: "Part I: Foundation"
chapters:
- basics.qmd
- theory.qmd
- part: "Part II: Application"
chapters:
- methods.qmd
- results.qmd
- references.qmd
Output formats
- HTML: Interactive web book with search
- PDF: Print-ready document (requires LaTeX)
- EPUB: E-reader format
- MS Word: Editable document