I have now been working on fixing this problem for some time and I have read through some forums on the Internet and tried different things, but I can't solve this problem.
I am looking to have some text vertically aligned at the bottom inside a long table, preferable with a line about the text for a signature. Furthermore I would like to have control over the minimum height of the rows.
I've seen that I can align text vertically with the array package and from Vertical aligning in longtable environment it also seems to be possible inside a long table.
I should probably also say that I am generating my tables with R's knitr package and xtable's print.xtable()
.
I have some working code here (and also a screenshot of what I currently have below the code).
\documentclass[12pt]{article}
\usepackage{longtable}
\usepackage[landscape]{geometry}
\usepackage{colortbl} %
\begin{document}
\begin{longtable}{cccp{6.6cm}p{3.6cm}p{3.6cm}}
\hline
Date & Event & Type & Note & Bank & Banrak Obama \\
\hline \endhead \rowcolor[gray]{.95}Sep 02 2012 & 005 & CPP & ww &John Doe, \#, '\# & Some Name \\
Sep 10 2012 & 006 & IND & Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. &John Doe, \#, '\# & Some Name \\
\rowcolor[gray]{.95} Sep 22 2012 & 002 & CON & I sat around thinking about my life. & John Doe, \#, ID'\# & Some Name \\
Sep 23 2012 & 003 & OUT & Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. Donec non sapien tellus, et condimentum lectus. Aenean eu mollis velit. Morbi dignissim commodo sapien, bibendum consectetur libero mattis eu. Aliquam tristique pharetra elit et posuere. Nullam adipiscing, purus at volutpat consequat. &John Doe, \# ID'\# & Some Name \\
\rowcolor[gray]{.95} Sep 23 2012 & 004 & OUT & Outreach, Fish. \& $\backslash$ \# Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. Donec non sapien tellus, et condimentum lectus. Aenean eu mollis velit. Morbi dignissim commodo sapien, bibendum consectetur libero mattis eu. Aliquam tristique pharetra elit et posuere. Nullam adipiscing, purus at volutpat consequat. &John Doe, \# ID'\# & Some Name \\
Sep 23 2012 & 003 & OUT & Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. Donec non sapien tellus, et condimentum lectus. Aenean eu mollis velit. Morbi dignissim commodo sapien, bibendum consectetur libero mattis eu. Aliquam tristique pharetra elit et posuere. Nullam adipiscing, purus at volutpat consequat. &John Doe, \# ID'\# & Some Name \\
\rowcolor[gray]{.95} Sep 23 2012 & 004 & OUT & Outreach, Fish. \& $\backslash$ \# Quisque luctus purus non arcu feugiat pharetra. In hac habitasse platea dictumst. Donec non sapien tellus, et condimentum lectus. Aenean eu mollis velit. Morbi dignissim commodo sapien, bibendum consectetur libero mattis eu. Aliquam tristique pharetra elit et posuere. Nullam adipiscing, purus at volutpat consequat. &John Doe, \# ID'\# & Some Name \\
\hline
\hline
\label{PN.df}
\end{longtable}
\end{document}
b{<width>}
vertically aligns at the bottom (p
aligns at the top,m
at the middle). You may further define minimum row (where in that vertical space should be the text’s baseline?). For a tabular-globe use you can redefine\arraystretch
, e.g.\renewcommand{\arraystretch}{1.5}
. – Qrrbrbirlbel Dec 5 '12 at 5:54tabular-globe
? Could you refer me to a source or maybe share an working example with me? Also, it is my understanding thatlongtbale' overwrites any
b{<width>}'s or
m{<width>}`'s, but maybe that is what you are circumventing by your suggestion? Thanks, Eric. – Eric Fail Dec 5 '12 at 6:39