Last active
February 15, 2024 15:34
-
-
Save RaymondBalise/3ed5c1dfabc5ca1514462b57cecb5666 to your computer and use it in GitHub Desktop.
There are Markdown code snippets for the RStudio IDE. Click the Tools > Global Options... menu; then click the code Code windowpane; then click the Edit Snippets... button; then click the Markdown windowpane; go to the bottom and paste this gist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2024-02-15 | |
# quarto callout note | |
snippet con | |
:::{.callout-note appearance=minimal} | |
${1:text} | |
::: | |
# quarto callout tip | |
snippet cot | |
:::{.callout-tip appearance=simple} | |
${1:text} | |
::: | |
# quarto callout warning | |
snippet cow | |
:::{.callout-warning appearance=simple} | |
${1:text} | |
::: | |
# quarto two-column display | |
snippet two | |
:::: {.columns} | |
::: {.column width="50%"} | |
${1:left-content} | |
::: | |
::: {.column width="50%"} | |
${2:right} | |
::: | |
:::: | |
# quarto two columns with centered text | |
snippet twocenter | |
:::: {.columns style='display: flex !important; height: 40%;'} | |
::: {.column style='display: flex; justify-content: center; align-items: center; text-align: left;'} | |
${1:left-content} | |
::: | |
::: {.column style='display: flex; justify-content: center; align-items: center; text-align: left;'} | |
${2:right} | |
::: | |
:::: | |
# quarto slide speaker note | |
snippet note | |
::: {.notes} | |
${1:note} | |
::: | |
# quarto new vs. old code | |
snippet no | |
```{r} | |
${0:code} | |
``` | |
```{r} | |
#| eval: false | |
#| code-fold: true | |
#| code-summary: "Original code" | |
``` | |
# quarto footer | |
snippet footer | |
::: {.footer style="font-size: .2em;"} | |
${0} | |
::: | |
# quarto image | |
snippet image | |
::: {} | |
![](images/${0}){.nostretch fig-align="center" width=50%} | |
::: |
2022-09-02: Add two column snip
2022-09-03: Added cot snip and instructions
2022-09-09: Add speaker note for a slide
2024-02-15 Added twocenter, no, footer, image
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2022-08-23: Add quarto snips