Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects

Resolved pdf pageBreak issue

Merged Aryan Nanda requested to merge aryan_nanda/gsoc.beagleboard.io:aryan_pdfIssue into main

This PR resolves the Download pdf -> pageBreak issue.

Before: - Old_pageBreaks.pdf

After: - Corrected.pdf

Reason of page break before:- If we don't specify anything regarding page clearing in our LaTeX document, the default behavior of \cleardoublepage will be followed. This means LaTeX will automatically insert page breaks to ensure that new chapters or sections start on a right-hand page, as is customary in book-style layouts. The line r"\let\cleardoublepage\clearpage" added to the preamble in the latex_elements dictionary essentially modifies the behavior of \cleardoublepage to act like \clearpage. Unlike \cleardoublepage, \clearpage does not specifically ensure that the next page starts on a right-hand page in a two-sided document. Instead, it simply starts a new page immediately.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
Please register or sign in to reply