Skip to content

Commit 00d230b

Browse files
committed
add supporting config for pdf output
There are still issues and I would not recommend it.
1 parent 5c709bd commit 00d230b

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

_output.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ bookdown::gitbook:
1818
twitter: no
1919
facebook: no
2020
all: no
21+
22+
#bookdown::pdf_book:
23+
# includes:
24+
# in_header: preamble.tex

preamble.tex

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
% colored boxes (need to change rgb values for that to work)
2+
\usepackage{color}
3+
\usepackage{framed}
4+
\setlength{\fboxsep}{.8em}
5+
\usepackage[utf8]{inputenc}
6+
7+
\newenvironment{green-box}{
8+
\definecolor{shadecolor}{rgb}{217, 255, 233}
9+
\color{white}
10+
\begin{shaded}}
11+
{\end{shaded}}
12+
13+
\newenvironment{blue-box}{
14+
\definecolor{shadecolor}{rgb}{230, 240, 255}
15+
\color{white}
16+
\begin{shaded}}
17+
{\end{shaded}}
18+
19+
\newenvironment{orange-box}{
20+
\definecolor{shadecolor}{rgb}{230, 240, 255}
21+
\color{white}
22+
\begin{shaded}}
23+
{\end{shaded}}
24+
25+
\newenvironment{note}{
26+
\definecolor{shadecolor}{rgb}{223, 221, 221}
27+
\color{white}
28+
\begin{shaded}}
29+
{\end{shaded}}
30+
31+
% does not understand greek beta :)
32+
\usepackage{newunicodechar}
33+
\newunicodechar{β}{$\mathbb{beta}$}
34+
35+
% Remove Zenodo links to solve => Unknown graphics extension: .3988424.svg

0 commit comments

Comments
 (0)