PandaScience / FortySecondsCV

A highly customizable and improved version of Carmine Spagnuolo's Twenty Seconds Curriculum Vitae.
BSD 3-Clause "New" or "Revised" License
215 stars 66 forks source link

How to wrap a super long University name? #47

Closed Firestar99 closed 1 year ago

Firestar99 commented 1 year ago

image

Would appreciate any ideas on how to insert a line break into the Uni's name. Using either \\ or \newline in the Uni's name creates this:

image

Thanks for any help :D Worst case I will just keep it blank and write it in cursive or something in the first line of the description.

\cvsection{Education}
\begin{cvtable}[1.5]
    \cvitem{2045 onwards}{Master in some IT subject with a long name}{University of applied Sciences Somecity}
        {German \enquote{Hochschule Somecity} translates to \enquote{University of applied Sciences Somecity} which is super long and breaks this layout}
\end{cvtable}
PandaScience commented 1 year ago

Congratulations, you found one of the weak spots in this CV class :wink:

To best of my knowledge, I cannot make this dynamically adjustable for all cases. I think the best you can do is passing a parbox of a certain fixed width instead of plain text as location argument like so:

\cvsection{Education}
\begin{cvtable}[1.5]
    \cvitem{2045 onwards}{Master in some IT subject with a long name}{%
        \parbox[t]{<FIXED_LENGTH>}{%
            University of applied Sciences Somecity
        }%
        {German \enquote{Hochschule Somecity} translates to \enquote{University of applied Sciences Somecity} which is super long and breaks this layout}
\end{cvtable}

with <FIXED_LENGTH> set to something like 10em.

Firestar99 commented 1 year ago

Thanks, works perfectly!