![Awesome-CV 中的 cvskill 文本溢出](https://linux22.com/image/463877/Awesome-CV%20%E4%B8%AD%E7%9A%84%20cvskill%20%E6%96%87%E6%9C%AC%E6%BA%A2%E5%87%BA.png)
我正在尝试使用 awesome-cv.cls 格式化我的简历。cvskills 溢出了。有人能帮我如何换行吗?我稍微改变了 cvskills 环境:
% Define an environment for cvskill
\newenvironment{cvskills}{%
\vspace{\acvSectionContentTopSkip}
\vspace{-2.0mm}
\begin{center}
\setlength\tabcolsep{1ex}
\setlength{\extrarowheight}{0pt}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} r L{\textwidth * \real{3}}}
}{%
\end{tabular*}
\end{center}
}
% Define a line of cv information(skill)
% Usage: \cvskill{<type>}{<skillset>}
\newcommand*{\cvskill}[2]{%
\skilltypestyle{#1} & \skillsetstyle{#2} \\
}
答案1
在之前添加\begin{document}
(并使用原始类)
% Define an environment for cvskill
\newlength{\category}
\settowidth{\category}{Database \& query languages} % Category with longer text
\renewenvironment{cvskills}{%
\vspace{\acvSectionContentTopSkip}
\vspace{-2.0mm}
\begin{center}
\setlength\tabcolsep{1ex}
\setlength{\extrarowheight}{0pt}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} R{\category-2\tabcolsep} L{\textwidth -\category -2\tabcolsep}} % changed <<<<<<<<
}{%
\end{tabular*}
\end{center}
}
这将在左栏中容纳最宽的技能“类别”,并将剩余空间用于“技能”。
skills.tex
这是本例中使用的文件
%-------------------------------------------------------------------------------
% SECTION TITLE
%-------------------------------------------------------------------------------
\cvsection{Skills}
%-------------------------------------------------------------------------------
% CONTENT
%-------------------------------------------------------------------------------
\begin{cvskills}
%---------------------------------------------------------
\cvskill
{Programming languages} % Category
{As any dedicated reader can clearly see, the Ideal of
practical reason is a representation of, as far as I know, the things
in themselves; as I have shown elsewhere, the phenomena should only be
used as a canon for our understanding.} % Skills
%---------------------------------------------------------
\cvskill
{ML/AI libraries} % Category
{Let us suppose that the noumena have nothing to do
with necessity, since knowledge of the Categories is a
posteriori.} % Skills
%---------------------------------------------------------
\cvskill
{Database \& query languages} % Category
{Our concepts have lying before them the
paralogisms of natural reason, but our a posteriori concepts have
lying before them the practical employment of our experience.} % Skills
%---------------------------------------------------------
\cvskill
{Development tools} % Category
{ As I have shown elsewhere, Aristotle tells
us that the objects in space and time, in the full sense of these
terms, would be falsified.} % Skills
%---------------------------------------------------------
\cvskill
{Frameworks} % Category
{Node.js, Python, JAVA, OCaml, LaTeX} % Skills
%---------------------------------------------------------
\end{cvskills}