2016-04-20 12:26:05 +02:00
|
|
|
\ProvidesFile{listings}[Configure listings with minted]
|
|
|
|
% Fix backticks
|
|
|
|
\usepackage{upquote}
|
|
|
|
\usepackage[section, cache=true,]{minted}
|
|
|
|
|
2016-06-09 13:49:59 +02:00
|
|
|
\renewcommand{\MintedPygmentize}{/usr/bin/pygmentize}
|
|
|
|
|
2016-05-24 11:14:43 +02:00
|
|
|
\usemintedstyle{manni}
|
|
|
|
|
2016-04-20 12:26:05 +02:00
|
|
|
\newminted[ccode]{c}%
|
|
|
|
{
|
|
|
|
linenos=true,
|
|
|
|
autogobble=true,
|
|
|
|
breaklines=true,
|
|
|
|
showspaces=false,
|
|
|
|
showtabs=false,
|
|
|
|
tabsize=2,
|
|
|
|
frame=single,
|
|
|
|
fontsize=\small,
|
|
|
|
}
|
|
|
|
|
|
|
|
\newminted[cppcode]{cpp}%
|
|
|
|
{
|
|
|
|
linenos=true,
|
|
|
|
autogobble=true,
|
|
|
|
breaklines=true,
|
|
|
|
showspaces=false,
|
|
|
|
showtabs=false,
|
|
|
|
tabsize=2,
|
|
|
|
frame=single,
|
|
|
|
fontsize=\small,
|
|
|
|
}
|
|
|
|
|
|
|
|
\newminted[haskell]{haskell}
|
|
|
|
{
|
|
|
|
linenos=true,
|
|
|
|
autogobble=true,
|
|
|
|
breaklines=true,
|
|
|
|
showspaces=false,
|
|
|
|
showtabs=false,
|
|
|
|
tabsize=2,
|
|
|
|
frame=single,
|
|
|
|
fontsize=\small,
|
|
|
|
}
|
|
|
|
|
2016-04-25 16:20:31 +02:00
|
|
|
\newminted[pycode]{python}%
|
|
|
|
{
|
|
|
|
linenos=true,
|
|
|
|
autogobble=true,
|
|
|
|
breaklines=true,
|
|
|
|
showspaces=false,
|
|
|
|
showtabs=false,
|
|
|
|
tabsize=2,
|
|
|
|
frame=single,
|
|
|
|
fontsize=\small,
|
|
|
|
}
|
|
|
|
|
2016-04-20 12:26:05 +02:00
|
|
|
\newmintinline[ccmd]{c}{}
|
|
|
|
\newmintinline[cppcmd]{cpp}{}
|
|
|
|
\newmintinline[haskellcmd]{haskell}{}
|
2016-04-25 16:20:31 +02:00
|
|
|
\newmintinline[pycmd]{python}{}
|
2016-04-20 12:26:05 +02:00
|
|
|
|
|
|
|
%%% Local Variables:
|
|
|
|
%%% mode: latex
|
2016-05-24 11:14:43 +02:00
|
|
|
%%% TeX-master: "../wtfunctional"
|
2016-04-20 12:26:05 +02:00
|
|
|
%%% End:
|