mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-12-24 13:33:33 +00:00
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:
parent
e6efa6be7b
commit
add5bc0473
1 changed files with 6 additions and 5 deletions
|
@ -48,6 +48,7 @@
|
|||
%-------------------------------------------------------------------------------
|
||||
% Needed to make fixed length table
|
||||
\RequirePackage{array}
|
||||
\RequirePackage{tabularx}
|
||||
% Needed to handle list environment
|
||||
\RequirePackage{enumitem}
|
||||
% Needed to handle text alignment
|
||||
|
@ -426,6 +427,7 @@
|
|||
% Commands for utilities
|
||||
%-------------------------------------------------------------------------------
|
||||
% Use to align an element of tabular table
|
||||
\renewcommand{\tabularxcolumn}{p}
|
||||
\newcolumntype{L}[1]{>{\raggedright\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}}
|
||||
|
@ -722,18 +724,17 @@
|
|||
\newenvironment{cvskills}{%
|
||||
\vspace{\acvSectionContentTopSkip}
|
||||
\vspace{-2.0mm}
|
||||
\begin{center}
|
||||
\setlength\tabcolsep{1ex}
|
||||
\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*}
|
||||
\end{center}
|
||||
\endtabularx\par
|
||||
}
|
||||
|
||||
% Define a line of cv information(skill)
|
||||
% Usage: \cvskill{<type>}{<skillset>}
|
||||
\newcommand*{\cvskill}[2]{%
|
||||
\skilltypestyle{#1} & \skillsetstyle{#2} \\
|
||||
\skilltypestyle{#1} & \leavevmode\skillsetstyle{#2} \\
|
||||
}
|
||||
|
||||
% Define an environment for cvitems(for cventry)
|
||||
|
|
Loading…
Reference in a new issue