3

I have a document like this

\textbf{Company Name}, \textit{Position} \hfill{City, State} \hfill Jan 2018--May 2018
\begin{itemize}
    \item Some bullet point
\end{itemize}
\textbf{Longer Company Name}, \textit{Position} \hfill{City, State} \hfill Jan 2018--May 2018

enter image description here

I want the City, State part to be center aligned (or consistently aligned across different entries if not centered). Maybetabular could work, but I don't know how to put itemize inside the tabular and allow it to span the entire line.

2

2 Answers 2

5

You can set the left, centre and r component in appropriately-aligned \makeboxes of zero width:

enter image description here

\documentclass{article}

\usepackage[margin=1in]{geometry}% Just for this example

\begin{document}

\textbf{Company Name}, \textit{Position} \hfill{City, State} \hfill Jan 2018--May 2018

\begin{itemize}
  \item Some bullet point
\end{itemize}

\textbf{Longer Company Name}, \textit{Position} \hfill{City, State} \hfill Jan 2018--May 2018

\noindent\hrulefill

\makebox[0pt][l]{\textbf{Company Name}, \textit{Position}}\hfill
\makebox[0pt][c]{City, State}\hfill
\makebox[0pt][r]{Jan 2018--May 2018}

\begin{itemize}
  \item Some bullet point
\end{itemize}

\makebox[0pt][l]{\textbf{Longer Company Name}, \textit{Position}}\hfill
\makebox[0pt][c]{City, State}\hfill
\makebox[0pt][r]{Jan 2018--May 2018}

\end{document}
6

With use of packages tabularx and enumitem:

enter image description here

\documentclass{article}
\usepackage{tabularx}
\newcolumntype{M}{>{\csname @minipagetrue\endcsname}X}
\usepackage{enumitem}
\newlist{tabitem}{itemize}{1}   % <-- defined new list
\setlist[tabitem]{nosep,        % <-- new list setup
                  leftmargin=*,
                  label=$\bullet$,
                  after=\vspace{-\baselineskip}
                  }

\begin{document}
\begin{tabularx}{\linewidth}{@{} 
    >{\raggedright\arraybackslash}M c 
    >{\raggedleft\arraybackslash}M @{}}
\textbf{Company Name}, \textit{Position} 
 \begin{tabitem}
    \item Some bullet point
\end{tabitem}           
        & City, State   & Jan 2018--May 2018    \\
\textbf{Longer Company Name}, \textit{Position} 
        & City, State   & Jan 2018--May 2018
\end{tabularx}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .