-
Notifications
You must be signed in to change notification settings - Fork 2
/
docs.sh
83 lines (78 loc) · 2.73 KB
/
docs.sh
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
# copy all files from wiki/ to docs/
cp -a wiki/* docs/
# change directory to docs/
cd docs
# convert homepage to tex, which will be inserted via the template
pandoc ../wiki/Home.md --output preface.tex
# convert wiki to pdf via pdflatex
pandoc \
--template=pandoc.tex \
--from markdown+backtick_code_blocks \
--metadata title="Short-term forecasting of electricity generation, demand and market prices using machine learning" \
--metadata author="Nithiya Streethran" \
--metadata subject="ENergy SYStems in TRAnsition (ENSYSTRA)" \
--variable date="`date '+%-d %B %Y'`" \
--variable keywords="forecasting, electricity market, machine learning, energy transition" \
--metadata copyright="Copyright (c) `date '+%Y'` Nithiya Streethran. Licensed under the GNU Free Documentation License Version 1.3." \
--metadata licenseurl="https://www.gnu.org/licenses/fdl-1.3" \
--metadata contactemail="[email protected]" \
--variable fontsize=10pt \
--variable geometry:margin=2.5cm \
--variable papersize="a4" \
--variable fontfamily="mathpazo" \
--variable classoption="twoside" \
--variable linkcolor=blue \
--variable toccolor=blue \
--variable urlcolor=blue \
--toc \
--variable toc-title="Table of Contents" \
--variable lof=true \
--variable lot=true \
--filter pandoc-crossref \
--metadata autoSectionLabels=true \
--bibliography References.bib \
--filter pandoc-citeproc \
--csl IEEEurl.csl \
--metadata link-citations=true \
--reference-location=block \
--listings \
../wiki/Background.md \
../wiki/Problem-definition.md \
../wiki/Objectives.md \
../wiki/Regions.md \
../wiki/Data.md \
../wiki/Methodology.md \
../wiki/Abbreviations.md \
refs.md \
../wiki/License.md \
--output docs.pdf
# convert wiki to html
pandoc --standalone \
--from markdown+backtick_code_blocks \
--highlight-style=tango \
--metadata title="Short-term forecasting of electricity generation, demand and market prices using machine learning" \
--metadata author="Nithiya Streethran" \
--metadata date="`date '+%-d %B %Y'`" \
--toc \
--toc-depth=3 \
--css solarized.css \
--filter pandoc-crossref \
--metadata autoSectionLabels=true \
--bibliography References.bib \
--filter pandoc-citeproc \
--csl IEEEurl.csl \
--metadata link-citations=true \
../wiki/Home.md \
logos.html \
../wiki/Background.md \
../wiki/Problem-definition.md \
../wiki/Objectives.md \
../wiki/Regions.md \
../wiki/Data.md \
../wiki/Methodology.md \
../wiki/Abbreviations.md \
refs.md \
../wiki/License.md \
--output index.html
# change directory back to the previous level
cd ..