Skip to content
Snippets Groups Projects
Commit 7c7e5fec authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

DOC: use mdframed for code snippets

parent 590c548c
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,13 @@
\definecolor{listwhite}{gray}{1.0}
\usepackage{minted}
\newminted{cpp}{fontsize=\small}
\newminted{cmake}{fontsize=\small}
\newminted{bat}{fontsize=\small}
\usepackage{mdframed}
\BeforeBeginEnvironment{cppcode}{\begin{mdframed}[leftline=false,rightline=false,backgroundcolor=listlightgray]}
\AfterEndEnvironment{cppcode}{\end{mdframed}}
\newif\ifitkFullVersion
\itkFullVersiontrue
......
......@@ -92,7 +92,7 @@ sub ParseCxxFile {
$tagfound = 1;
$dumpinglatex = 0;
$dumpingcode = 1;
print OUTFILE "\\begin{minted}{cpp}\n";
print OUTFILE "\\begin{cppcode}\n";
}
elsif( /$endlatextag/ ) {
$tagfound = 1;
......@@ -101,7 +101,7 @@ sub ParseCxxFile {
elsif( /$endcodesnippettag/ ) {
$tagfound = 1;
$dumpingcode = 0;
print OUTFILE "\\end{minted}\n";
print OUTFILE "\\end{cppcode}\n";
}
if( !$tagfound ) {
if( $dumpinglatex ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment