Show More
@@ -19,8 +19,9 b'' | |||||
19 | \definecolor{darkorange}{rgb}{.71,0.21,0.01} |
|
19 | \definecolor{darkorange}{rgb}{.71,0.21,0.01} | |
20 | \definecolor{darkgreen}{rgb}{.12,.54,.11} |
|
20 | \definecolor{darkgreen}{rgb}{.12,.54,.11} | |
21 | \definecolor{myteal}{rgb}{.26, .44, .56} |
|
21 | \definecolor{myteal}{rgb}{.26, .44, .56} | |
22 |
\definecolor{gray}{ |
|
22 | \definecolor{gray}{gray}{0.45} | |
23 |
\definecolor{lightgray}{ |
|
23 | \definecolor{lightgray}{gray}{.95} | |
|
24 | \definecolor{mediumgray}{gray}{.8} | |||
24 | \definecolor{inputbackground}{rgb}{.95, .95, .85} |
|
25 | \definecolor{inputbackground}{rgb}{.95, .95, .85} | |
25 | \definecolor{outputbackground}{rgb}{.95, .95, .95} |
|
26 | \definecolor{outputbackground}{rgb}{.95, .95, .95} | |
26 | \definecolor{traceback}{rgb}{1, .95, .95} |
|
27 | \definecolor{traceback}{rgb}{1, .95, .95} | |
@@ -36,8 +37,8 b'' | |||||
36 | % codecell is the whole input+output set of blocks that a Code cell can |
|
37 | % codecell is the whole input+output set of blocks that a Code cell can | |
37 | % generate. |
|
38 | % generate. | |
38 | \newenvironment{codecell}{% |
|
39 | \newenvironment{codecell}{% | |
39 |
\def\FrameCommand{\vrule width |
|
40 | \def\FrameCommand{\color{mediumgray} \vrule width 1pt \hspace{5pt}}% | |
40 | \MakeFramed{\FrameRestore}} |
|
41 | \MakeFramed{\vspace{-0.5em}\FrameRestore}} | |
41 | {\unskip\endMakeFramed} |
|
42 | {\unskip\endMakeFramed} | |
42 |
|
43 | |||
43 | \newenvironment{codeinput}{% |
|
44 | \newenvironment{codeinput}{% | |
@@ -47,6 +48,7 b'' | |||||
47 |
|
48 | |||
48 | \newenvironment{codeoutput}{% |
|
49 | \newenvironment{codeoutput}{% | |
49 | \def\FrameCommand{\colorbox{outputbackground}}% |
|
50 | \def\FrameCommand{\colorbox{outputbackground}}% | |
|
51 | \vspace{-1.4em} | |||
50 |
|
|
52 | \MakeFramed{\advance\hsize-\width \FrameRestore}} | |
51 | {\unskip\medskip\endMakeFramed} |
|
53 | {\unskip\medskip\endMakeFramed} | |
52 |
|
54 | |||
@@ -85,7 +87,7 b'' | |||||
85 |
|
87 | |||
86 | % hardcode size of all verbatim environments to be a bit smaller |
|
88 | % hardcode size of all verbatim environments to be a bit smaller | |
87 | \makeatletter |
|
89 | \makeatletter | |
88 | \g@addto@macro\@verbatim\small |
|
90 | \g@addto@macro\@verbatim\small\topsep=0.5em\partopsep=0pt | |
89 | \makeatother |
|
91 | \makeatother | |
90 |
|
92 | |||
91 | % Prevent overflowing lines due to urls and other hard-to-break entities. |
|
93 | % Prevent overflowing lines due to urls and other hard-to-break entities. |
General Comments 0
You need to be logged in to leave comments.
Login now