Add some initial structure for the final report.
[matthijs/master-project/report.git] / Utils / Formats.tex
diff --git a/Utils/Formats.tex b/Utils/Formats.tex
new file mode 100644 (file)
index 0000000..5dc0158
--- /dev/null
@@ -0,0 +1,17 @@
+%
+% Defines some useful formatting environments.
+%
+
+% A simple description format
+\definedescription 
+  [desc]
+  [location=hanging,hang=20,width=broad]
+
+% An (invisible) frame to hold some expression. Used to treat multiple lines
+% as a single line and put it next to each other.
+\define[1]\hiddenframe{
+        % The align=right option really does left-alignment, but without it,
+        % all lines will end up on a single line. The strut=no option prevents
+        % a bunch of empty space at the start of the frame.
+        \framed[offset=0mm,location=middle,strut=no,align=right,frame=off]{#1}
+}