我正在用 latex 制作简历,代码如下,有三个问题:1- 如何添加照片,在第 8 行,pass 是 jpg 中的照片名称,此代码显示有关此行的错误,请纠正我。2- 我想使文本大小变小,我已在第 1 行将其从 12 pt 更改为 8 pt,但没有得到小文本。3- 注释第 8 行并执行,查看 CNIC 编号的破折号,了解如何更正它们。这是代码:
\documentclass[9pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\title{}
\photo[64pt]{pass}
\date{}
\begin{document}
\maketitle
\section{Personal Information}
\begin{minipage}[ht]{0.40\textwidth}
Date of Birth\\
Place of Birth\\
Gender\\
Marital Status\\
CNIC Number\\
Mobile Number\\
Email Address
\end{minipage}
\begin{minipage}[ht]{0.55\textwidth}
March $22, 1990$\\
City\\
Male\\
Married\\
$61101-4186635-9$\\
$+92\; 321\; 588\; 3776$\\
[email protected]
\end{minipage}
\section{Education}
\cventry{2013--2015}{MS}{Name of University}{City}{Country}
\cventry{2008--2013}{BS}{Name of University}{City}{Country}
\section{Professional Experience}
\cventry{September 2015--to date}{Visiting lecturer}{Name of University}{City}{Country}
\section{Languages}
\cvitemwithcomment{Language 1}{Skill level}{Comment}
\cvitemwithcomment{Language 2}{Skill level}{Comment}
\cvitemwithcomment{Language 3}{Skill level}{Comment}
\section{Computer skills}
\cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
\cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
\cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
\section{Interests}
\cvitem{hobby 1}{Description}
\cvitem{hobby 2}{Description}
\cvitem{hobby 3}{Description}
\section{Extra 1}
\cvlistitem{Item 1}
\cvlistitem{Item 2}
\cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}
\section{Extra 2}
\cvlistdoubleitem{Item 1}{Item 4}
\cvlistdoubleitem{Item 2}{Item 5\cite{book1}}
\cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}
\section{References}
\begin{cvcolumns}
\cvcolumn{Category 1}{\begin{itemize}\item Person 1\item Person 2\item Person 3\end{itemize}}
\cvcolumn{Category 2}{Amongst others:\begin{itemize}\item Person 1, and\item Person 2\end{itemize}(more upon request)}
\cvcolumn[0.5]{All the rest \& some more}{\textit{That} person, and \textbf{those} also (all available upon request).}
\end{cvcolumns}
\nocite{*}
\bibliographystyle{plain}
\bibliography{publications}
\clearpage
答案1
为了1.,您必须使用一个名称,
\name
以便事情顺利进行。简历自然应该至少有一个名称来显示。如果没有,请使用\name{}{}
。LaTeX 中的标准字体大小为 10pt、11pt 和 12pt。您可以选择其中任意一种。如果您想要更多,请使用
scrextend
或extsizes
包。我不清楚你想用这些破折号做什么。我猜你想让它们变小。为此,删除
$
s 以便数字处于文本模式。
此外,我已调整您的minipage
s。选项[ht]
应仅为[t]
无效[h]
。此外,\cventry
需要一个可选参数和 6 个强制参数(您仅使用了 5 个)。
代码:
\documentclass[a4paper]{moderncv}
\usepackage[8pt]{extsizes}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\name{}{}
\title{}
\photo[64pt][0.4pt]{picture}
\begin{document}
\maketitle
\section{Personal Information}
\hspace*{\dimexpr\hintscolumnwidth+\separatorcolumnwidth\relax}
\begin{minipage}[t]{0.40\textwidth}
Date of Birth\\
Place of Birth\\
Gender\\
Marital Status\\
CNIC Number\\
Mobile Number\\
Email Address
\end{minipage}
\begin{minipage}[t]{0.55\textwidth}
March $22, 1990$\\
City\\
Male\\
Married\\
61101-4186635-9\\
$+92\; 321\; 588\; 3776$\\
[email protected]
\end{minipage}
\section{Education}
\cventry{2013--2015}{MS}{Name of University}{City}{Country}{} %% last {} added
\cventry{2008--2013}{BS}{Name of University}{City}{Country}{} %% last {} added
\section{Professional Experience}
\cventry{September 2015--to date}{Visiting lecturer}{Name of University}{City}{Country}{}
\section{Languages}
\cvitemwithcomment{Language 1}{Skill level}{Comment}
\cvitemwithcomment{Language 2}{Skill level}{Comment}
\cvitemwithcomment{Language 3}{Skill level}{Comment}
\section{Computer skills}
\cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
\cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
\cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
\section{Interests}
\cvitem{hobby 1}{Description}
\cvitem{hobby 2}{Description}
\cvitem{hobby 3}{Description}
\section{Extra 1}
\cvlistitem{Item 1}
\cvlistitem{Item 2}
\cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}
\section{Extra 2}
\cvlistdoubleitem{Item 1}{Item 4}
\cvlistdoubleitem{Item 2}{Item 5\cite{book1}}
\cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}
\section{References}
\begin{cvcolumns}
\cvcolumn{Category 1}{\begin{itemize}\item Person 1\item Person 2\item Person 3\end{itemize}}
\cvcolumn{Category 2}{Amongst others:\begin{itemize}\item Person 1, and\item Person 2\end{itemize}(more upon request)}
\cvcolumn[0.5]{All the rest \& some more}{\textit{That} person, and \textbf{those} also (all available upon request).}
\end{cvcolumns}
\nocite{*}
\bibliographystyle{plain}
\bibliography{publications}
\clearpage
\end{document}