-
Notifications
You must be signed in to change notification settings - Fork 11
/
iris_data_set_vm4.rmd
52 lines (45 loc) · 2.04 KB
/
iris_data_set_vm4.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
---
params:
doc_version: x.y
altplot: !r FALSE
title: "`r paste0('iris_data_set_vm4 v',params$doc_version)`"
author: "Han Oostdijk (www.hanoostdijk.nl)"
date: "`r format(Sys.time(), '%d %B, %Y')`" # current date
graphics: yes
linkcolor: blue
output:
pdf_document:
fig_caption: yes
includes:
in_header:
- styles.tex
- extra1.tex
before_body: extra2.tex
keep_tex: no
highlight: tango
geometry:
- a4paper
- landscape
toc: true
toc_depth: 2
knit: (function(inputFile, encoding) {rmarkdown::render(inputFile,encoding=encoding,clean=T,output_file = 'Iris_data_set_vm4.pdf') })
bibliography: mybib.bib
---
```{r child='iris_data_set_bib1.rmd'}
```
# Introduction
See the Introduction pdf for the various examples and the relation of this example to the others.
This example is the nearly the same as the previous example. The difference is that the parameter \mytextit{altplot} is now set to `r F` and that the bibiography is now in an external file. The latter is convenient when you often reference the same items. The bibliography has to be specified in the yaml-header and is fully handled by Pandoc and not by the \LaTeX \ processor. Therefore the Pandoc way of referring has to be used and not the \BSLASH{cite} method.
# Load data and create plot object
Before plotting the iris data set (in `r ref_tab('r1a',F)`) we list the first `r numlist` (because we set variable \mytextit{numlist} to `r numlist` in a chunck we do not present to the reader) observations in the data set in `r ref_tab('lbltab1',T)`.
As an example of a reference we use [@myrefa]. You can also include a reference in an inline footnote as demonstrated here^[This footnote references [@myrefb] and [@article].].
NB. using the \LaTeX \ \mytextbf{\BSLASH{footnote}}-command does not give the correct layout.
```{r child='iris_data_set_bib2.rmd'}
```
```{r echo=F,results='asis'}
# to include References in the table of contents
#cat('\\cleardoublepage')
#cat('\\phantomsection')
cat('\\addcontentsline{toc}{section}{References}')
```
# References