為什麼套件「標籤」對於建立 europecvs 有用

為什麼套件「標籤」對於建立 europecvs 有用

我只使用過 LaTex 幾次,因此我只知道一些事情。我有一個任務,我應該在其中創建自己的簡歷,因此我決定在網絡上進行搜索以查找可以幫助我的工具或軟體包,事實上我找到了該軟體包europecv,但現在我有了幾個問題:

  1. 為什麼我需要包含該套件label才不會出現此錯誤(它有什麼用?):

非法計量單位(插入 pt)。 \begin{europecv} (後面接著:)

缺失數字,視為零。 \begin{europecv} (後面接著:)

  1. 如何在 2 個ecvitemsa之間再插入一個空格ecvsection?我已經嘗試過\\,但似乎不起作用。

  2. 我想更改履歷的標題。這是當前的:

歐洲通票

履歷

  1. 如果我usepackage{label}在編譯時出現此錯誤。這是因為labelMacTex 預設不包含該軟體包嗎?如果是,我如何整合這個新包:

在此輸入影像描述

請記住,我的主要問題是第 1 點。

這是代碼:

\documentclass[10pt]{europecv}

\usepackage{label} %


\ecvLogoWidth{12mm}

\ecvname{name}
\ecvaddress{address}
\ecvtelephone{0010101010}
\ecvemail{[email protected]}
\ecvnationality{human}
\ecvdateofbirth{stuff}
\ecvgender{male}

\begin{document}
\begin{europecv}

\ecvpersonalinfo[10pt]


\ecvsection{Education}
\ecvitem{School}{Bullshits’ School}
\ecvitem{Date}{1900-2900}
\ecvitem{Country}{earth}
\ecvitem{Qualification Awarded}{None} \\


\ecvsection{Skills and Competences} 
\ecvitem{Languages spoken}{Chinese, Japanese, Korean, English, Finnish, German}

\end{europecv}

\end{document}

答案1

添加包label並不能糾正錯誤,它只會在遇到原始錯誤之前導致另一個錯誤。事實上,label包包不存在截至撰寫本文時,CTAN 上。

你報的錯誤其實是LaTeX報的第二個錯誤。第一個錯誤(您應該查看的錯誤)是:

! Undefined control sequence.
\draweuropasslogo ->\includegraphics 
                                     [width=\ecv@logowidth ]{europasslogo}
l.14 \begin{europecv}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

由此,你可以確定graphicx未加載,但由類別內部使用europecv。因此添加\usepackage{graphicx}解決了問題,並且您的 MWE 編譯沒有錯誤。

類別作者確實應該將其放入\RequirePackage{graphicx}類別中,因為這是確保在編譯時滿足所有依賴項的方法。

相關內容