我已禁用地址 ( %\address{}{}{}
),但无法删除电话号码/电子邮件地址/社交媒体上方的空白行。我们可以将电话号码/电子邮件/社交媒体放在照片旁边的顶部吗?我对 LaTeX 还不太熟悉,需要一些帮助。
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{orange}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{color}
\usepackage{lmodern}
\usepackage{enumitem}
\usepackage{eurosym}
%\usepackage[super]{nth}
\usepackage[scale=0.90, top=0.5cm, bottom=1cm]{geometry} %If you want to change the page margins, you simply need to change this line
\setlength{\hintscolumnwidth}{2.5cm}
\name{David}{Doe}
%\title{Audit, Risk and Compliance\newline{}PMP®, ITIL, CRISC}
\title{PMP®, ITIL, CRISC}
%\address{}{}{}
\phone[mobile]{+XXXXXXXX}
\email{emil.com}
\social[linkedin][WWWWW]{ZZZZ}
\photo[80pt][0pt]{David_linkedn}
答案1
因为您没有提供完整的 MWE,所以我只是使用了课程附带的 CV 示例moderncv
。
以下只是一个糟糕而肮脏的黑客行为(因为更改生成简历标题的复杂代码并不容易):我只是使用\extrainfo{...}
您在给定的代码片段中没有使用的内容,并根据需要在其中添加尽可能多的以白色文本颜色书写的行,例如:
\extrainfo{\textcolor{white}{additional information} \\ % <=============
\textcolor{white}{additional information} \\ % <======================
\textcolor{white}{additional information} \\
\textcolor{white}{additional information} \\
\textcolor{white}{additional information }} % <=======================
这取决于您使用的图像。我需要五行,因为我使用了example-image-golden-upright
包中的示例图像mwe
(必须安装但不能调用!)。只需根据情况调整使用的行数即可……
完整的 TeX 代码如下:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic} % head 1, body 1, foot -
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[%
scale=0.75,
top=0.5cm, bottom=1cm
]{geometry}
\usepackage[export]{adjustbox}
%\setlength{\hintscolumnwidth}{2.5cm}
\name{John}{Doe}
\title{Resumé title}
%\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
%\phone[fixed]{+2~(345)~678~901}
%\phone[fax]{+3~(456)~789~012}
\email{[email protected]}
%\homepage{www.johndoe.com}
\social[linkedin]{john.doe}
\social[twitter]{jdoe}
%\social[github]{jdoe}
\extrainfo{\textcolor{white}{additional information} \\ % <=============
\textcolor{white}{additional information} \\ % <======================
\textcolor{white}{additional information} \\
\textcolor{white}{additional information} \\
\textcolor{white}{additional information }} % <=======================
\photo[64pt][0.4pt]{example-image-golden-upright}%
\quote{Some quote}
\makeatletter\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}\makeatother
%\renewcommand{\refname}{Articles}
\setlength{\footskip}{66pt}
\begin{document}
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution--3}{City--4}{\textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\section{Master thesis}
\cvitem{title}{\emph{Title}}
\cvitem{supervisors}{Supervisors}
\cvitem{description}{Short thesis abstract}
\section{Experience}
\subsection{Vocational}
\cventry{year--year}{Job title}{Employer}{City}{}{General description
no longer than 1--2 lines.\newline{}%
Detailed achievements:%
\begin{itemize}%
\item Achievement 1;
\item Achievement 2, with sub-achievements:
\begin{itemize}%
\item Sub-achievement (a);
\item Sub-achievement (b), with sub-sub-achievements (don't do this!);
\begin{itemize}
\item Sub-sub-achievement i;
\item Sub-sub-achievement ii;
\item Sub-sub-achievement iii;
\end{itemize}
\item Sub-achievement (c);
\end{itemize}
\item Achievement 3.
\end{itemize}}
\cventry{year--year}{Job title}{Employer}{City}{}{Description
line 1\newline{}Description line 2}
\subsection{Miscellaneous}
\cventry{year--year}{Job title}{Employer}{City}{}{Description}
\section{Languages}
\cvitemwithcomment{Language 1}{Skill level}{Comment}
\cvitemwithcomment{\textbf{Language} 2}{\textbf{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}
\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}
\end{document}
我得到了以下结果 pdf(如所愿):
正如您所看到的(长红色箭头),附加信息就在那里(需要标记的位置),但它是不可见的,因为它是用白色打印的......