diff --git a/01-uvod/01-uvod.tex b/01-uvod/01-uvod.tex index df1f710a40b191bfa38c855a34cbaff8541782bd..eb5857893b82513065f4703666fdbfae198b5ec8 100644 --- a/01-uvod/01-uvod.tex +++ b/01-uvod/01-uvod.tex @@ -17,19 +17,7 @@ \titlepage \end{frame} -\def\>{\color{black}>>> \color{blue}} - -\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 -} +\input ../slidemac.tex % ---------------------------------------------------------------------- diff --git a/slidemac.tex b/slidemac.tex new file mode 100644 index 0000000000000000000000000000000000000000..0a5c4be4caa4d02402b90199c200aba3997c484b --- /dev/null +++ b/slidemac.tex @@ -0,0 +1,15 @@ +\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 +}