From 2f8d3ac42bb0b5bf644af27b59ee8b02dbb50397 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 10 May 2023 13:24:46 +0200 Subject: add docs folder with pandoc/latex document template --- doc/.gitignore | 17 +++++++++++++++++ doc/base.tex | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ doc/makefile | 20 ++++++++++++++++++++ doc/research.md | 4 ++++ doc/research.tex | 3 +++ 5 files changed, 98 insertions(+) create mode 100644 doc/.gitignore create mode 100644 doc/base.tex create mode 100644 doc/makefile create mode 100644 doc/research.md create mode 100644 doc/research.tex 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} + -- cgit v1.2.3