Skip to content

fix: prevent degree title clipping and hyphenation in classic theme#667

Closed
sandokanCat wants to merge 1 commit intorendercv:mainfrom
sandokanCat:main
Closed

fix: prevent degree title clipping and hyphenation in classic theme#667
sandokanCat wants to merge 1 commit intorendercv:mainfrom
sandokanCat:main

Conversation

@sandokanCat
Copy link
Copy Markdown

Description
This PR fixes a layout issue in the classic theme where degree titles are often clipped or hyphenated incorrectly due to a very narrow hardcoded column width.

The Problem
In the current implementation, the degree-column in the Typst template has a fixed width of 1cm. While this might suffice for short acronyms like "GPA", it is insufficient for many professional degree titles, especially in languages like Spanish or Catalan, where titles like "Certificado Profesional" or "Máster" are common. This leads to:

Aggressive and often incorrect hyphenation (e.g., "certifica-do").
Text clipping or overlapping when hyphenation is not possible.
Poor visual separation between the degree title and the institution name.
Proposed Changes
Increased Column Width: Adjusted the degree-column-width from 1cm to 2.4cm in the Typst preamble to accommodate longer titles comfortably.
Disabled Hyphenation: Added #set text(hyphenate: false) specifically for the degree column to ensure titles remain intact and readable.
Improved Gutter Spacing: Added an additional 0.4cm to the column-gutter between the degree and the main column to improve legibility and provide better visual breathing room.
Template Override: The changes were implemented as a clean override in the education-entry function within the Typst rendering logic.
Impact
Users with non-English CVs or those with long degree titles will see a significant improvement in the professional appearance of their education section, with no more broken words or cramped layouts.

@sinaatalay
Copy link
Copy Markdown
Member

Thank you. This PR should go to the Typst package of RenderCV: https://github.com/rendercv/rendercv-typst

@sinaatalay sinaatalay closed this Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants