slidemac.tex 2.08 KB
Newer Older
1
2
3
4
5
\usepackage[utf8]{inputenc}
\usepackage[czech]{babel}
\usepackage{palatino}
\usepackage{verbatim}
\usepackage{minted}
cermak's avatar
cermak committed
6
7
8
9
10
11
12
13
14
15
16
17
%% Load the markdown package
\usepackage[citations,footnotes,definitionLists,hashEnumerators,smartEllipses,tightLists=false,pipeTables,tableCaptions,hybrid]{markdown}
%%begin novalidate
\markdownSetup{rendererPrototypes={
 link = {\href{#2}{#1}},
 headingOne = {\section{#1}},
 headingTwo = {\subsection{#1}},
 headingThree = {\begin{frame}\frametitle{#1}},
 headingFour = {\begin{block}{#1}},
 horizontalRule = {\end{block}}
}}
%%end novalidate
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

\usetheme{CambridgeUS}
\usecolortheme{seagull}
\usemintedstyle{colorful}

\makeatletter % to change template
    \setbeamertemplate{headline}[default] % not mandatory, but I though it was better to set it blank
    \def\beamer@entrycode{\vspace*{-\headheight}} % here is the part we are interested in :)
\makeatother 

\definecolor{mintedbackground}{rgb}{0.95,0.95,0.95}

\newmintedfile[pycode]{python}{
bgcolor=mintedbackground,
fontfamily=tt,
fontsize=\small,
linenos=true,
numberblanklines=true,
numbersep=5pt,
gobble=0,
frame=leftline,
framerule=0.4pt,
framesep=2mm,
funcnamehighlighting=true,
tabsize=4,
obeytabs=false,
mathescape=false
samepage=false, %with this setting you can force the list to appear on the same page
showspaces=false,
showtabs =false,
texcl=false,
}



\setbeamertemplate{navigation symbols}{}
\setbeamerfont{title page}{family=\rmfamily}
\setbeamertemplate{headline}{}


Mareš Martin's avatar
Mareš Martin committed
58
59
60
61
62
63
64
65
66
67
68
\def\pyprompt{\color{black}>>> \color{blue}}
\def\pydots{\color{black}... \color{blue}}
\def\>{\hphantom{xxxx}}

\def\=#1{{\color{teal}#1}\endgraf\smallskip}

\def\py#1#2{%
	\def\tmp{#1}\ifx\tmp\empty\else
		{\tt\def\\{\hfil\break\pyprompt}\def\.{\hfil\break\pydots}\pyprompt #1}\\%
	\fi
	\def\tmp{#2}\ifx\tmp\empty\else
69
70
71
		{\tt\color{red}#2
		
		}%
Mareš Martin's avatar
Mareš Martin committed
72
73
74
	\fi
	\medskip
}
Mareš Martin's avatar
Mareš Martin committed
75
76

\def\cmt#1{\quad\hbox{\color{black}\rm #1}}
Mareš Martin's avatar
Mareš Martin committed
77
78

\def\bs{\char92\relax}
79
80
81
82
83
84


\author[Petr Čermák]{Petr Čermák\\ \texttt{cermak@mag.mff.cuni.cz}}
\institute[KFKL]{Katedra Fyziky Kondenzovaných Látek\\MFF UK Praha}
\date[Forked from M. Mareš]{2020\\forked from https://gitlab.kam.mff.cuni.cz/mj/prm1}