liantze / AltaCV

Yet another alternative curriculum vitae/résumé class with LaTeX
Other
1.26k stars 329 forks source link

cvevent date and location overlap #82

Closed Andrew-Fahmy closed 3 years ago

Andrew-Fahmy commented 3 years ago

First off I would like to thank you for the amazing template.

The only issue I have ran into so far was with a slight overlap in the date and location under a cvevent when using a two column layout. I think this is due to both text fields taking half of the width. I don't know a lot about latex, but one thought that I had was to allow a way to change this ratio before creating a cvevent.

Here is a sample to reproduce what I mean:

\documentclass[12pt, letterpaper]{altacv}

\usepackage{paracol}

\usepackage[default]{lato}

\begin{document}
    \name{}
    \tagline{}

    \personalinfo{
    }

    \begin{fullwidth}
        \makecvheader
    \end{fullwidth}

    \columnratio{0.55}
    \begin{paracol}{2}

        \switchcolumn
        \cvsection{Education}
        \cvevent{Bachelor of Science in Something}{Some University}{August 2015 -- June 2018}{Some, Town}
        \begin{itemize}
            \item some point
        \end{itemize}

    \end{paracol}
\end{document}

image

liantze commented 3 years ago

It's a bit klunky; but you can "patch" the width for the date and the location using \patchcmd:

% Replace the first occurence 0.5\linewidth with 0.6\linewidth
\patchcmd{\cvevent}{0.5\linewidth}{0.6\linewidth}{}{}
% Replace the second occurence 0.5\linewidth with 0.4\linewidth
\patchcmd{\cvevent}{0.5\linewidth}{0.4\linewidth}{}{}
Screenshot 2021-06-25 at 3 48 18 PM
Andrew-Fahmy commented 3 years ago

That works It is kind of a niche thing to change so I don't think it's a big deal if it's clunky. I had never heard about patchcmd before so thank you for this fix!