liantze / AltaCV

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

Text overlap in CV event with long text and limited width #89

Closed AlbertoFabbri93 closed 2 years ago

AlbertoFabbri93 commented 2 years ago

LaTeX text overlap Would it be possible to make the city/country area automatically go on a new line if the space is insufficient? If doing so automatically is not possible, how can I force it manually?

liantze commented 2 years ago

If you need this behavior for all your \cvevent, you can add this before \begin{document}:

\patchcmd{\cvevent}{\ifstrequal{#4}}{\par\ifstrequal{#4}}{}{}

But if you just want this for a particular \cvevent or a section, then you can use the \patchcmd just before the first \cvevent with {...} around, to limit the scope of change:

{
\patchcmd{\cvevent}{\ifstrequal{#4}}{\par\ifstrequal{#4}}{}{}
\cvevent{Activity}{Institution}{September...}{City...}
\begin{itemize}...\end{itemize}

\cvevent{...} % any other \cvevents that need this treatment
}
AlbertoFabbri93 commented 2 years ago

Perfect! Thank you!