Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
External Relations
Document Templates
FI thesis report template
Commits
abac00fa
Commit
abac00fa
authored
Jun 10, 2016
by
Vladimír Štill
Browse files
Add simple template for pandoc.
parent
779ae231
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
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/`
pandoc/Makefile
0 → 100644
View file @
abac00fa
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
View file @
abac00fa
\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}
pandoc/thesis-report.md
0 → 100644
View file @
abac00fa
---
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:
-
\u
sepackage{lipsum}
...
\l
ipsum
S přihlédnutím k celkovému dosaženému výsledku navrhuji hodnotit práci známkou velmi dobře (B).
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment