-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExample-Full-Magazine.Rmd
85 lines (63 loc) · 2.1 KB
/
Example-Full-Magazine.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
79
80
81
82
83
---
output:
pdf_document:
toc: false
latex_engine: xelatex
fig_caption: true
includes:
in_header:
- "../Templates/Magazine-preamble.tex"
fontsize: 12pt
linestretch: 1
documentclass: book
pagestyle: plain
classoption:
- twoside
- openany
indent: true
editor_options:
chunk_output_type: inline
always_allow_html: true
---
```{r, include=FALSE}
knitr::opts_chunk$set(
echo = FALSE,
results = 'asis'
)
include_text <- function(textfile) {
cat(readLines(here::here(textfile)))
}
```
\pagenumbering{gobble}
\InsertFullPicture{../Images/Magazine-cover.jpg}
\clearpage
\InsertFullPicture{../Images/Filler.jpg}
\clearpage
\pagenumbering{roman}
\vspace*{2in}
\HUGEST
\begin{center}
MaD HaTTeR Magazine
\end{center}
\vspace*{\fill}
\newpage
\phantom{page}
\newpage
\vspace*{\fill}
\BIG{Dear readers,}\large
This is a demonstration of what the magazine template can look like. Please read the Author Guide on the [magazine template GitHub page](https://github.com/christelinda-laureijs/magazine-latex-template) for examples of the available \LaTeX\ commands. This magazine shows an example of a full-page background image (useful for advertisements or photos) and a fully-styled article.
Please see the original `.Rmd` file (`Example-Full-Magazine.Rmd`) to see how you can put together the magazine. You may also want to explore the `Magazine-preamble.tex` preamble in the `Templates/` folder.
All text should be stored as plaintext (`.txt`) files in the `Submissions/` folder, and all images should go in `Images/`. To save space and reduce the rendering time, you may want to consider keeping high-resolution pngs in early drafts, but use .jpgs in the final document.
Good luck, and enjoy!
\begin{spacing}{1.5}
`r format(Sys.time(),'%B %d, %Y')`
\end{spacing}
\normalsize
\vspace*{\fill}
\small
This magazine was typeset in RMarkdown and \LaTeX\ using a template developed by Christelinda Laureijs. Unless otherwise stated, all images were licensed for reuse and adaptation or released under a public domain license.
\normalsize
\clearpage
```{r}
include_text("Submissions/Alice-in-Wonderland.txt")
```