In a two-column document, I would like some text to be positioned at the bottom right of the right column. The text is inside tabular
and flushright
. An MWE is:
\documentclass[twocolumn]{article}
\usepackage{lipsum}
\begin{document}
\lipsum[1-4]
\vfill
\begin{flushright}
\begin{tabular}[b]{p{3cm} r}
some text & 0
\end{tabular}
\end{flushright}
\end{document}
However, there is some vertical space below (see image) which I would like to remove so the part "some text 0" fully aligns with the left column at the bottom.
I believe I would need to edit the spacing for both flushright
and tabular
in this instance but don't know how (other than just manually adding a negative space via \vspace{-1.5em}
). Help appreciated!
EDIT: To explain why I use/need the tabular
, here is working example less minimal but more similar to my needs. It already uses some of the answers below.
\documentclass[twocolumn]{article}
\usepackage{lipsum}
\usepackage[demo]{graphicx}
\usepackage{array}
\begin{document}
\lipsum[1-4]
\vspace*{\fill}
\noindent
\makebox[\linewidth][r]{
\begin{tabular}[b]{ b{3cm} r@{}}
some long, line-wrapped text &
\includegraphics[width=2cm]{img}
\end{tabular}
}
\end{document}
But there still seems to be some small space below the box.
Best Answer
Note you want
\vspace*
not\vfill
or the space would be discarded if the column break happened at that point.