-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.qmd
160 lines (105 loc) · 3.23 KB
/
template.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
---
title: Metropolis Beamer Theme for Revealjs
subtitle: A theme inspired by [beamer metropolis theme](https://www.overleaf.com/latex/templates/metropolis-beamer-theme/qzyvdhrntfmr)
format:
metropolis-beamer-revealjs: default
# theme: style.scss
header-logo: images/rstudio.png
header-logo-link: "https://posit.co/"
slide-number: "c"
author:
- name: Author X
orcid: 0000-0000-0000-0000
email: author.x@email.com
affiliations: Institution X
- name: Author Y
orcid: 0000-0000-0000-0001
email: author.y@email.com
affiliations: Institution Y
date: last-modified
bibliography: references.bib
embed-resources: true
---
# Components
## Components
### Alert and Example Inline style
To emphasize specific words or text, you can:
- Use the default `.alert` class, e.g. [important note]{.alert}.
- Use the default `.example` class e.g. [For example, look at this text]{.example}
## Components
### Custom Inline Color Attributes
- Use inline `color` and `bg` attribute for custom color and background color,
- `[colored text]{color="#2a74f5"}` produce [colored text]{color="#2a74f5"}
- `[text with background color]{bg="#f5e347"}` produce [text with background color]{bg="#f5e347"}
- `[colored text with background]{color="#2a74f5" bg="#f5e347"}` produce [colored text]{color="#2a74f5" bg="#f5e347"}
- [Note that, when using inline attributes, DO NOT PUT SPACE on either side of equal (`=`) sign, that, write like `color="#2a74f5"`, instead of `color = "#2a74f5"`]{.alert}
## Components
### Blockquotes
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vel rhoncus ante. Donec vitae euismod nibh. In ultrices vestibulum erat, non maximus orci elementum in. Ut eget erat et felis consequat volutpat. Donec ac iaculis justo. Phasellus vitae mi tempor leo scelerisque consequat sed at nibh.
## Components
### Citations
1. @R-knitr
2. @R-rmarkdown
3. @R-quarto
# Callout Blocks
## Custom Blocks
There are three custom blocks that you can use. Create them using `.callout` class in a div (`:::`) and specify the type.
- For default block, use `type='default'`
- For alert block, use `type='alert'`
- For example block, use `type='example'`
## Default block
```{.markdown}
::: {.callout type='default'}
## Default block
This is a default block
:::
```
renders to,
::: {.callout type='default'}
## Default block
This is a default block
:::
## Alert Block
```{.markdown}
::: {.callout type='alert'}
## Alert Block
This is a alert block
:::
```
renders to,
::: {.callout type='alert'}
## Alert Block
This is a alert block
:::
## Example Block
```{.markdown}
::: {.callout type='example'}
## Example Block
This is a example block
:::
```
renders to,
::: {.callout type='example'}
## Example Block
This is a example block
:::
## Tables
| fruit | price |
|--------|--------|
| apple | 2.05 |
| pear | 1.37 |
| orange | 3.09 |
: Fruit prices {#tbl-markdown tbl-colwidths="[75,25]"}
@tbl-markdown is created using markdown.
## Tables
```{r}
#| label: tbl-co2
#| tbl-cap: Carbon Dioxide Uptake in Grass Plants (Data from R)
knitr::kable(head(CO2))
```
For details of @tbl-co2, check by running `?CO2` in R console.
## Images
![Random Image from Picsum](images/picsum.png)
## References
::: {#refs}
:::