-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.Rmd
78 lines (65 loc) · 1.9 KB
/
index.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
title: "R语言-水文气象学应用分析"
author: "孔冬冬"
date: "`r Sys.Date()`"
documentclass: ctexbook
bibliography: [book.bib, packages.bib]
biblio-style: apalike
link-citations: yes
colorlinks: yes
# lot: yes
# lof: yes
# geometry: "left=3cm, right=3cm, top=2.5cm, bottom=2.5cm"
# fontsize: 11pt
# linestretch: 1
geometry: [a4paper, tmargin=2.5cm, bmargin=2.5cm, lmargin=2cm, rmargin=2cm]
fontsize: 11pt
linestretch: 1
toc-depth: 2
site: bookdown::bookdown_site
description: "R语言-水文气象学应用分析"
github-repo: yihui/bookdown-chinese
#cover-image: images/cover.jpg
---
```{r setup, include=FALSE}
options(
htmltools.dir.version = FALSE, formatR.indent = 2, width = 80, digits = 4
)
# 填上你需要用到的包,如 c('ggplot2', 'dplyr')
lapply(c(), function(pkg) {
if (system.file(package = pkg) == '') install.packages(pkg)
})
```
```{r, include=FALSE}
knitr::opts_chunk$set(
echo = TRUE,
fig.width = 10,
fig.height = 5,
# dev='svg',
cache = TRUE
# root.dir = '../../..'
)
library(Ipaper)
Ipaper::set_font()
```
```{r include=FALSE}
# automatically create a bib database for R packages
knitr::write_bib(c(
# .packages(),
'bookdown', 'knitr', 'rmarkdown'
), 'packages.bib')
```
# 前言 {#Prerequisites .unnumbered}
建议采用TinyTeX (which includes XeLaTeX): <https://yihui.org/tinytex/>编译本书的pdf版本。
你好,世界。我写了一本书。这本书是这样的,第 \@ref(latticeMap) 章介绍了啥啥,然后是啥啥……
我用了两个 R 包编译这本书,分别是 **knitr**\index{knitr} [@xie2015] 和 **bookdown**\index{bookdown} [@R-bookdown]。以下是我的 R 进程信息:
```{r}
sessionInfo()
```
**致谢**
非常感谢谁谁以及谁谁对我的帮助。艾玛,要不是他们神一样的队友,我两年前就写完这本书了。
```{block2, type='flushright', html.tag='p'}
张三
于 A 村某角落
```
\mainmatter