]>
gitweb.michael.orlitzky.com - mjotex.git/blob - mjo-listing.tex
2 % Code listing support, in particular, for the SageMath interactive
3 % prompt. You can create a box thingy for displaying code like,
5 % \begin{tcblisting}{listing only,
8 % listing options={language=sage,style=sage}}
14 \usepackage{tcolorbox
}
16 % Tell tcolorbox to use ``listings'' within the boxes.
17 \tcbuselibrary{listings
}
19 % Define the colors that we'll use in our listings.
20 \definecolor{codefg
}{rgb
}{0.9,
0.9,
0.9}
21 \definecolor{codebg
}{rgb
}{0.16,
0.16,
0.16}
22 \definecolor{brilliantlavender
}{rgb
}{0.96,
0.73,
1.0}
24 % Define a style for interactive sage prompt listings.
25 \lstdefinelanguage{sage
}{ keywords=
{sage
} }
26 \lstdefinestyle{sage
}{ keywordstyle=
\color{brilliantlavender
} }
28 basicstyle=
\ttfamily\small,