-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplateslide.Rmd
More file actions
218 lines (163 loc) · 3.4 KB
/
templateslide.Rmd
File metadata and controls
218 lines (163 loc) · 3.4 KB
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
---
title: Slide template
layout: slide
---
<textarea id="source">
name: inverse
layout: true
class: center, middle, inverse
---
template: inverse
## How does it work, then?
---
layout: false
# 1st slide
> Blockquote
> works nicely.
---
# Agenda
1. Introduction
--
2. Deep-dive
3. ...
---

---
.left-column[
## What is it?
## Why use it?
## When???
]
.right-column[
If your ideal slideshow creation workflow contains any of the following steps:
- Just write what's on your mind
- Do some basic styling
- Easily collaborate with others
- Share with and show to everyone
Then remark might be perfect for your next.red[*] slideshow!
.footnote[.red[*] You probably want to convert existing slideshows as well]
]
---
.left-2column[
## Left
```r
a <- 10
*c <- c(5, 6)
```
]
--
.right-2column[
## Right
```r
a <- 10
*b = a
c <- c(5, 6)
```
]
---
## This is full width title
.left-2column[
```r
a <- 10
*c <- c(5, 6)
```
]
--
.right-2column[
```r
a <- 10
*b = a
c <- c(5, 6)
```
]
---
# Introduction
```r
a <- 10
*b = a
f <- a
```
<p>Inline math is \(x_i = \sqrt{\frac{a}{c}} \), or eq:</p>
<p>$$x_i = \pi r_{i+1}^{\Lambda}$$</p>
<p>\[x_i = \pi r_{i}^{\Lambda}\]</p>
Inline math is `$x_i = \sqrt{\frac{a}{c}} $`, or eq:
`$$x_i = \pi r_{i+1}^{\Lambda}$$`
`$$x_i = \pi r_{i}^{\Lambda}$$`
.footnote[.red.bold[*] Important footnote]
---
class: center, middle
# `\(\LaTeX{}\)` in remark
---
# Display and Inline
1. This is an inline integral: `\(\int_a^bf(x)dx\)`
2. This is an inline integral, too: `$\int_a^bf(x)dx$`
3. More `\(x={a \over b}\)` formulae.
Display formula:
`$$e^{i\pi} + 1 = 0$$`
---
# Figures optimized for slides
```r
## defining a website compatible palette
dcpal_flatly <- list(
"red"="#c7254e",
"palered"="#f9f2f4",
"primary"="#2c3e50",
"success"="#18bc9c",
"info"="#3498db",
"warning"="#f39c12",
"danger"="#e74c3c",
"pre_col"="#7b8a8b",
"pre_bg"="#ecf0f1",
"pre_border"= "#cccccc"
)
dcpal_reds <- colorRampPalette(c("#f9f2f4", "#c7254e"))
dcpal_ogrd <- colorRampPalette(c("#f39c12", "#e74c3c"))
dcpal_grbu <- colorRampPalette(c("#18bc9c",
"#3498db", "#2c3e50"))
```
---
## continued
```r
png("~/repos/datacloning.github.io/images/480x.png",
width = 480, height = 480)
op <- par(las=2, mar=c(6,5,2,2), mfrow=c(2,2))
barplot(1:length(dcpal_flatly),
names=names(dcpal_flatly),
border=dcpal_flatly$pre_border,
col=unlist(dcpal_flatly))
barplot(1:10, col=dcpal_reds(10), main="Reds")
barplot(1:10, col=dcpal_grbu(10), main="Green-Blue")
barplot(1:10, col=dcpal_ogrd(10), main="Orange-Red")
par(op)
dev.off()
```
---
# 480 x 480

---
## continued
```r
png("~/repos/datacloning.github.io/images/600x800.png",
width = 800, height = 600)
op <- par(las=2, mar=c(6,5,2,2), mfrow=c(2,2))
barplot(1:length(dcpal_flatly),
names=names(dcpal_flatly),
border=dcpal_flatly$pre_border,
col=unlist(dcpal_flatly))
barplot(1:10, col=dcpal_reds(10), main="Reds")
barplot(1:10, col=dcpal_grbu(10), main="Green-Blue")
barplot(1:10, col=dcpal_ogrd(10), main="Orange-Red")
par(op)
dev.off()
```
---
# 600 x 800: does not fit

???
Note: 600 x 800 fig is too big, don't use any text around it.
This is pretty much the max size for a figure.
---

???
It looks much better without a header. Keep that in mind.
</textarea>