我想了解如何设置 cventry 中描述项的单元格宽度,该描述项在 awesome-cv 和 moderncv 中均有使用。请参见下面的屏幕截图,以说明我想要实现的目标以及 MWE。有人有什么建议吗?
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.9, top=1cm, bottom=2cm]{geometry}
\usepackage{tabularx}
% Use to align an element of tabular table
\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}}
\newcolumntype{M}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcommand{\entrycv}[5]{
\begin{tabular}{1\textwidth}{|X|X|}
\ifempty{#3#4}
{{#1} & {#2} \\
{#5}}
{{#1} & {#2} \\
{#3} & {#4} \\
{#5}}
\end{tabular}
}
\newcommand*{\cventry}[5]{%
\begin{tabularx*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth -4.5cm} R{4.5cm}}
\ifempty{#2#3}
{{#1} & {#4} \\}
{{#2} & {#3} \\
{#1} & {#4} \\
{#5}{}
}
\multicolumn{2}{L{\textwidth -5cm}}{{#5}}
\end{tabularx*}%
}
\begin{document}
\entrycv{Date}{Job Description}{apple}{New York City, United States}{}
{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
\vspace{2cm}
\cventry{Date}{Job Description}{apple}{New York City, United States}{}
{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\ %manual break which actually should be performed by cell width
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
\end{document}