So, this is a case of "It's LaTeX, surely there's a better way of doing this."
I've tried using tabular*
, tabularx
, and a few other things, but I don't quite get what I'm doing wrong with any of them. My current (working) code looks like
\usepackage{array}
...
\newcolumntype{R}{>{\flushright\arraybackslash}m{.75\columnwidth}}
\newcolumntype{L}{>{\flushleft\arraybackslash}m{.25\columnwidth}}
\begin{tabular*}{\columnwidth}{R|L}
lots of cool text that is long and needs wrapping
&
a very small fixed-width object,
in my case a graphic made with the igo package
\end{tabular*}
My trouble is with my column definitions. I had to choose the columnwidth
s by hand. I just want the whole tabular
to span the current columnwidth
, with one column as shrunk as possible (the second) and the other as wide as possible. This made me think of using tabular*
, but the examples I found with \fill
did not work with line wrapping.
Is there a better way of doing this?