diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-05-10 13:24:46 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-05-10 13:24:46 +0200 |
commit | 2f8d3ac42bb0b5bf644af27b59ee8b02dbb50397 (patch) | |
tree | 0033bd0a963340ded108444b4f54aef02165e2e2 | |
parent | a64f19ad176b83d1a1cd9736dd4e7f468c9ed14d (diff) |
add docs folder with pandoc/latex document template
-rw-r--r-- | doc/.gitignore | 17 | ||||
-rw-r--r-- | doc/base.tex | 54 | ||||
-rw-r--r-- | doc/makefile | 20 | ||||
-rw-r--r-- | doc/research.md | 4 | ||||
-rw-r--r-- | doc/research.tex | 3 |
5 files changed, 98 insertions, 0 deletions
diff --git a/doc/.gitignore b/doc/.gitignore new file mode 100644 index 0000000..25dcb3b --- /dev/null +++ b/doc/.gitignore @@ -0,0 +1,17 @@ +# latex files +*.aux +*.bbl +*.bcf +*.blg +*.fdb_latexmk +*.fls +*.log +*.out +*.run.xml +*.synctex.gz +*.toc +*.synctex(busy) +*.md.tex + +# ignore output files +*.pdf diff --git a/doc/base.tex b/doc/base.tex new file mode 100644 index 0000000..ecc3c8d --- /dev/null +++ b/doc/base.tex @@ -0,0 +1,54 @@ +\documentclass[11pt, a4paper, english]{article} +\usepackage[margin=1in]{geometry} + +\usepackage{float} +\usepackage{babel} +\usepackage{siunitx} +\usepackage{amsmath} +\usepackage{csquotes} +\usepackage{parskip} +\usepackage{unicode-math} +\usepackage{fontspec} +\usepackage{tabularx} +\usepackage{booktabs} +\usepackage{needspace} +\usepackage{hyperref} +% \usepackage[backend=biber, +% bibencoding=utf8, +% style=apa +% ]{biblatex} + +\setmainfont{TeX Gyre Schola} +\setmathfont{TeX Gyre Schola Math} +\sisetup{ + group-separator = {.}, + output-decimal-marker = {,} +} + +\bigskipamount=7mm +\medskipamount=4mm +\parindent=0mm + +\title{\doctitle} +\author{ + Bjorn Martens\\2187272 + \and + Joshua Regnier\\2183008 + \and + Loek Le Blansch\\2180996 + \and + Niels Stunnebrink\\2184532 +} + +\begin{document} +\begin{titlepage} +\maketitle +\thispagestyle{empty} +\end{titlepage} + +\tableofcontents +\newpage + +\input{\jobname.md.tex} +\end{document} + diff --git a/doc/makefile b/doc/makefile new file mode 100644 index 0000000..9f4dfa0 --- /dev/null +++ b/doc/makefile @@ -0,0 +1,20 @@ +.PHONY: all clean + +TARGET := $(patsubst %.md,%.pdf, $(wildcard *.md)) + +all: $(TARGET) + +garbage = $1.aux $1.bbl $1.bcf $1.blg $1.fdb_latexmk $1.fls $1.log $1.out $1.run.xml $1.synctex.gz $1.toc $1.md.tex + +%.pdf: %.svg + rsvg-convert -f pdf -o $@ $< + +%.pdf: %.tex base.tex %.md.tex + latexmk $< -shell-escape -halt-on-error -lualatex -f -g + +%.md.tex: %.md + pandoc -t latex -o $@ $< + +clean: + $(RM) $(call garbage,research) research.pdf + diff --git a/doc/research.md b/doc/research.md new file mode 100644 index 0000000..1a616f9 --- /dev/null +++ b/doc/research.md @@ -0,0 +1,4 @@ +# test 1 + +this is a test document in markdown that will get converted into latex + diff --git a/doc/research.tex b/doc/research.tex new file mode 100644 index 0000000..af15484 --- /dev/null +++ b/doc/research.tex @@ -0,0 +1,3 @@ +\newcommand\doctitle{Research document} +\input{base.tex} + |