I am trying to create a 6.5in longtable
with 3 columns (Name, Major/University, Date). I would like the first and second cells to be left-aligned, while the third cell is right-aligned. I want to use \dotfill
between the cells.
I am still new to customizing the parameters in tables, but this is what I have now. As can be seen, there is a space between the dots in the 2nd and 3rd cell for each row. I would like it if I could close this gap, and I'm not sure how. I tried putting @{}
after the >{\dotfill\raggedleft\arraybackslash}
but that raised an error.
Here is a MWE and picture of output.
\documentclass{minimal}
\usepackage{longtable}
\usepackage{array}
\begin{document}
\begin{center}
\begin{longtable}{@{}p{1.625in}<{\dotfill}@{}p{3.875in}<{\dotfill}@{}@{}>{\dotfill\raggedleft\arraybackslash}p{1in}@{}}
First Last & Some Thing and Some Thing, Some Where and Some Where & 2019 \\
FirstFirst LastLast & Some Thing and Some Other Thing, Some Where, Somewhere & 2019 \\
FirstFirst Last & Something, Somewhere & 2018 - 2019 \\
First LastLast & Something Something, Somewhere Somewhere & Fall 2019 \\
First Middle Last & Thing, Where & Summer 2019 \\
First Middle Middle Last & Something, Where & Spring 2019 \\
First Last & Something Some Other Thing, Somewhere and Somewhere & Winter 2019 \\
\end{longtable}
\end{center}
\end{document}