-
Notifications
You must be signed in to change notification settings - Fork 0
/
tutorials.ftl
70 lines (59 loc) · 1.36 KB
/
tutorials.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
\documentclass [11pt, a4paper, oneside] {article}
<#function getLanguageForOlym>
<#if !contest.language??>
<#return "" />
</#if>
<#if contest.language = "russian">
<#return "[russian]" />
</#if>
<#if contest.language = "ukrainian">
<#return "[ukrainian]" />
</#if>
<#if contest.language = "vietnamese">
<#return "[vietnamese]" />
</#if>
<#return "" />
</#function>
\usepackage [T2A] {fontenc}
\usepackage [utf8] {inputenc}
\usepackage [english, russian, vietnamese] {babel}
\usepackage {amsmath}
\usepackage {amssymb}
\usepackage ${getLanguageForOlym()}{olymp}
\usepackage {comment}
\usepackage {epigraph}
\usepackage {expdlist}
\usepackage {graphicx}
\usepackage {multirow}
\usepackage {siunitx}
\usepackage {ulem}
%\usepackage {hyperref}
\usepackage {import}
\usepackage {ifpdf}
\ifpdf
\DeclareGraphicsRule{*}{mps}{*}{}
\fi
\usepackage{xcolor}
\begin {document}
\contest
{${contest.name!}}%
{${contest.location!}}%
{${contest.date!}}%
\binoppenalty=10000
\relpenalty=10000
\renewcommand{\t}{\texttt}
<#if shortProblemTitle?? && shortProblemTitle>
\def\ShortProblemTitle{}
</#if>
<#list tutorials as tutorial>
<#if tutorial.path??>
<#if tutorial.index??>
\def\ProblemIndex{${tutorial.index}}
</#if>
\graphicspath{{${tutorial.path}}}
\import{${tutorial.path}}{./${tutorial.file}}
<#else>
\input ${tutorial.file}
</#if>
</#list>
\end {document}