-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.Rmd
53 lines (41 loc) · 1.24 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
---
title: "Statistical Modeling: A Fresh Approach (3/ed)"
author: "Daniel Kaplan"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
output:
bookdown::html_book:
toc: no
css: toc.css
documentclass: book
bibliography: [book.bib, packages.bib]
biblio-style: apalike
link-citations: yes
github-repo: "dtkaplan/SM3"
description: "Third edition of Statistical Modeling: A Fresh Approach."
---
# Outline {-}
The outline is going to go here.
# To build this book {-}
This `index.Rmd` will always contain the first part of the book.
For a Tufte book in HTML, give the following command in the shell:
```
sh _build.sh
```
To get the navigation as a bar, somehow contrive to put these two
lines just before the table of contents in the HTML file:
```
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="toc.css" type="text/css" />
```
For a PDF file, change `_build.sh` or just run the following command:
```
Rscript -e "bookdown::render_book('index.Rmd', bookdown::tufte_book2())"
```
To avoid chapter numbering, put `{-}` after the level-one heading.
```{r include=FALSE}
# automatically create a bib database for R packages
knitr::write_bib(c(
.packages(), 'bookdown', 'knitr', 'rmarkdown'
), 'packages.bib')
```