Skip to content

Fix table column width overflow in CV skills section#7

Merged
oonis merged 4 commits intomasterfrom
copilot/fix-cv-formatting-issues
Nov 11, 2025
Merged

Fix table column width overflow in CV skills section#7
oonis merged 4 commits intomasterfrom
copilot/fix-cv-formatting-issues

Conversation

Copy link
Contributor

Copilot AI commented Nov 11, 2025

The CV had text overlapping in the skills section due to a table column width calculation that caused a 79.55pt overflow. The second column was set to 0.9\textwidth without accounting for table separators and the first column width.

Changes

  • Skills table (awesome-cv.cls): Reduced second column width from 0.9\textwidth to 0.73\textwidth to account for tabcolsep spacing
  • Header spacing (awesome-cv.cls, cv.tex): Changed social separator from \quad\textbar\quad to \enskip\textbar\enskip and icon separator from \space to \hspace{0.5ex} to reduce minor 1.46pt header overflow
  • Build artifacts (.gitignore): Added cv.pdf and *.png
% Before: 79.55pt overflow
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} r L{\textwidth * \real{0.9}}}

% After: no overflow
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} r L{\textwidth * \real{0.73}}}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Correct my CV which can be found in the github page (https://oonis.github.io/cv/) and generated automatically from latex. Right now it appears that the text is overlapping which is not something I want. Correct the spacing and formatting in the compiled pdf.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits November 11, 2025 08:46
Co-authored-by: oonis <30103396+oonis@users.noreply.github.com>
Co-authored-by: oonis <30103396+oonis@users.noreply.github.com>
Co-authored-by: oonis <30103396+oonis@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix overlapping text in CV PDF Fix table column width overflow in CV skills section Nov 11, 2025
Copilot AI requested a review from oonis November 11, 2025 08:59
@oonis oonis marked this pull request as ready for review November 11, 2025 09:25
Copilot AI review requested due to automatic review settings November 11, 2025 09:25
@oonis oonis merged commit 5699f9a into master Nov 11, 2025
5 checks passed
@oonis oonis deleted the copilot/fix-cv-formatting-issues branch November 11, 2025 09:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes text overflow issues in the CV by adjusting table column widths and header spacing. The changes address a 79.55pt overflow in the skills section table and a minor 1.46pt header overflow.

Key Changes:

  • Reduced skills table second column width from 0.9\textwidth to 0.73\textwidth to prevent overflow
  • Adjusted header spacing by changing separators to use smaller spacing commands
  • Added build artifacts (cv.pdf, *.png) to .gitignore

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
awesome-cv.cls Updated default spacing for header icons and social separators, and reduced skills table column width to fix overflow
cv.tex Overrode social separator spacing to match the class file update
.gitignore Added generated PDF and PNG files to prevent committing build artifacts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -735,7 +735,7 @@
\begin{center}
\setlength\tabcolsep{1ex}
\setlength{\extrarowheight}{0pt}
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The magic number 0.73 lacks documentation explaining how it was calculated. According to the PR description, this accounts for tabcolsep spacing and the first column width, but the calculation isn't shown in a comment.

Consider adding a comment explaining the calculation:

% Column width calculation: 0.73 = (1.0 - (2*tabcolsep + first_column_width)/\textwidth)
% where tabcolsep=1ex (set on line 736) and first column uses 'r' (right-aligned, minimal width)
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} r L{\textwidth * \real{0.73}}}

This would help future maintainers understand why this specific value was chosen and how to adjust it if needed.

Suggested change
\setlength{\extrarowheight}{0pt}
\setlength{\extrarowheight}{0pt}
% Column width calculation: 0.73 = (1.0 - (2*tabcolsep + first_column_width)/\textwidth)
% where tabcolsep=1ex (set on line 736) and first column uses 'r' (right-aligned, minimal width)

Copilot uses AI. Check for mistakes.

% Social information separator
\renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad}
\renewcommand{\acvHeaderSocialSep}{\enskip\textbar\enskip}
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This override in cv.tex is now redundant since the same change was made to the default value in awesome-cv.cls (line 420). The class file already defines \acvHeaderSocialSep with this exact value, so this \renewcommand has no effect.

Consider removing this line to avoid redundancy and rely on the class file's default value.

Suggested change
\renewcommand{\acvHeaderSocialSep}{\enskip\textbar\enskip}

Copilot uses AI. Check for mistakes.
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

Comments