title | subtitle | author | date | site | documentclass | bibliography | lot | lof | colorlinks | toccolor | link-citations | nocite | mathspec | graphics | subject | keywords | hyperrefoptions | github-repo | classoption | description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
统计学习方法-读书笔记 |
李航(第二版) |
|
2022-04-20 |
bookdown::bookdown_site |
elegantbook |
|
true |
true |
true |
Maroon |
true |
@* |
true |
true |
统计学习方法-读书笔记 |
|
|
XiangyunHuang/ElegantBookdown |
|
最初看到 elegantbook 做的书籍样式很漂亮,就想把它引入到 bookdown 中,遂定制了此模版。在此基础上,做了迁移和扩展的工作,融合了 LaTeX (精美)、Pandoc (简洁) 和 R (强大) 的特性。This is a bookdown template based on ElegantBook. The output format for this template is bookdown::gitbook and bookdown::pdf_book. |
\mainmatter
::: {.lemma #chf-pdf}
For any two random variables
::: {.theorem #chf-sum}
If
::: {.proposition #unnamed-chunk-1}
The distribution of the sum of independent Poisson random variables
数学公式加粗可能是最常见的需求之一, elegantbook 宏包提供的文类 elegantbook.cls
已经调用了 bm 宏包 1。有了 bm 宏包,就可以使用 bm 宏包提供的 \bm{}
命令,而不需要调 \boldsymbol{}
加粗希腊字母,如将 \bm{}
命令的,所以需要在 header.html
自定义 \bm{}
命令:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
Macros: {
bm: ["{\\boldsymbol #1}",1],
}
}
});
</script>
进一步地,使用常用的 3 个取消符号 header.html
添加 JS 库 cancel.js
,
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
Macros: {
bm: ["{\\boldsymbol #1}",1],
},
extensions: ["cancel.js"]
}
});
</script>
并在 preamble.tex 文件中添加一行代码加载 cancel 宏包
\usepackage[makeroom]{cancel}
基于 Pandoc 自定义 block 是一件很有意思的事情,目前不想让模版过于复杂,仅给出几个最常用的例子。如何自定义可以去看谢益辉的新书 https://bookdown.org/yihui/rmarkdown-cookbook/custom-blocks.html。
[要做的还有很多]{.todo}
::: {.rmdwarn data-latex="{警告}"} 这是警告 :::
::: {.rmdtip data-latex="{提示}"} 这是提示 :::
:::: {.rmdnote data-latex="{注意}"} 这是注意 ::::
::: {.rmdinfo} 普通说明 :::