awesome-cv 中的位置参数太短

awesome-cv 中的位置参数太短

我的大学的完整地址太长,无法使用默认格式设置将其放在一行中。这是我当前的输出: 在此处输入图片描述

但是,我需要将位置放在一行中,因为它会弄乱格式。我尝试修改命令\cventry,但一无所获。代码如下:

% Define an entry of cv information
% Usage: \cventry{<position>}{<title>}{<location>}{<date>}{<description>}
\newcommand*{\cventry}[5]{%
  \vspace{-2.0mm}
  \setlength\tabcolsep{0pt}
  \setlength{\extrarowheight}{0pt}
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}}
    \ifempty{#2#3}
      {\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
      {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
      \entrypositionstyle{#1} & \entrydatestyle{#4} \\}
    \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}}
  \end{tabular*}%
}

特定于位置的格式是:

\newcommand*{\entrylocationstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}}

编辑:这就是我称呼 cventry 的方式

  \cventry
    {Bachelor of Computer Science (BCS) Honours, Software Engineering Stream} % Degree
    {Carleton University} % Institution
    {1125 Colonel By Dr, Ottawa ON, Canada K1S 5B6} % Location
    {Sep. 2022 - Apr. 2026} % Date(s)
    {
    \textbf{Courses:} Accelerated Intro to Computer Science I and II, Intro to Systems Programming, Discrete Structures I, Calculus I, Linear Algebra I, \newline Critical Thinking, Intro to Cognitive Science, Intro to Film Studies.
    }
    % \vspace{-\baselineskip}

%---------------------------------------------------------
\end{cventries}

答案1

添加于\documentclass[11pt, letterpaper]{awesome-cv}

将扩展左列以允许更长的地址。

\renewcommand*{\cventry}[5]{%
    \vspace{-2.0mm}
    \setlength\tabcolsep{0pt}
    \setlength{\extrarowheight}{0pt}
    \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{0.6\textwidth} R{0.4\textwidth}}
        \ifempty{#2#3}
        {\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
        {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
            \entrypositionstyle{#1} & \entrydatestyle{#4} \\}
        \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}}
    \end{tabular*}%
}

A

相关内容