Code background grey, use special code-block for GHCi
This commit is contained in:
@@ -13,22 +13,40 @@
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[Q=yes]{examplep}
|
||||
|
||||
% color definition
|
||||
\definecolor{solarized}{HTML}{002B36}
|
||||
\definecolor{mygreen}{HTML}{009900}
|
||||
\definecolor{mygrey}{rgb}{0.95,0.95,0.95}
|
||||
|
||||
% package configuration
|
||||
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
|
||||
\beamertemplatenavigationsymbolsempty
|
||||
\setbeamertemplate{footline}[frame number]
|
||||
|
||||
% minted
|
||||
%% fix the minted@colorbg environment
|
||||
\makeatletter
|
||||
\renewenvironment{minted@colorbg}[1]
|
||||
{\def\minted@bgcol{#1}%
|
||||
\noindent
|
||||
\begin{lrbox}{\minted@bgbox}
|
||||
\begin{minipage}{\linewidth-2\fboxsep}}
|
||||
{\end{minipage}%
|
||||
\end{lrbox}%
|
||||
\setlength{\topsep}{\smallskipamount}% set the vertical space
|
||||
\trivlist\item\relax % ensure going to a new line
|
||||
\colorbox{\minted@bgcol}{\usebox{\minted@bgbox}}%
|
||||
\endtrivlist % close the trivlist
|
||||
}
|
||||
\makeatother
|
||||
\usemintedstyle{friendly}
|
||||
\newminted{haskell}{frame=single,numbers=left}
|
||||
\newminted{cpp}{frame=single,numbers=left}
|
||||
\newminted{c}{frame=single,numbers=left}
|
||||
\newminted{haskell}{bgcolor=mygrey,frame=single,numbers=left}
|
||||
\newminted{cpp}{bgcolor=mygrey,frame=single,numbers=left}
|
||||
\newminted{c}{bgcolor=mygrey,frame=single,numbers=left}
|
||||
\renewcommand{\theFancyVerbLine}{\ttfamily
|
||||
\textcolor[rgb]{0.0,0.0,0.0}{\footnotesize
|
||||
\oldstylenums{\arabic{FancyVerbLine}}}}
|
||||
|
||||
% color definition
|
||||
\definecolor{solarized}{HTML}{002B36}
|
||||
\definecolor{mygreen}{rgb}{0,0.6,0}
|
||||
|
||||
% macros and environments
|
||||
\newcommand{\code}[1]{\texttt{#1}}
|
||||
\newcommand{\slidep}{\onslide<+->}
|
||||
|
||||
Reference in New Issue
Block a user