sinaatalay / rendercv

A LaTeX CV/Resume Framework
http://docs.rendercv.com
MIT License
725 stars 63 forks source link

Suggestion: No more Page Breaks in Entries #115

Closed Kigstn closed 1 week ago

Kigstn commented 2 weeks ago

Hi! First of all thanks for creating this :)

I have one small suggestion: Currently, a single entry may be split onto two pages. I find this a bit annyoing and would rather want the entry to start on the second page, if there is not enough space on the first page.

image

sinaatalay commented 2 weeks ago

Thank you for the suggestion! The entries used to be nonbreakable, but we found that breaking them is better, especially for people with very long entries (see #47).

If you would like to achieve what you want, try updating your moderncv/ExperienceEntry.j2.tex (or other entries as well) from this:

\cventry{
    ((*- if design.show_only_years *))<<-entry.date_string_only_years->>((* else *))<<-entry.date_string->>((* endif -*))
}{\textbf{<<entry.company>>}}{
    <<-entry.position->>
}{
    <<-entry.location->>
}{}{}
((* for item in entry.highlights *))
\cvlistitem{<<item>>}
((* endfor *))

To this:

\begin{minipage}{\linewidth}
\cventry{
    ((*- if design.show_only_years *))<<-entry.date_string_only_years->>((* else *))<<-entry.date_string->>((* endif -*))
}{\textbf{<<entry.company>>}}{
    <<-entry.position->>
}{
    <<-entry.location->>
}{}{}
((* for item in entry.highlights *))
\cvlistitem{<<item>>}
((* endfor *))
\end{minipage}

The moderncv folder is created with rendercv new "Your Name" --theme "moderncv" command. See here for details.

If it works, we should add this to the FAQ.

Kigstn commented 2 weeks ago

Yes that works!

Ideally, if a config option could be made for this, it would be the easiest IMO. If that is too much effort, I agree with adding the workaround to the FAQ - I don't think I am the only one with this "issue".

Thanks so much :)

sinaatalay commented 1 week ago

I'm currently not intending to include a configuration option because it would complicate the templates. However, if anyone has comments on this, please let me know.