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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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/`

pandoc/Makefile

0 → 100644
+12 −0
Original line number Diff line number Diff line

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 $@

pandoc/template.tex

0 → 100644
+20 −0
Original line number Diff line number Diff line
\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}
+14 −0
Original line number Diff line number Diff line
---
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).