-
Notifications
You must be signed in to change notification settings - Fork 0
/
05-blocks.Rmd
30 lines (18 loc) · 845 Bytes
/
05-blocks.Rmd
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
# Blocks
## Equations
Here is an equation.
\begin{equation}
f\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k}
(\#eq:binom)
\end{equation}
You may refer to using `\@ref(eq:binom)`, like see Equation \@ref(eq:binom).
## Theorems and proofs
Labeled theorems can be referenced in text using `\@ref(thm:tri)`, for example, check out this smart theorem \@ref(thm:tri).
::: {.theorem #tri}
For a right triangle, if $c$ denotes the *length* of the hypotenuse
and $a$ and $b$ denote the lengths of the **other** two sides, we have
$$a^2 + b^2 = c^2$$
:::
Read more here <https://bookdown.org/yihui/bookdown/markdown-extensions-by-bookdown.html>.
## Callout blocks
The R Markdown Cookbook provides more help on how to use custom blocks to design your own callouts: https://bookdown.org/yihui/rmarkdown-cookbook/custom-blocks.html