I am using LaTeX (LuaLaTeX,actually) and lately I found myself doing this a lot:
\vbox{%
\hbox{\strut foo}%
\hbox{\strut bar}%
\hbox{\strut baz}%
}
I use it inside tabular environments, floats, on title pages and sometimes even in normal text. When I do this foo
, bar
and baz
are always a lot shorter than, e.g. \linewidth
. I found this to be the easiest and quickest thing to get what I want. On special occasions, when there are a lot of items to display I resort to \tabular{l}
.
Both constructs look like this is not how LaTeX is supposed to work from an user's perspective. Is there some environment or anything I can use to achieve the same effect as my 5 lines above do? Of course there are for example all the itemizes, but those all have some margin/padding/indent magic about them that always ends up making me want to use Word. My \vbox
-\hbox
-\strut
construct works always as expected, in 100% of my use cases.
\halign{\strut#\crcr foo\cr bar\cr baz\cr}
(You can even leave out\strut
)\def\shortycut#1#2#3{\vbox{% \hbox{\strut #1}% \hbox{\strut #2}% \hbox{\strut #3}% }
causes an error?