我正在尝试在笔记本电脑上编译简历,但无法正常工作。文件在另一台机器上编译得很好,这就是为什么我认为它一定是安装出了问题。到目前为止,我尝试了以下操作:1) 使用 Miktex-Console,以管理员和用户身份更新所有软件包 2) 重新安装 TexStudio 和 MikTex(然后再次更新)
我在 Windows 10 上使用 TeXstudio 2.12.22 和 Miktex 2.9。
这是一个最小的例子(仍然包括原始文件的所有包):
\documentclass[a4paper]{article}
\usepackage{tabularx}
\usepackage{ae}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman, english]{babel}
\usepackage{geometry}
\usepackage{color}
\geometry{a4paper,left=19mm,right=20mm, top=14mm, bottom=18mm}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage{CV}
\setlength{\parindent}{4pt}
\begin{document}
\pagestyle{empty}
\begin{minipage}[h]{0.5\textwidth} \centering
\Huge{\textsc{Curriculum Vitae}}
\\
\vspace{\baselineskip}
\LARGE{\textsc{Firstname Lastname}}
\end{minipage}
\hspace{.9cm}
\begin{minipage}[h]{0.3\textwidth}
\vspace{1.5\baselineskip}
\centering
\end{minipage}
\vspace{0.9\baselineskip}
\section{Section-Test}
\begin{CV}
\item[since 2013] I doing something great
\item[since 2018] Something even better
\end{CV}
\vspace{1.5cm}
\noindent
City, \today
\end{document}
这是日志文件的一部分,显示错误(我希望,我没有太多阅读日志文件的经验):
! Missing number, treated as zero.
<to be read again>
\relax
l.42 \item
[since 2013] I doing something great
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Illegal unit of measure (pt inserted).
<to be read again>
\relax
l.42 \item
[since 2013] I doing something great
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)
提前感谢您的任何建议!