diff --git a/awesome-cv.cls b/awesome-cv.cls index da3d762..7513357 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -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{}{} \newcommand*{\cvskill}[2]{% - \skilltypestyle{#1} & \skillsetstyle{#2} \\ + \skilltypestyle{#1} & \leavevmode\skillsetstyle{#2} \\ } % Define an environment for cvitems(for cventry)