Commit 4bbd1734 authored by Martin Mareš's avatar Martin Mareš
Browse files

Generalizace slidemac

parent 893f7f1c
...@@ -17,19 +17,7 @@ ...@@ -17,19 +17,7 @@
\titlepage \titlepage
\end{frame} \end{frame}
\def\>{\color{black}>>> \color{blue}} \input ../slidemac.tex
\def\=#1{{\color{teal}#1}\endgraf\smallskip}
\def\py#1#2{%
\def\tmp{#1}\ifx\tmp\empty\else
{\tt\def\\{\hfil\break\>}\>#1}\\%
\fi
\def\tmp{#2}\ifx\tmp\empty\else
{\tt\color{red}#2}\\%
\fi
\medskip
}
% ---------------------------------------------------------------------- % ----------------------------------------------------------------------
......
\def\pyprompt{\color{black}>>> \color{blue}}
\def\pydots{\color{black}... \color{blue}}
\def\>{\hphantom{xxxx}}
\def\=#1{{\color{teal}#1}\endgraf\smallskip}
\def\py#1#2{%
\def\tmp{#1}\ifx\tmp\empty\else
{\tt\def\\{\hfil\break\pyprompt}\def\.{\hfil\break\pydots}\pyprompt #1}\\%
\fi
\def\tmp{#2}\ifx\tmp\empty\else
{\tt\color{red}#2}\\%
\fi
\medskip
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment