wtfunctional/tex/headers/listings.tex

67 lines
1.1 KiB
TeX
Raw Permalink Normal View History

\ProvidesFile{listings}[Configure listings with minted]
% Fix backticks
\usepackage{upquote}
\usepackage[section, cache=true,]{minted}
\renewcommand{\MintedPygmentize}{/usr/bin/pygmentize}
\usemintedstyle{manni}
\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,
}
\newmintinline[ccmd]{c}{}
\newmintinline[cppcmd]{cpp}{}
\newmintinline[haskellcmd]{haskell}{}
2016-04-25 16:20:31 +02:00
\newmintinline[pycmd]{python}{}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../wtfunctional"
%%% End: