Skip to content

Wrong page break #39

Closed
Closed

Description

@rodolfo-medina

Hi: in the definition of \section there must be something wrong, because it happens to me that the page sometimes breaks just after the horizontal rule that starts any new section, between the horizontal rule and the following text: that it shoudn't absolutely do.

Thanks,

Rodolfo

Activity

  1. welcome commented on Aug 22, 2024

    @welcome

    Thanks for opening your first issue here! Make sure that no other issues on the same topic have already been opened!

  2. gsilano commented on Aug 23, 2024

    @gsilano
    Owner

    Hi! Could you attach your code so that I can test it? Thanks!

  3. self-assigned this
    on Aug 23, 2024
  4. added
    bugSomething isn't working
    help wantedExtra attention is needed
    status: in progressThis issue is being addressed already. To be applied to issues if they have a open PR
    on Aug 23, 2024
  5. rodolfo-medina commented on Aug 23, 2024

    @rodolfo-medina
    Author

    Yes: this is my cv and the problem occurs on the end of pp.6 and 7. The problem seems to be solved if, in the definition of section, I remove '\nopagebreak'. I process the tex file with 'pdflatex europass-cv.tex'. Thank you. Github won't allow to me to upload the extension `.tex', so I'm attaching it as a '.txt' file, but it's actually a tex file.

    europass-cv.txt

    europass-cv.pdf

  6. gsilano commented on Aug 30, 2024

    @gsilano
    Owner

    The issue is caused by the beginning of the "Cinema Indipendente" section. A simple way to fix it is to add a "\vspace*{0.5em}" command. Feel free to adjust the argument (0.5em) according to your preferences. Alternatively, you could force a new page with the "\newpage" command.

    Since this problem is specific to your CV and does not affect any others, I won't implement these changes in the repository on CTAN.

    If you need any further assistance, please don't hesitate to ask.

    P.S. Next time, please share all files in a zip folder, as some images and other minor elements were missing during compilation.

  7. github-actions commented on Oct 16, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  8. gsilano commented on Oct 19, 2026

    @gsilano
    Owner

    This is fixed in fb8a5a8 (part of #52).

    I could reproduce it with a CV made of several europecv environments: each environment starts with a horizontal rule (\cline{1-1}), and \cline allows a page break right after the rule. When an environment starts near the end of a page, the rule is left alone at the bottom and the section title moves to the next page, which matches what you described. The \nopagebreak in \section is not the culprit: it keeps the title together with the first entry, and removing it only hid the problem by moving the break elsewhere.

    The rule is now drawn by a command that looks exactly like \cline{1-1} (the output is pixel-identical when no page break is involved), but does not allow a page break after it, so the rule always stays with the section that follows. No change is needed in your CV.

    The fix will be available on CTAN with the next release (2026.10.19). Thanks for the report, @rodolfo-medina!


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is neededstatus: in progressThis issue is being addressed already. To be applied to issues if they have a open PRwontfixThis will not be worked on

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions