Commit 4fa56abb authored by Martin Ukrop's avatar Martin Ukrop
Browse files

Merge branch 'pandoc' into 'master'

Add simple template for pandoc.



See merge request !1
parents 779ae231 abac00fa
......@@ -10,3 +10,4 @@ The project defines a new LaTeX document style 'fi-thesis-report' based on the t
## Tips and tricks
* All options passed to 'fi-thesis-report' are passed to the underlying 'article' class.
* If you prefer pandoc and markdown, see `pandoc/`
MDS=$(wildcard *.md)
PDFS=$(MDS:.md=.pdf)
all : $(PDFS)
TEXDEPS=../fi-thesis-report.cls
TEMPLATE=template.tex
%.pdf : %.md $(TEXDEPS) $(TEMPLATE)
env TEXINPUTS=..:.: pandoc --template=$(TEMPLATE) $< -o $@
\documentclass[$if(fontsize)$$fontsize$,$else$12pt,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{fi-thesis-report}
% Set types and names
$if(reporttype)$\setReportType{$reporttype$}$endif$ % 'reader' or 'supervisor'
$if(thesistype)$\setThesisType{$thesistype$}$endif$ % 'bc' or 'mgr'
$if(thesisname)$\setThesisName{$thesisname$}$endif$
$if(student)$\setStudent{$student$}$endif$
$if(supervisor)$\setSupervisor{$supervisor$}$endif$
$if(reader)$\setReader{$reader$}$endif$
$for(header-includes)$
$header-includes$
$endfor$
% Thesis report begin
\begin{document}
$body$
\end{document}
---
reporttype: reader # 'reader' or 'supervisor'
thesistype: bc # 'bc' or 'mgr'
thesisname: The Great Thesis
student: John Doe
supervisor: Richard Roe
reader: John Smith
header-includes:
- \usepackage{lipsum}
...
\lipsum
S přihlédnutím k celkovému dosaženému výsledku navrhuji hodnotit práci známkou velmi dobře (B).
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment