-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.Rmd
65 lines (52 loc) · 1.79 KB
/
test.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
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
---
title: "Untitled"
author: "®γσ ξηg <img src='figure/aaaa.jpg' width='16'>"
date: "10/20/2020"
html_document:
mathjax: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
---
$$
\begin{align*}
Y& = \beta_{0} + \beta_{1}X_{1} + \beta_{2}X_{2} + \beta_{3}X_{1}X_{2}\\
&= \beta_{0} + {\color{Red} \widetilde{\beta_{1}}}X_{1} + \beta_{2}X_{2}; {\color{Red} \widetilde{\beta_{1}}} = \beta_{1} + \beta_{2}X_{2}\\
\end{align*}
$$
$$
\begin{align*}
\color{red}{x} + \color{blue}{y}\\
{\color{red} x} + {\color{blue} y}\\
\color{Red} \beta_{1}X_{1}\\
{\color{Red} \beta_{1}}X_{1}\\
\end{align*}
$$
$$
\color{Red} \widetilde{\beta_{1}}X_{1}
$$
$$
{\color{Red} \widetilde{\beta_{1}}}}X_{1}
$$
$$
{\color{Red} \widetilde{\beta_{1}}}
$$
`r lib('vembedr'); vlist <- c('C1hrbXlreY4', 'O8qPQNz8Q8Y', '3pnXMEusQCY', 'E9_eAm2tTns', 'budv9DSiuko'); embed_youtube(vlist[1], height=215)` `r embed_youtube(vlist[2], height=215)` `r embed_youtube(vlist[3], height=215)` `r embed_youtube(vlist[4], height=215)` `r embed_youtube(vlist[5], height=215)`
```{r results = 'asis', error = TRUE}
library(bslib)
theme <- bs_theme(
# Controls the default grayscale palette
bg = "#202123", fg = "#B8BCC2",
# Controls the accent (e.g., hyperlink, button, etc) colors
primary = "#EA80FC", secondary = "#48DAC6",
base_font = c("Grandstander", "sans-serif"),
code_font = c("Courier", "monospace"),
heading_font = "'Helvetica Neue', Helvetica, sans-serif",
# Can also add lower-level customization
"input-border-color" = "#EA80FC"
)
if (interactive()) {
bs_theme_preview(theme)
}
# Lower-level bs_add_*() functions allow you to work more
# directly with the underlying Sass code
theme <- bs_add_variables(theme, "my-class-color" = "red")
theme <- bs_add_rules(theme, ".my-class { color: $my-class-color }")
```