Skip to content

Commit 3163ab4

Browse files
committed
Keep default format as pdf
1 parent 5134bdf commit 3163ab4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
When you preview a document with the **Quarto: Preview** command, the Preview button in the toolbar, or the keyboard shortcut {{< kbd mac=Command-Shift-K win=Ctrl+Shift+K linux=Ctrl+Shift+K >}}
22
the first format specified in the document header is rendered and previewed.
3-
In this case, the file `authoring.html` will be created, and opened in the Viewer pane.
3+
In this case, the file `authoring.pdf` will be created, and opened in the Viewer pane.
44

55
To preview a specific format use the **Quarto: Preview Format...** command and select a different format.
66
The selected format will then be used whenever you preview.
@@ -9,6 +9,6 @@ To return to the default format, or a different format, run **Quarto: Preview F
99
To render all formats specified in the document header, run the command **Quarto: Render Document**.
1010
Then the following files would be created.
1111

12-
- `authoring.html`
1312
- `authoring.pdf`
13+
- `authoring.html`
1414
- `authoring.docx`

docs/get-started/authoring/_text-editor.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ toc: true
5757
number-sections: true
5858
highlight-style: pygments
5959
format:
60-
html:
61-
code-fold: true
62-
html-math-method: katex
6360
pdf:
6461
geometry:
6562
- top=30mm
6663
- left=20mm
64+
html:
65+
code-fold: true
66+
html-math-method: katex
6767
docx: default
6868
---
6969
```
@@ -87,17 +87,17 @@ Next, we have the `format` option, where we provide format-specific options.
8787

8888
``` yaml
8989
format:
90-
html:
91-
code-fold: true
92-
html-math-method: katex
9390
pdf:
9491
geometry:
9592
- top=30mm
9693
- left=20mm
94+
html:
95+
code-fold: true
96+
html-math-method: katex
9797
docx: default
9898
```
9999

100-
The `html` and `pdf` formats each provide an option or two. For example, for the HTML output we want the user to have control over whether to show or hide the code (`code-fold: true`) and use `katex` for math text. For PDF we define some margins. The `docx` format is a bit different---it specifies `docx: default`. This means just use all of the default options for the format.
100+
The `pdf` and `html` formats each provide an option or two. For example, for the HTML output we want the user to have control over whether to show or hide the code (`code-fold: true`) and use `katex` for math text. For PDF we define some margins. The `docx` format is a bit different---it specifies `docx: default`. This means just use all of the default options for the format.
101101

102102
## Rendering
103103

@@ -114,8 +114,8 @@ quarto render authoring.qmd
114114

115115
Then the following files would be created.
116116

117-
- `authoring.html`
118117
- `authoring.pdf`
118+
- `authoring.html`
119119
- `authoring.docx`
120120

121121
We can select one or more formats using the `--to` option.

0 commit comments

Comments
 (0)