├── report-bib ├── bibliography.md ├── report-bib.pdf ├── dynamic │ ├── python.md │ ├── javascript.md │ └── ruby.md ├── index.txt ├── functional │ ├── fsharp.md │ └── haskell.md ├── static │ ├── csharp.md │ └── java.md ├── Makefile ├── biblio.bib ├── README.md ├── cover.tex ├── template.tex └── style.csl ├── report ├── report.pdf ├── dynamic │ ├── python.md │ ├── javascript.md │ └── ruby.md ├── index.txt ├── functional │ ├── fsharp.md │ └── haskell.md ├── Makefile ├── static │ ├── csharp.md │ └── java.md ├── README.md ├── cover.tex └── template.tex ├── assignment ├── assignment.pdf ├── Makefile ├── README.md ├── assignment.md └── template.tex ├── README.md ├── LICENSE └── .gitignore /report-bib/bibliography.md: -------------------------------------------------------------------------------- 1 | # Bibliography # 2 | -------------------------------------------------------------------------------- /report/report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lauritzsh/pandoc-markdown-template/HEAD/report/report.pdf -------------------------------------------------------------------------------- /assignment/assignment.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lauritzsh/pandoc-markdown-template/HEAD/assignment/assignment.pdf -------------------------------------------------------------------------------- /report-bib/report-bib.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lauritzsh/pandoc-markdown-template/HEAD/report-bib/report-bib.pdf -------------------------------------------------------------------------------- /report/dynamic/python.md: -------------------------------------------------------------------------------- 1 | ## Python 2 | Python is a widely used general-purpose, high-level programming language. 3 | 4 | ```python 5 | print "Hello World!" 6 | ``` 7 | -------------------------------------------------------------------------------- /report/index.txt: -------------------------------------------------------------------------------- 1 | dynamic/ruby.md 2 | dynamic/python.md 3 | dynamic/javascript.md 4 | static/java.md 5 | static/csharp.md 6 | functional/haskell.md 7 | functional/fsharp.md 8 | -------------------------------------------------------------------------------- /report-bib/dynamic/python.md: -------------------------------------------------------------------------------- 1 | ## Python 2 | Python is a widely used general-purpose, high-level programming language ^[@item2]. 3 | 4 | ```python 5 | print "Hello World!" 6 | ``` 7 | -------------------------------------------------------------------------------- /report-bib/index.txt: -------------------------------------------------------------------------------- 1 | dynamic/ruby.md 2 | dynamic/python.md 3 | dynamic/javascript.md 4 | static/java.md 5 | static/csharp.md 6 | functional/haskell.md 7 | functional/fsharp.md 8 | bibliography.md 9 | -------------------------------------------------------------------------------- /report/dynamic/javascript.md: -------------------------------------------------------------------------------- 1 | ## JavaScript 2 | JavaScript, also known as ECMAScript (the untrademarked name used for the 3 | standard), is a dynamic programming language. 4 | 5 | ```javascript 6 | console.log('Hello World!'); 7 | ``` 8 | -------------------------------------------------------------------------------- /report/functional/fsharp.md: -------------------------------------------------------------------------------- 1 | ## F# # 2 | F# is a strongly typed, multi-paradigm programming language that encompasses 3 | functional, imperative, and object-oriented programming techniques. 4 | 5 | ```fsharp 6 | printfn "Hello World!" 7 | ``` 8 | -------------------------------------------------------------------------------- /report-bib/functional/fsharp.md: -------------------------------------------------------------------------------- 1 | ## F# # 2 | F# is a strongly typed, multi-paradigm programming language that encompasses 3 | functional, imperative, and object-oriented programming techniques. 4 | 5 | ```fsharp 6 | printfn "Hello World!" 7 | ``` 8 | -------------------------------------------------------------------------------- /report-bib/dynamic/javascript.md: -------------------------------------------------------------------------------- 1 | ## JavaScript 2 | JavaScript, also known as ECMAScript (the untrademarked name used for the 3 | standard), is a dynamic programming language. See @item3. 4 | 5 | ```javascript 6 | console.log('Hello World!'); 7 | ``` 8 | -------------------------------------------------------------------------------- /assignment/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: typeset 2 | 3 | typeset: 4 | pandoc \ 5 | --from markdown \ 6 | --to latex \ 7 | --template template.tex \ 8 | --out assignment.pdf \ 9 | --pdf-engine xelatex \ 10 | assignment.md 11 | -------------------------------------------------------------------------------- /report-bib/dynamic/ruby.md: -------------------------------------------------------------------------------- 1 | \chapter{Dynamic languages} 2 | 3 | ## Ruby 4 | Ruby is a dynamic, reflective, object-oriented, general-purpose programming 5 | language [@item1]. 6 | 7 | ### Code examples 8 | Some simple code examples [-@item1]. 9 | 10 | #### Hello World 11 | 12 | ```ruby 13 | puts "Hello World!" 14 | ``` 15 | -------------------------------------------------------------------------------- /report/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: typeset 2 | 3 | FILES=`cat index.txt` 4 | 5 | typeset: 6 | pandoc \ 7 | --from markdown \ 8 | --to latex \ 9 | --template template.tex \ 10 | --out report.pdf \ 11 | --pdf-engine xelatex \ 12 | $(FILES) 13 | -------------------------------------------------------------------------------- /report/functional/haskell.md: -------------------------------------------------------------------------------- 1 | \chapter{Functional languages} 2 | 3 | ## Haskell 4 | Haskell is a standardized, general-purpose purely functional programming 5 | language, with non-strict semantics and strong static typing. 6 | 7 | ```haskell 8 | module Main where 9 | 10 | main :: IO () 11 | main = putStrLn "Hello, World!" 12 | ``` 13 | -------------------------------------------------------------------------------- /report-bib/functional/haskell.md: -------------------------------------------------------------------------------- 1 | \chapter{Functional languages} 2 | 3 | ## Haskell 4 | Haskell is a standardized, general-purpose purely functional programming 5 | language, with non-strict semantics and strong static typing. 6 | 7 | ```haskell 8 | module Main where 9 | 10 | main :: IO () 11 | main = putStrLn "Hello, World!" 12 | ``` 13 | -------------------------------------------------------------------------------- /assignment/README.md: -------------------------------------------------------------------------------- 1 | # Assignment 2 | This template is meant for small assignments. Could either be a few problems with answers or some 3 | result and how you implemented it. 4 | 5 | ## Typeset 6 | Just call `make`. Edit `Makefile` for any customization purposes. 7 | 8 | ## Variables 9 | You can define: 10 | 11 | * `title` 12 | * `authors` 13 | * `left-header` 14 | * `right-header` 15 | -------------------------------------------------------------------------------- /report/dynamic/ruby.md: -------------------------------------------------------------------------------- 1 | \chapter{Dynamic languages} 2 | 3 | ## Ruby 4 | Ruby is a dynamic, reflective, object-oriented, general-purpose programming 5 | language. 6 | 7 | ### Code examples 8 | 9 | #### Hello World 10 | 11 | ```ruby 12 | puts "Hello World!" 13 | ``` 14 | 15 | #### String interpolation 16 | 17 | ```ruby 18 | var = 3.14159 19 | "pi is #{var}" 20 | => "pi is 3.14159" 21 | ``` 22 | -------------------------------------------------------------------------------- /report/static/csharp.md: -------------------------------------------------------------------------------- 1 | ## C# # 2 | C# is a multi-paradigm programming language encompassing strong typing, 3 | imperative, declarative, functional, generic, object-oriented (class-based), and 4 | component-oriented programming disciplines. 5 | 6 | ```cs 7 | using System; 8 | 9 | class HelloWorldApp 10 | { 11 | static void Main() 12 | { 13 | Console.WriteLine("Hello World!"); 14 | } 15 | } 16 | ``` 17 | -------------------------------------------------------------------------------- /report-bib/static/csharp.md: -------------------------------------------------------------------------------- 1 | ## C# # 2 | C# is a multi-paradigm programming language encompassing strong typing, 3 | imperative, declarative, functional, generic, object-oriented (class-based), and 4 | component-oriented programming disciplines. 5 | 6 | ```cs 7 | using System; 8 | 9 | class HelloWorldApp 10 | { 11 | static void Main() 12 | { 13 | Console.WriteLine("Hello World!"); 14 | } 15 | } 16 | ``` 17 | -------------------------------------------------------------------------------- /report/static/java.md: -------------------------------------------------------------------------------- 1 | \chapter{Static languages} 2 | 3 | ## Java 4 | Java is a general-purpose computer programming language that is concurrent, 5 | class-based, object-oriented, and specifically designed to have as few 6 | implementation dependencies as possible. 7 | 8 | ```java 9 | class HelloWorldApp { 10 | public static void main(String[] args) { 11 | System.out.println("Hello World!"); 12 | } 13 | } 14 | ``` 15 | -------------------------------------------------------------------------------- /report-bib/static/java.md: -------------------------------------------------------------------------------- 1 | \chapter{Static languages} 2 | 3 | ## Java 4 | Java is a general-purpose computer programming language that is concurrent, 5 | class-based, object-oriented, and specifically designed to have as few 6 | implementation dependencies as possible. 7 | 8 | ```java 9 | class HelloWorldApp { 10 | public static void main(String[] args) { 11 | System.out.println("Hello World!"); 12 | } 13 | } 14 | ``` 15 | -------------------------------------------------------------------------------- /report-bib/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: typeset 2 | 3 | FILES=`cat index.txt` 4 | 5 | typeset: 6 | pandoc \ 7 | --from markdown \ 8 | --to latex \ 9 | --template template.tex \ 10 | --out report-bib.pdf \ 11 | --pdf-engine xelatex \ 12 | --bibliography biblio.bib \ 13 | --csl style.csl \ 14 | --citeproc \ 15 | $(FILES) 16 | -------------------------------------------------------------------------------- /report-bib/biblio.bib: -------------------------------------------------------------------------------- 1 | @article{item1, 2 | author = {Freely, I.P.}, 3 | title = {A small paper}, 4 | journal = {The journal of small papers}, 5 | year = 1997, 6 | note = {to appear}, 7 | } 8 | 9 | @article{item2, 10 | author = {Jass, Hugh}, 11 | title = {A big paper}, 12 | journal = {The journal of big papers}, 13 | year = 7991, 14 | volume = {MCMXCVII}, 15 | } 16 | 17 | @article{item3, 18 | author = {Doe, John}, 19 | title = {A medium paper}, 20 | journal = {Some medium papers}, 21 | year = 1337, 22 | } 23 | -------------------------------------------------------------------------------- /report/README.md: -------------------------------------------------------------------------------- 1 | # Markdown template for reports 2 | A simple template for writing reports in [Markdown](http://commonmark.org/) using 3 | [Pandoc](http://pandoc.org/) for school/college/university/whatever. 4 | 5 | ## Typeset 6 | Just call `make`. Edit `Makefile` for any customization purposes. 7 | 8 | ## Replacing sample data 9 | Edit the `cover.tex` file with the name of students and supervisor(s). 10 | 11 | The `template.tex` file work as a template for LaTeX and preamble for LaTeX. Edit this file for 12 | using other packages, settings etc. 13 | 14 | Lastly you want to remove the directories filled with Markdown files and write your own. Add the new 15 | files to the `index.txt` file. 16 | -------------------------------------------------------------------------------- /report-bib/README.md: -------------------------------------------------------------------------------- 1 | # Markdown template for reports (with bibliography) 2 | A simple template for writing reports in [Markdown](http://commonmark.org/) using 3 | [Pandoc](http://pandoc.org/) for school/college/university/whatever with bibliography support. 4 | 5 | ## Typeset 6 | Just call `make`. Edit `Makefile` for any customization purposes. 7 | 8 | ## Replacing sample data 9 | Edit the `cover.tex` file with the name of students and supervisor(s). 10 | 11 | The `template.tex` file work as a template for LaTeX and preamble for LaTeX. Edit this file for 12 | using other packages, settings etc. 13 | 14 | Lastly you want to remove the directories filled with Markdown files and write your own. Add the new 15 | files to the `index.txt` file. 16 | -------------------------------------------------------------------------------- /report/cover.tex: -------------------------------------------------------------------------------- 1 | \begin{titlepage} 2 | \begin{center} 3 | 4 | \textsc{\LARGE University}\\[1.5cm] 5 | \textsc{\Large Course Name}\\[0.5cm] 6 | 7 | \HRule\\[0.4cm] 8 | {\huge \bfseries Title of Report\\[0.4cm]} 9 | \HRule\\[1.5cm] 10 | 11 | \emph{Authors}\\[0.1cm] 12 | \noindent\makebox[\textwidth]{% 13 | \begin{tabular}{lr}% 14 | Henry Terry & \texttt{hter@example.com}\\ 15 | Amy Shelton & \texttt{ashe@example.com}\\ 16 | \end{tabular}}\\[1cm] 17 | 18 | \emph{Supervisor} 19 | \noindent\makebox[\textwidth]{% 20 | \begin{tabular}{lr}% 21 | Lucas Watts & \texttt{lwat@example.com}\\ 22 | \end{tabular}} 23 | 24 | \vfill 25 | 26 | % Bottom of the page 27 | % Probably replaced with date of deadline 28 | {\large \today} 29 | 30 | \end{center} 31 | \end{titlepage} 32 | -------------------------------------------------------------------------------- /report-bib/cover.tex: -------------------------------------------------------------------------------- 1 | \begin{titlepage} 2 | \begin{center} 3 | 4 | \textsc{\LARGE University}\\[1.5cm] 5 | \textsc{\Large Course Name}\\[0.5cm] 6 | 7 | \HRule\\[0.4cm] 8 | {\huge \bfseries Title of Report\\[0.4cm]} 9 | \HRule\\[1.5cm] 10 | 11 | \emph{Authors}\\[0.1cm] 12 | \noindent\makebox[\textwidth]{% 13 | \begin{tabular}{lr}% 14 | Henry Terry & \texttt{hter@example.com}\\ 15 | Amy Shelton & \texttt{ashe@example.com}\\ 16 | \end{tabular}}\\[1cm] 17 | 18 | \emph{Supervisor} 19 | \noindent\makebox[\textwidth]{% 20 | \begin{tabular}{lr}% 21 | Lucas Watts & \texttt{lwat@example.com}\\ 22 | \end{tabular}} 23 | 24 | \vfill 25 | 26 | % Bottom of the page 27 | % Probably replaced with date of deadline 28 | {\large \today} 29 | 30 | \end{center} 31 | \end{titlepage} 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pandoc Markdown template 2 | This repository is a small collection of personal Markdown templates for Pandoc. 3 | 4 | Each directory contains a working template and example PDF output. 5 | 6 | ## Requirements 7 | Be sure to have LaTeX ([Windows](http://miktex.org/), [macOS](https://tug.org/mactex/), 8 | [Linux](http://latex-project.org/)) and Pandoc installed. 9 | 10 | On macOS, Pandoc can be installed with Homebrew: `brew install pandoc`. 11 | 12 | For typesetting you can either use the `Makefile`s with `make` or just use `pandoc`. 13 | 14 | For the `report-bib` you will need `pandoc-citeproc` too. On macOS that is easily installed with 15 | `brew install pandoc-citeproc`. 16 | 17 | ## Customization 18 | If you want to see what Pandoc allows for customization you can use `pandoc -D latex` to get the 19 | default LaTeX template. You can set variables with `-V/--variable` when using `pandoc` or preferably 20 | put them into a [YAML front matter](http://assemble.io/docs/YAML-front-matter.html). 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) Lauritz Hilsøe 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of 5 | this software and associated documentation files (the "Software"), to deal in 6 | the Software without restriction, including without limitation the rights to 7 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 8 | of the Software, and to permit persons to whom the Software is furnished to do 9 | so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 | SOFTWARE. 21 | -------------------------------------------------------------------------------- /assignment/assignment.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Some Assignment 3 | authors: Alice Foo, Bob Bar & Charlie Baz 4 | left-header: Some Course 5 | right-header: \today 6 | --- 7 | 8 | # Results 9 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tempus metus nec arcu elementum 10 | venenatis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. 11 | 12 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec velit nunc, convallis at tempor 13 | vitae, rhoncus eget enim. Donec efficitur rhoncus bibendum. Nunc iaculis eu turpis non egestas. 14 | 15 | > Donec massa tortor, faucibus eu leo a, laoreet sagittis lectus. Aliquam ac augue rutrum, auctor 16 | > arcu quis, facilisis eros. 17 | 18 | # Implementation 19 | Quisque eget interdum felis. Nulla vitae pulvinar ipsum, id accumsan nisl. Phasellus rutrum ante 20 | metus. Quisque nec mattis mi. Donec bibendum, nisl gravida egestas ornare, metus ligula suscipit 21 | diam, ut semper libero metus in leo. Aliquam pellentesque erat leo, nec eleifend magna consequat id. 22 | Donec feugiat, leo vitae sodales pulvinar, felis dui interdum nibh, sagittis viverra tortor velit in 23 | quam. 24 | 25 | ```python 26 | # Try this easter egg 27 | import this 28 | 29 | print("Neat!") 30 | ``` 31 | 32 | Proin non rhoncus nisi. Aliquam consequat nunc in purus maximus consequat. Suspendisse suscipit 33 | porttitor iaculis. Maecenas neque nisi, pharetra ac arcu id, malesuada pretium velit. Etiam varius 34 | leo felis, ac euismod lorem lobortis ac. Sed neque turpis, venenatis a justo id, fermentum egestas 35 | tellus. Sed ullamcorper metus sit amet iaculis venenatis. Sed ultrices ligula sed dignissim finibus. 36 | Nullam dapibus, eros non convallis commodo, ex ante accumsan enim, in faucibus lectus ante non 37 | neque. Suspendisse pharetra, nisl ut sagittis gravida, metus sapien commodo libero, lobortis 38 | imperdiet metus quam sit amet ante. Vivamus at elit nibh. 39 | -------------------------------------------------------------------------------- /report/template.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !TEX encoding = UTF-8 Unicode 3 | 4 | % ----------------- 5 | % START OF PREAMBLE 6 | % ----------------- 7 | \documentclass[12pt,a4paper]{scrreprt} 8 | 9 | 10 | % Commands 11 | \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} 12 | 13 | 14 | % Packages 15 | \usepackage{fontspec} 16 | \usepackage{eurosym} 17 | \usepackage{amssymb} 18 | \usepackage{mathtools} 19 | \usepackage{upquote} 20 | \usepackage{microtype} 21 | \usepackage{polyglossia} 22 | \usepackage{longtable,booktabs} 23 | \usepackage{graphicx} 24 | \usepackage{grffile} 25 | \usepackage[normalem]{ulem} 26 | \usepackage[setpagesize=false, 27 | unicode=false, 28 | colorlinks=true, 29 | urlcolor=blue, 30 | linkcolor=black]{hyperref} 31 | 32 | 33 | % Polyglossia settings 34 | \setmainlanguage{english} % or danish 35 | \addto\captionsenglish{% 36 | \renewcommand{\contentsname}{Table of Contents} 37 | } 38 | \addto\captionsdanish{% 39 | \renewcommand{\contentsname}{Indholdsfortegnelse} 40 | } 41 | 42 | 43 | % Required for syntax highlighting 44 | $highlighting-macros$ 45 | 46 | 47 | % Don't let images overflow the page 48 | % Can still explicit set width/height/options for an image 49 | \makeatletter 50 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} 51 | \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} 52 | \makeatother 53 | \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} 54 | 55 | 56 | % Make links footnotes instead of hotlinks 57 | \renewcommand{\href}[2]{#2\footnote{\url{#1}}} 58 | 59 | 60 | % Avoid problems with \sout in headers with hyperref: 61 | \pdfstringdefDisableCommands{\renewcommand{\sout}{}} 62 | 63 | 64 | % No paragraph indentation 65 | % and set space between paragraphs 66 | \setlength{\parindent}{0pt} 67 | \setlength{\parskip}{1em plus 2pt minus 1pt} 68 | \setlength{\emergencystretch}{3em} % prevent overfull lines 69 | 70 | 71 | % ----------------- 72 | % END OF PREAMBLE 73 | % ----------------- 74 | \begin{document} 75 | 76 | \input{cover} 77 | 78 | % chapter: 0, section: 1, subsection: 2 etc 79 | \setcounter{secnumdepth}{1} 80 | \setcounter{tocdepth}{1} 81 | \tableofcontents 82 | 83 | $body$ 84 | 85 | \end{document} 86 | -------------------------------------------------------------------------------- /assignment/template.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !TEX encoding = UTF-8 Unicode 3 | 4 | % ----------------- 5 | % START OF PREAMBLE 6 | % ----------------- 7 | \documentclass[12pt,a4paper]{scrartcl} 8 | 9 | 10 | % Commands 11 | \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} 12 | 13 | 14 | % Packages 15 | \usepackage{fontspec} 16 | \usepackage{eurosym} 17 | \usepackage{amssymb} 18 | \usepackage{mathtools} 19 | \usepackage{upquote} 20 | \usepackage{microtype} 21 | \usepackage{longtable,booktabs} 22 | \usepackage{graphicx} 23 | \usepackage{grffile} 24 | \usepackage[normalem]{ulem} 25 | \usepackage{fancyhdr} 26 | \usepackage[setpagesize=false, 27 | unicode=false, 28 | colorlinks=true, 29 | urlcolor=blue, 30 | linkcolor=black]{hyperref} 31 | 32 | 33 | % Required fix for fancyhdr 34 | \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} 35 | % Fancy headers and footers settings 36 | \pagestyle{fancy} 37 | \lhead{$left-header$} 38 | \rhead{$right-header$} 39 | 40 | 41 | % Required for syntax highlighting 42 | $highlighting-macros$ 43 | 44 | 45 | % Don't let images overflow the page 46 | % Can still explicit set width/height/options for an image 47 | \makeatletter 48 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} 49 | \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} 50 | \makeatother 51 | \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} 52 | 53 | 54 | % Make links footnotes instead of hotlinks 55 | \renewcommand{\href}[2]{#2\footnote{\url{#1}}} 56 | 57 | 58 | % Avoid problems with \sout in headers with hyperref: 59 | \pdfstringdefDisableCommands{\renewcommand{\sout}{}} 60 | 61 | 62 | % No paragraph indentation 63 | % and set space between paragraphs 64 | \setlength{\parindent}{0pt} 65 | \setlength{\parskip}{1em plus 2pt minus 1pt} 66 | \setlength{\emergencystretch}{3em} % prevent overfull lines 67 | 68 | 69 | % No section numbering 70 | \makeatletter 71 | \def\@seccntformat#1{% 72 | \expandafter\ifx\csname c@#1\endcsname\c@section\else 73 | \csname the#1\endcsname\quad 74 | \fi} 75 | \makeatother 76 | 77 | 78 | % ----------------- 79 | % END OF PREAMBLE 80 | % ----------------- 81 | \begin{document} 82 | 83 | \begin{center} 84 | \hfill \break% 85 | $if(title)$\Huge{$title$}\\[0.5em]$endif$ 86 | $if(authors)$\Large{$authors$}\\[2.5em]$endif$ 87 | \end{center} 88 | 89 | $body$ 90 | 91 | \end{document} 92 | -------------------------------------------------------------------------------- /report-bib/template.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !TEX encoding = UTF-8 Unicode 3 | 4 | % ----------------- 5 | % START OF PREAMBLE 6 | % ----------------- 7 | \documentclass[12pt,a4paper]{scrreprt} 8 | 9 | 10 | % Commands 11 | \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} 12 | 13 | 14 | % Packages 15 | \usepackage{fontspec} 16 | \usepackage{eurosym} 17 | \usepackage{amssymb} 18 | \usepackage{mathtools} 19 | \usepackage{upquote} 20 | \usepackage{microtype} 21 | \usepackage{polyglossia} 22 | \usepackage{longtable,booktabs} 23 | \usepackage{graphicx} 24 | \usepackage{grffile} 25 | \usepackage[normalem]{ulem} 26 | \usepackage[setpagesize=false, 27 | unicode=false, 28 | colorlinks=true, 29 | urlcolor=blue, 30 | linkcolor=black]{hyperref} 31 | 32 | 33 | % Polyglossia settings 34 | \setmainlanguage{english} % or danish 35 | \addto\captionsenglish{% 36 | \renewcommand{\contentsname}{Table of Contents} 37 | } 38 | \addto\captionsdanish{% 39 | \renewcommand{\contentsname}{Indholdsfortegnelse} 40 | } 41 | 42 | 43 | % Required for syntax highlighting 44 | $highlighting-macros$ 45 | 46 | 47 | % Don't let images overflow the page 48 | % Can still explicit set width/height/options for an image 49 | \makeatletter 50 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} 51 | \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} 52 | \makeatother 53 | \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} 54 | 55 | 56 | % Make links footnotes instead of hotlinks 57 | \renewcommand{\href}[2]{#2\footnote{\url{#1}}} 58 | 59 | 60 | % Avoid problems with \sout in headers with hyperref: 61 | \pdfstringdefDisableCommands{\renewcommand{\sout}{}} 62 | 63 | 64 | % No paragraph indentation 65 | % and set space between paragraphs 66 | \setlength{\parindent}{0pt} 67 | \setlength{\parskip}{1em plus 2pt minus 1pt} 68 | \setlength{\emergencystretch}{3em} % Prevent overfull lines 69 | 70 | % adaptation to the upgrade of Pandoc, otherwise error would occur. 71 | % Fix per https://stackoverflow.com/a/67244130 72 | $if(csl-refs)$ 73 | \newlength{\cslhangindent} 74 | \setlength{\cslhangindent}{1.5em} 75 | \newenvironment{CSLReferences}% 76 | {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% 77 | \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% 78 | {\par} 79 | $endif$ 80 | 81 | % ----------------- 82 | % END OF PREAMBLE 83 | % ----------------- 84 | \begin{document} 85 | 86 | \input{cover} 87 | 88 | % Chapter: 0, section: 1, subsection: 2 etc 89 | \setcounter{secnumdepth}{1} 90 | \setcounter{tocdepth}{1} 91 | \tableofcontents 92 | 93 | $body$ 94 | 95 | \end{document} 96 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### OSX ### 2 | .DS_Store 3 | .AppleDouble 4 | .LSOverride 5 | 6 | # Icon must end with two \r 7 | Icon 8 | 9 | # Thumbnails 10 | ._* 11 | 12 | # Files that might appear in the root of a volume 13 | .DocumentRevisions-V100 14 | .fseventsd 15 | .Spotlight-V100 16 | .TemporaryItems 17 | .Trashes 18 | .VolumeIcon.icns 19 | 20 | # Directories potentially created on remote AFP share 21 | .AppleDB 22 | .AppleDesktop 23 | Network Trash Folder 24 | Temporary Items 25 | .apdisk 26 | 27 | 28 | ### Windows ### 29 | # Windows image file caches 30 | Thumbs.db 31 | ehthumbs.db 32 | 33 | # Folder config file 34 | Desktop.ini 35 | 36 | # Recycle Bin used on file shares 37 | $RECYCLE.BIN/ 38 | 39 | # Windows Installer files 40 | *.cab 41 | *.msi 42 | *.msm 43 | *.msp 44 | 45 | # Windows shortcuts 46 | *.lnk 47 | 48 | 49 | ### Linux ### 50 | *~ 51 | 52 | # KDE directory preferences 53 | .directory 54 | 55 | # Linux trash folder which might appear on any partition or disk 56 | .Trash-* 57 | 58 | 59 | ### TeX ### 60 | ## Core latex/pdflatex auxiliary files: 61 | *.aux 62 | *.lof 63 | *.log 64 | *.lot 65 | *.fls 66 | *.out 67 | *.toc 68 | 69 | ## Intermediate documents: 70 | *.dvi 71 | *-converted-to.* 72 | # these rules might exclude image files for figures etc. 73 | # *.ps 74 | # *.eps 75 | # *.pdf 76 | 77 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 78 | *.bbl 79 | *.bcf 80 | *.blg 81 | *-blx.aux 82 | *-blx.bib 83 | *.brf 84 | *.run.xml 85 | 86 | ## Build tool auxiliary files: 87 | *.fdb_latexmk 88 | *.synctex 89 | *.synctex.gz 90 | *.synctex.gz(busy) 91 | *.pdfsync 92 | 93 | ## Auxiliary and intermediate files from other packages: 94 | 95 | # algorithms 96 | *.alg 97 | *.loa 98 | 99 | # achemso 100 | acs-*.bib 101 | 102 | # amsthm 103 | *.thm 104 | 105 | # beamer 106 | *.nav 107 | *.snm 108 | *.vrb 109 | 110 | #(e)ledmac/(e)ledpar 111 | *.end 112 | *.[1-9] 113 | *.[1-9][0-9] 114 | *.[1-9][0-9][0-9] 115 | *.[1-9]R 116 | *.[1-9][0-9]R 117 | *.[1-9][0-9][0-9]R 118 | *.eledsec[1-9] 119 | *.eledsec[1-9]R 120 | *.eledsec[1-9][0-9] 121 | *.eledsec[1-9][0-9]R 122 | *.eledsec[1-9][0-9][0-9] 123 | *.eledsec[1-9][0-9][0-9]R 124 | 125 | # glossaries 126 | *.acn 127 | *.acr 128 | *.glg 129 | *.glo 130 | *.gls 131 | 132 | # gnuplottex 133 | *-gnuplottex-* 134 | 135 | # hyperref 136 | *.brf 137 | 138 | # knitr 139 | *-concordance.tex 140 | *.tikz 141 | *-tikzDictionary 142 | 143 | # listings 144 | *.lol 145 | 146 | # makeidx 147 | *.idx 148 | *.ilg 149 | *.ind 150 | *.ist 151 | 152 | # minitoc 153 | *.maf 154 | *.mtc 155 | *.mtc0 156 | 157 | # minted 158 | _minted* 159 | *.pyg 160 | 161 | # morewrites 162 | *.mw 163 | 164 | # nomencl 165 | *.nlo 166 | 167 | # sagetex 168 | *.sagetex.sage 169 | *.sagetex.py 170 | *.sagetex.scmd 171 | 172 | # sympy 173 | *.sout 174 | *.sympy 175 | sympy-plots-for-*.tex/ 176 | 177 | # todonotes 178 | *.tdo 179 | 180 | # xindy 181 | *.xdy 182 | 183 | # WinEdt 184 | *.bak 185 | *.sav 186 | 187 | 188 | ### LaTeX ### 189 | *.acn 190 | *.acr 191 | *.alg 192 | *.aux 193 | *.bbl 194 | *.bcf 195 | *.blg 196 | *.dvi 197 | *.fdb_latexmk 198 | *.glg 199 | *.glo 200 | *.gls 201 | *.idx 202 | *.ilg 203 | *.ind 204 | *.ist 205 | *.lof 206 | *.log 207 | *.lot 208 | *.maf 209 | *.mtc 210 | *.mtc0 211 | *.nav 212 | *.nlo 213 | *.out 214 | *.pdfsync 215 | *.ps 216 | *.run.xml 217 | *.snm 218 | *.synctex.gz 219 | *.toc 220 | *.vrb 221 | *.xdy 222 | *.tdo 223 | 224 | 225 | ### Vim ### 226 | [._]*.s[a-w][a-z] 227 | [._]s[a-w][a-z] 228 | *.un~ 229 | Session.vim 230 | .netrwhist 231 | *~ 232 | 233 | 234 | ### SublimeText ### 235 | # cache files for sublime text 236 | *.tmlanguage.cache 237 | *.tmPreferences.cache 238 | *.stTheme.cache 239 | 240 | # workspace files are user-specific 241 | *.sublime-workspace 242 | 243 | # project files should be checked into the repository, unless a significant 244 | # proportion of contributors will probably not be using SublimeText 245 | # *.sublime-project 246 | 247 | # sftp configuration file 248 | sftp-config.json 249 | -------------------------------------------------------------------------------- /report-bib/style.csl: -------------------------------------------------------------------------------- 1 | 2 | 651 | --------------------------------------------------------------------------------