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

相關內容