Skip to content

Commit

Permalink
New commands \In, \Out, and \Ct to simulate an IPython prompt.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Jun 15, 2017
1 parent e49f1dd commit 76dfc01
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gc3.sty
Expand Up @@ -176,3 +176,13 @@
\end{frame}
}
}


%% simulate IPython prompt
\newcounter{IPythonPrompt}
\newcommand\In{%
\global\def\promptnr{\arabic{IPythonPrompt}}%
\stepcounter{IPythonPrompt}%
{\color{blue}\bfseries In\ [\promptnr]:}}
\newcommand\Out{{\color{red}\bfseries Out[\promptnr]:}}
\newcommand\Ct{{\color{blue}\ \ \ ...:}}

0 comments on commit 76dfc01

Please sign in to comment.