wtfunctional/tex/headers/listings.tex

50 lines
823 B
TeX
Raw Normal View History

\ProvidesFile{listings}[Configure listings with minted]
% Fix backticks
\usepackage{upquote}
\usepackage[section, cache=true,]{minted}
\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,
}
\newmintinline[ccmd]{c}{}
\newmintinline[cppcmd]{cpp}{}
\newmintinline[haskellcmd]{haskell}{}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../linux-script"
%%% End: