Fix cvskill overflow and alignment

Fixes issues related to cvskill flowing off page and fixes vertical alignment of table when skill items wrap
This commit is contained in:
D Simmons 2024-06-28 17:56:59 -05:00 committed by GitHub
parent e6efa6be7b
commit add5bc0473
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,7 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% Needed to make fixed length table % Needed to make fixed length table
\RequirePackage{array} \RequirePackage{array}
\RequirePackage{tabularx}
% Needed to handle list environment % Needed to handle list environment
\RequirePackage{enumitem} \RequirePackage{enumitem}
% Needed to handle text alignment % Needed to handle text alignment
@ -426,6 +427,7 @@
% Commands for utilities % Commands for utilities
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% Use to align an element of tabular table % Use to align an element of tabular table
\renewcommand{\tabularxcolumn}{p}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
@ -722,18 +724,17 @@
\newenvironment{cvskills}{% \newenvironment{cvskills}{%
\vspace{\acvSectionContentTopSkip} \vspace{\acvSectionContentTopSkip}
\vspace{-2.0mm} \vspace{-2.0mm}
\begin{center}
\setlength\tabcolsep{1ex} \setlength\tabcolsep{1ex}
\setlength{\extrarowheight}{0pt} \setlength{\extrarowheight}{0pt}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} r L{\textwidth * \real{0.9}}} \tabularx{\textwidth}{r>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}X}
}{% }{%
\end{tabular*} \endtabularx\par
\end{center}
} }
% Define a line of cv information(skill) % Define a line of cv information(skill)
% Usage: \cvskill{<type>}{<skillset>} % Usage: \cvskill{<type>}{<skillset>}
\newcommand*{\cvskill}[2]{% \newcommand*{\cvskill}[2]{%
\skilltypestyle{#1} & \skillsetstyle{#2} \\ \skilltypestyle{#1} & \leavevmode\skillsetstyle{#2} \\
} }
% Define an environment for cvitems(for cventry) % Define an environment for cvitems(for cventry)