From c9dd036a671fe348e16ef407617e1ecda9e79c81 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 15 Mar 2016 08:07:59 +0100 Subject: Task 6 --- senc.sty | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'senc.sty') diff --git a/senc.sty b/senc.sty index 9a6af38..f6e15d8 100644 --- a/senc.sty +++ b/senc.sty @@ -6,6 +6,7 @@ \def\s{s\;} \def\x{\mathtt{x}} +\def\y{\mathtt{y}} \def\tt{\mathbf{tt}} \def\ff{\mathbf{ff}} @@ -25,3 +26,16 @@ %\renewcommand{\allttsub}[1]{\begin{math}_{\textcolor{red}{#1}}\end{math}} \renewcommand{\psqan}[5]{\{#1\}^{\textcolor{red}{#4}}\espace #2 \espace \{#3\}^{\textcolor{red}{#5}}} +\newcommand{\transl}[2]{\langle #1, #2\rangle} +\newcommand{\sfor}[4]{\mbox{\texttt{for~}}\sass#1#2\mbox{\texttt{~to~}}#3\mbox{\texttt{~do~}}#4} +\newcommand{\sassert}[2]{\mbox{\texttt{assert~}}#1\mbox{\texttt{~before~}}#2} +\newcommand{\sabort}{\mbox{\texttt{abort}}} + +\def\rcompsos#1{[\mbox{comp}_{\mbox{\footnotesize{sos}}}^{#1}]} +\def\rasssos{[\mbox{ass}_{\mbox{\footnotesize{sos}}}]} +\def\rskipsos{[\mbox{skip}_{\mbox{\footnotesize{sos}}}]} +\def\rifsos#1{[\mbox{if}_{\mbox{\footnotesize{sos}}}^{\mbox{\footnotesize{#1}}}]} +\def\rwhilesos{[\mbox{while}_{\mbox{\footnotesize{sos}}}]} + +\def\rassert{[\mbox{assert}_{\mbox{\footnotesize{sos}}}]} + -- cgit v1.2.3