From 5bdf874a89140e9a54317f6fac125db4b7b65b44 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Sat, 22 Jun 2019 16:12:22 +0200 Subject: [PATCH] add conditions env --- lab_report.cls | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lab_report.cls b/lab_report.cls index 72cb844..306bd84 100644 --- a/lab_report.cls +++ b/lab_report.cls @@ -10,6 +10,9 @@ \RequirePackage{float}% \RequirePackage{kvoptions} \RequirePackage{booktabs} +\RequirePackage{array} +\RequirePackage{tabularx} +\RequirePackage{calc} \RequirePackage[automark,headsepline]{scrpage2} \KOMAoptions{DIV=14} @@ -64,3 +67,13 @@ \tableofcontents \end{titlepage} } + + +\newlength{\conditionwd} +\newenvironment{conditions}[1][where:] + {% + #1\tabularx{\textwidth-\widthof{#1}}[t]{ + >{\(}l<{\)} @{${}-\quad{}$} X@{} + }% + } + {\endtabularx\\[\belowdisplayskip]}