diff --git a/latex/yslistings.tex b/latex/yslistings.tex index 8b00b7b..30c7ca1 100644 --- a/latex/yslistings.tex +++ b/latex/yslistings.tex @@ -59,4 +59,12 @@ } \lstnewenvironment{lstalgo}[1][]{\leavevmode\lstset{columns=fullflexible, basicstyle=\rmfamily\NoAutoSpacing, language=algorithme, frame=single, frameround=tttt, #1}}{} +\newbox\hoareboxB +\newbox\hoareboxC +\newbox\hoareboxA +%\newenvironment{trhoare}[2]{\setbox\hoarebox=\hbox\begingroup\begin{lstpython}[frame=none, basicstyle=\ttfamily\scriptsize] +%}{\end{lstpython}\endgroup}\left\{#1\vphantom{\copy\hoarebox}\right\}\quad\copy\hoarebox\quad\left\{\vphantom{\copy\hoarebox}#3\right\}} + +%\long\def\trhoare#1\trhcode{\setbox\hoareboxB=\hbox{#1}} + \endinput \ No newline at end of file