You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 >}}
2
+
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.
4
+
5
+
To preview a specific format use the **Quarto: Preview Format...** command and select a different format.
6
+
The selected format will then be used whenever you preview.
7
+
To return to the default format, or a different format, run **Quarto: Preview Format...** again.
8
+
9
+
To render all formats specified in the document header, run the command **Quarto: Render Document**.
Copy file name to clipboardExpand all lines: docs/get-started/authoring/_text-editor.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,17 @@ Quarto supports rendering notebooks to dozens of different [output formats](/doc
8
8
9
9
### Format Options
10
10
11
-
Let's create a new file (`authoring.qmd`) and define various formats for it to be rendered to, adding some options to each of the formats. As a reminder, document options are specified in YAML at the beginning of the source file.
Let's create a new file (`authoring.qmd`) and define various formats for it to be rendered to, adding some options to each of the formats.
20
+
As a reminder, document options are specified in YAML at the beginning of the source file.
21
+
:::
12
22
13
23
```yaml
14
24
---
@@ -33,6 +43,8 @@ format:
33
43
---
34
44
```
35
45
46
+
{{< include _install-tinytex.md >}}
47
+
36
48
### Multiple Formats
37
49
38
50
Some documents you create will have only a single output format, however in many cases it will be desirable to support multiple formats. Let's add the `html` and `docx` formats to our document.
@@ -89,6 +101,11 @@ The `html` and `pdf` formats each provide an option or two. For example, for the
The formats specified within document options define what is rendered by default. If we render the document with all the options given above using the following.
93
110
94
111
``` {.bash filename="Terminal"}
@@ -117,6 +134,7 @@ quarto render authoring.qmd --to odt
117
134
```
118
135
119
136
Since the `odt` format isn't included within document options, the default options for the format will be used.
Additionally, if you are interested in seeing how to use Quarto from within `.ipynb` notebooks, check out the documentation on using the Positron [Notebook Editor](/docs/tools/positron/notebook.qmd) with Quarto.
0 commit comments