Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/command/typst/cmd.ts
3583 views
1
/*
2
* typst.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*/
6
7
import { Command } from "cliffy/command/command.ts";
8
9
// typst 'command' (this is a fake command that is here just for docs,
10
// the actual processing of 'run' bypasses cliffy entirely)
11
export const typstCommand = new Command()
12
.name("typst")
13
.stopEarly()
14
.arguments("[...args]")
15
.description(
16
"Run the version of Typst embedded within Quarto.\n\n" +
17
"You can pass arbitrary command line arguments to quarto typst (they will\n" +
18
"be passed through unmodified to Typst)",
19
)
20
.example(
21
"Compile Typst to PDF",
22
"quarto typst compile document.typ",
23
)
24
.example(
25
"List all discovered fonts in system and custom font paths",
26
"quarto typst fonts",
27
);
28
29