Skip to content

Commit

Permalink
slides 7 better code highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
avehtari committed Oct 7, 2024
1 parent af5d1c5 commit 0fab380
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 148 deletions.
Binary file modified slides/BDA_lecture_6.pdf
Binary file not shown.
30 changes: 15 additions & 15 deletions slides/BDA_lecture_6.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@
\usepackage{natbib}
\bibliographystyle{apalike}

\makeatletter
\newcommand{\minted@style@bw}{%
\renewcommand\fcolorbox[3][]{##3}%
\renewcommand\textcolor[3][]{##3}%
\color{gray}
}

% define new minted option "gray"
\minted@def@opt@switch{gray}
\fvset{formatcom*={%
\ifthenelse{\equal{\minted@get@opt{gray}{true}}{true}}
{\minted@style@bw}{}%
}}
\makeatother

\mode<presentation>
{
\setbeamercovered{invisible}
Expand All @@ -51,21 +66,6 @@
\renewcommand{\emph}[1]{\textcolor{navyblue}{#1}}
\definecolor{darkgreen}{rgb}{0,0.3922,0}

\makeatletter
\newcommand{\minted@style@bw}{%
\renewcommand\fcolorbox[3][]{##3}%
\renewcommand\textcolor[3][]{##3}%
\color{gray}
}

% define new minted option "gray"
\minted@def@opt@switch{gray}
\fvset{formatcom*={%
\ifthenelse{\equal{\minted@get@opt{gray}{true}}{true}}
{\minted@style@bw}{}%
}}
\makeatother

\graphicspath{{./figs/}}

\parindent=0pt
Expand Down
Binary file modified slides/BDA_lecture_7.pdf
Binary file not shown.
Loading

0 comments on commit 0fab380

Please sign in to comment.