11 More Markdown
11.1 Tables
Simple tables can be written directly in Markdown.
| Quantity | Symbol | SI Unit |
|-----------|---------|---------|
| Force | F | N |
| Energy | E | J |
| Mass | m | kg |11.1.1 Labelled tables
Tables can also be labelled for cross-reference.
| Quantity | Symbol | SI Unit |
|-----------|---------|---------|
| Force | F | N |
| Energy | E | J |
| Mass | m | kg |
: SI units used throughout this module {#tbl-siunits}| Quantity | Symbol | SI Unit |
|---|---|---|
| Force | F | N |
| Energy | E | J |
| Mass | m | kg |
Reference the table using:
See @tbl-siunits for a summary of units.See Table 11.1 for a summary of units.
11.2 Collapsible sections
<details>
<summary>Show solution</summary>
The solution can be placed here.
</details>Show solution
The solution can be placed here.
11.3 Callout/highlight boxes
You can include callout boxes to format text areas to draw attention to certain parts. There are five different environments and a custom environment
- note
- tip
- important
- caution
- warning
11.3.1 Example callout syntax
Use the following syntax to create a callout box:
::: {.callout-note}
Here is a callout note.
:::11.3.2 Examples callout boxes
Here is a callout note.
Here is a callout tip.
Here is a callout important.
Here is a callout caution.
Here is a callout warning.
11.3.3 More callout customisation
::: {.callout-note}
## Custom title
Here's my custom block, which displays like a note!
:::Here’s my custom block, which displays like a note!
11.4 Footnotes
11.4.1 Inline footnotes
Footnotes can be created with square brackets.1 using the syntax:
Footnotes can be created with square brackets.^[This is a footnote]11.4.2 Defining footnotes
For longer documents, you may prefer to define footnotes separately:
Quarto supports footnotes.[^1]
[^1\]: This is a footnote.Use footnotes for supplementary information rather than essential content. Avoid overusing footnotes, as they can distract readers from the main narrative and make your content less accessible to process!
11.5 Hiding/commenting out content
You can also include HTML comments that will be not be visible on the page.
These HTML comments are still visible in the rendered HTML source (this is very different from LaTeX). Please don’t put anything there that you don’t want students to see (e.g. solutions!)
<!-- Update this example before publication -->These can also span multiple lines (which can be useful for commenting out sections you don’t need!)
<!--
TODO:
- Add an example for cross-references.
- Check accessibility guidance.
- Review screenshot captions.
-->11.6 Quarto extensions
Quarto extensions are a way to add new features to Quarto. They can be used to create new output formats, add new functionality, or customize the behavior of Quarto.
See the Quarto extensions guidance for a list of extensions and how to create your own.
This is a footnote↩︎