X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=Utils%2FFormats.tex;fp=Utils%2FFormats.tex;h=5dc0158c23bba389bce649bb20fec58094313049;hp=0000000000000000000000000000000000000000;hb=43d50fb84915e330993e9ef04c1c380709b903e0;hpb=32d52cda513c45334ab256c9f42d41ed6938fc48 diff --git a/Utils/Formats.tex b/Utils/Formats.tex new file mode 100644 index 0000000..5dc0158 --- /dev/null +++ b/Utils/Formats.tex @@ -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} +}