-
Notifications
You must be signed in to change notification settings - Fork 1
/
session-text.qmd
191 lines (132 loc) · 3.38 KB
/
session-text.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
---
title: "Formatting text in Quarto"
subtitle: "Session - Text"
execute:
eval: true
---
```{r}
#| label: packages
library(countdown)
```
## Markdown
Quarto reports support text and code with the text being `Markdown`
**Q**uarto **M**ark**d**own
`.qmd` file
## Headers
``` markdown
# HEADER 1
## HEADER 2
### HEADER 3
#### HEADER 4
##### HEADER 5
###### HEADER 6
```
. . .
::: {.callout-warning collapse="false" appearance="default" icon="true"}
## Watch the spaces! (warning)
Make sure that there is a space between the hashes!
#Example no space!
:::
::: notes
Ask to copy and paste to a report as this won't render in presentation slides - 2 hashes means it's a new slide.
Also show the Visual mode in RStudio for headers
:::
## Navigating headers in RStudio
![](img/outline-headers.PNG){fig-alt="Screenshot of Headers Outline as appears in newer versions of RStudio, includes the word Outline" width="250"}
## Headers and chunk table of contents
![](img/rstudio-toc.PNG){fig-alt="Screenshot of RStudio headers and chunks" width="312"}
## Formatting Text
Text formatting uses [markdown](https://www.markdownguide.org/basic-syntax/)
::: columns
::: {.column width="40%"}
``` markdown
**Bold**
_Italic_
*Also Italic *
***Bold and italic***
```
:::
::: {.column width="60%"}
**Bold**\
*Italic*\
*Also Italic*\
***Bold and italic***
:::
:::
. . .
::: {.callout-caution collapse="false" appearance="default" icon="true"}
### Underlining is missing
Whilst underlining can be done using using html it's not accessible for everyone and can be confused with hyperlinks so is best avoided
:::
## Lists
Bullets can be created with `*` or `-` and numbers can be `1.` repeated
. . .
:::: {.columns}
::: {.column width='40%'}
```markdown
- Patient (_Unique NHS Number_)
- Referral (_Not unique_)
* Contact (_Not unique_)
* Diagnoses (_Multiple entries_)
These data types occur in various places
1. Mental Health
1. Outpatients
1. GPs
```
:::
::: {.column width='60%'}
- Patient (_Unique NHS Number_)
- Referral (_Not unique_)
* Contact (_Not unique_)
* Diagnoses (_Multiple entries_)
These data types occur in various places
1. Mental Health
1. Outpatients
1. GPs
:::
::::
## When lists don't work
:::{.callout-warning collapse=false appearance='default' icon=true}
### Spaces!
- A return space is needed to separate the list from preceding text
- Spaces between the bullet symbol and text are also required
- Separating lines that are not in bullets can be done with two spaces at the end
:::
. . .
Copy this to `covid-analysis.qmd` and correct the issues
:::: {.columns}
::: {.column width='50%'}
```markdown
Check the spacing:
- This is right up against the text
-This is missing a space
*Also missing a space
These two lines
need to be separated using two space
```
:::
::: {.column width='50%'}
```{r}
countdown::countdown(
minutes = 6,
color_border = "#005EB8",
color_text = "#005EB8",
color_running_text = "white",
color_running_background = "#005EB8",
color_finished_text = "#005EB8",
color_finished_background = "white",
font_size = "2em",
warn_when = 10,
bottom = 1
)
```
:::
::::
## Hyperlink
### Using markdown and brackets `[]()`
Using the `[]` for the words:
``` markdown
Sign up to free events through the [NHS-R Community](https://nhsrcommunity.com/) website
```
Sign up to free events through the [NHS-R Community](https://nhsrcommunity.com/) website
## Next Section