From 67396779f033cd43820db6b68115808b49b4b63b 2013-06-13 20:15:16 From: jakobgager Date: 2013-06-13 20:15:16 Subject: [PATCH] Add missing color definintions to latex header --- diff --git a/nbconvert/templates/latex/base.tplx b/nbconvert/templates/latex/base.tplx index e118227..d6ffc7a 100644 --- a/nbconvert/templates/latex/base.tplx +++ b/nbconvert/templates/latex/base.tplx @@ -166,6 +166,16 @@ unknown type (((cell.type))) \definecolor{outputbackground}{rgb}{.95, .95, .95} \definecolor{traceback}{rgb}{1, .95, .95} +% new ansi colors +\definecolor{brown}{rgb}{0.54,0.27,0.07} +\definecolor{purple}{rgb}{0.5,0.0,0.5} +\definecolor{darkgray}{gray}{0.25} +\definecolor{lightred}{rgb}{1.0,0.39,0.28} +\definecolor{lightgreen}{rgb}{0.48,0.99,0.0} +\definecolor{lightblue}{rgb}{0.53,0.81,0.92} +\definecolor{lightpurple}{rgb}{0.87,0.63,0.87} +\definecolor{lightcyan}{rgb}{0.5,1.0,0.83} + % Framed environments for code cells (inputs, outputs, errors, ...). The % various uses of \unskip (or not) at the end were fine-tuned by hand, so don't % randomly change them unless you're sure of the effect it will have. diff --git a/nbconvert/templates/latex/sphinx_base.tplx b/nbconvert/templates/latex/sphinx_base.tplx index 1ffe245..7750118 100644 --- a/nbconvert/templates/latex/sphinx_base.tplx +++ b/nbconvert/templates/latex/sphinx_base.tplx @@ -68,6 +68,17 @@ Note: For best display, use latex syntax highlighting. =)) % Pygments requirements \usepackage{fancyvrb} \usepackage{color} + % ansi colors additions + \definecolor{darkgreen}{rgb}{.12,.54,.11} + \definecolor{lightgray}{gray}{.95} + \definecolor{brown}{rgb}{0.54,0.27,0.07} + \definecolor{purple}{rgb}{0.5,0.0,0.5} + \definecolor{darkgray}{gray}{0.25} + \definecolor{lightred}{rgb}{1.0,0.39,0.28} + \definecolor{lightgreen}{rgb}{0.48,0.99,0.0} + \definecolor{lightblue}{rgb}{0.53,0.81,0.92} + \definecolor{lightpurple}{rgb}{0.87,0.63,0.87} + \definecolor{lightcyan}{rgb}{0.5,1.0,0.83} % Needed to box output/input \usepackage{tikz}