
嗨,我正在嘗試在班級中建立我的簡歷moderncv
。當我只是嘗試使用該\moderncvstyle{oldstyle}
選項編譯程式碼時,程式碼可以工作,但會\moderncvstyle{casual}
中斷,並且會出現很多錯誤。
pdftex version 3.14159265-2.6-1.40.20
我在 manjaro linux 上運行。班級moderncv
是version 2.0.0
.
我如何使用該casual
選項來運行它?
這裡有一個 MWE:
\documentclass[11pt,a4paper,sans]{moderncv}
%\moderncvstyle{oldstyle}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[scale=0.75]{geometry}
\name{Hans}{im Glück}
\title{M.Sc.}
\address{Glücksstr. 13}{55444 Glücksdorf}{Deutschland \medskip}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
\phone[mobile]{+49~(176)~111~2222} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
\phone[fixed]{+49~(765)~1234~5678}
%\phone[fax]{+3~(456)~789~012}
\email{[email protected]} % optional, remove / comment the line if not wanted
\photo[4,0cm][0.2pt]{bewerbungsbild.png}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
% #################################
% Lebenslauf......................
\makecvtitle
\section{Ausbildung}
% arguments 3 to 6 can be left empty
\cventry{10/04--05/05}{Master}{Karl Tux Institut für Technologie}{}{\textit{Note: 1,1}}{Pinguinkunde, Hauptfächer Prokrastination und Bummelei I, Celebrare maximus und systematische Zeitverschwendung.}
\end{document}
我得到的錯誤:
! Missing number, treated as zero.
<to be read again>
}
l.32 \section{Ausbildung}
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>
}
l.32 \section{Ausbildung}
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.)
.........
謝謝你們的快速回應。如果我嘗試編譯您更正後的 MWE,我仍然會遇到相同數量的錯誤。可能我沒有充分指出我的錯誤比第一篇文章中提到的兩個錯誤更多,但日誌太長,無法發佈在這裡。我將整個日誌檔案上傳到Dropbox。除了錯誤之外,還有一些警告,例如
LaTeX Warning: You have requested package `moderncvfooti',
but the package provides `moderncvfooti'.
...
LaTeX Warning: You have requested package `moderncvbodyi',
but the package provides `moderncvbodyi'.
...
LaTeX Warning: You have requested package `moderncvheadii',
but the package provides `moderncvheadii'.
....
LaTeX Font Warning: Font shape `U/fontawesometwo/m/sl' undefined
...
LaTeX Font Warning: Some font shapes were not available, defaults substituted