Skip to content

Instantly share code, notes, and snippets.

@chrisma
Last active January 1, 2022 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisma/c4eaa1753ba16ccba004 to your computer and use it in GitHub Desktop.
Save chrisma/c4eaa1753ba16ccba004 to your computer and use it in GitHub Desktop.
LaTeX commands to add left aligned entries to moderncv template
\newcommand{\cvitemleft}[3][.25em]{%
\begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}%
\hintstyle{#2} &{#3}%
\end{tabular}%
\par\addvspace{#1}
}
\newcommand{\cventryleft}[7][.25em]{%
\cvitemleft[#1]{#2}{%
{\bfseries#3}%
\ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
\ifthenelse{\equal{#5}{}}{}{, #5}%
\ifthenelse{\equal{#6}{}}{}{, #6}%
.\strut%
\ifx&#7&%
\else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment