我在 Friggeri 简历的左边距(侧边栏部分)插入了一张图片(见下面的 MWE)。我的简历有好几页长,但我想让图片不出现在第二页及后续页面上。有人知道如何做到这一点吗?
% Friggeri Resume/CV
% XeLaTeX Template
% Version 1.2 (3/5/15)
% This template has been downloaded from:
% https://github.com/mlda065/friggeri-letter
%
% Original author:
% Adrien Friggeri ([email protected])
% https://github.com/afriggeri/CV
%
% Modifications by Matthew Davis ([email protected])
\documentclass[a4paper]{friggeri-cv}
\usepackage{enumitem}
\begin{document}
\header{John}{Smith}{Short Statement Here}
% SIDEBAR SECTION
\aside{{\includegraphics[width=3.2cm]{IMAGE.jpg}}\vspace{0.5cm}\\
Contact}{
\ifx \firstPage \undefined
\xdef\firstPage{}
\else
John SMITH \\
~ \\
\fi
123 Main St. \\
Toronto, ON\\
H0H 0H0, Canada \\
~ \\
(416) 555-1212 \\
~ \\
\href{mailto:[email protected]}{[email protected]}\\
}
% EXPERIENCE SECTION
\section{Experience}
\subsection{XYZ Corp.}
\begin{entrylist}
\entry
{June 2015 -- present}
{Manager}
{Toronto}
{}
{
This is a description of the job called 'Manager'.
}
\end{entrylist}
\end{document}
答案1
这里使用的是原始模板的修改,并且像经常发生的那样,没有进行任何名称更改。
两种可能的解决方案:
% Friggeri Resume/CV
% XeLaTeX Template
% Version 1.2 (3/5/15)
% This template has been downloaded from:
% https://github.com/mlda065/friggeri-letter
%
% Original author:
% Adrien Friggeri ([email protected])
% https://github.com/afriggeri/CV
%
% Modifications by Matthew Davis ([email protected])
\documentclass[a4paper]{friggeri-cv}
\usepackage{enumitem}
\begin{document}
\header{John}{Smith}{Short Statement Here}
% SIDEBAR SECTION
\begin{textblock}{3.6}(2,12)
{\includegraphics[width=3.2cm]{example-image-1x1}}
\end{textblock}
\aside{Contact}{
\ifx \firstPage \undefined
\xdef\firstPage{}
\medbreak
\includegraphics[width=2cm]{example-image-1x1}
\medbreak
\else
John SMITH \\
~ \\
\fi
123 Main St. \\
Toronto, ON\\
H0H 0H0, Canada \\
~ \\
(416) 555-1212 \\
~ \\
\href{mailto:[email protected]}{[email protected]}\\
}
% EXPERIENCE SECTION
\section{Experience}
\subsection{XYZ Corp.}
\begin{entrylist}
\entry
{June 2015 -- present}
{Manager}
{Toronto}
{}
{
This is a description of the job called 'Manager'.
}
\end{entrylist}
\clearpage
% EXPERIENCE SECTION
\section{Experience}
\subsection{XYZ Corp.}
\begin{entrylist}
\entry
{June 2015 -- present}
{Manager}
{Toronto}
{}
{
This is a description of the job called 'Manager'.
}
\end{entrylist}
\end{document}
重命名文件以明确表示它们并不相同会是一个更好的方法。