如何为 CurVe CV 添加页码

如何为 CurVe CV 添加页码

我正在编辑这个定制的 CurVe CV: https://www.overleaf.com/latex/templates/a-customised-curve-cv/mvmbhkwsnmwv

遗憾的是我无法添加页码。我该怎么做?

谢谢

答案1

使用

\geometry{includefoot}

\makeatletter
\renewcommand{\@evenfoot}{\hfill\thepage\hfill}
\renewcommand{\@oddfoot}{\hfill\thepage\hfill}
\makeatother

%%%%%%%%%%%%%%%
% This CV example/template is based on my own
% CV which I (lamely attempted) to clean up, so that
% it's less of an eyesore and easier for others to use.
%
% LianTze Lim ([email protected])
% 16 September, 2016
%
\documentclass[a4paper,skipsamekey,11pt,british]{curve}

% Uncomment to enable Chinese; needs XeLaTeX
% \usepackage{ctex}

\usepackage{settings}

% Change the fonts if you want
\ifxetexorluatex % If you're using XeLaTeX or LuaLaTeX
  \usepackage{fontspec}
  %% Warning: EB Garamond contains no bold!! Substituting for Junicode Bold, but *may not look nice nor consistent*!!
%   \setmainfont[Ligatures=TeX,SmallCapsFeatures={Letters=SmallCaps,LetterSpace=5},BoldFont=Junicode Bold]{EB Garamond}
  %% Charis SIL's rather nice, actually.
  \setmainfont[Ligatures=TeX,SmallCapsFeatures={Letters=SmallCaps,LetterSpace=5}]{Charis SIL}
  \setsansfont[Ligatures=TeX]{Fira Sans}
  \setmonofont{Inconsolata}
\else % If you're using pdfLaTeX or latex
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage[tracking=smallcaps]{microtype}
  \usepackage{fbb}
  \usepackage[type1]{cabin}
  \usepackage[varqu,varl]{zi4}
  \useosf  %% Comment out if you prefer lining figures rather than old style figures
\fi
\usepackage{csquotes}

%% Only needed if you want a Publication List
\addbibresource{own-bib.bib}

%% Specify your last name and first name (as given in the .bib) to automatically bold your own name in the publications list. One caveat: You need to write \bibnamedelima where there's a space in your name for this to work properly for now...
\myname{Lim}{Lian\bibnamedelima Tze}
% \myname{d'Andrimont}{Raphaël}

% Change the page margins if you want
% \geometry{left=1cm,right=1cm,top=1.5cm,bottom=1.5cm}

% Change the colours if you want
% \definecolor{SwishLineColour}{HTML}{00FFFF}
% \definecolor{MarkerColour}{HTML}{0000CC}

% Change the item prefix marker if you want
% \prefixmarker{$\diamond$}

%% Photo is only shown if "fullonly" is included
\includecomment{fullonly}
% \excludecomment{fullonly}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\leftheader{%
  {\LARGE\bfseries\sffamily Lim Lian Tze, Ph.D.}

  \makefield{\faEnvelopeO}{\texttt{[email protected]}}
  \makefield{\faTwitter}{\texttt{@liantze}}

  \makefield{\faGlobe}{\url{http://liantze.penguinattack.org/}}

  \makefield{\faLinkedinSquare}
  {\url{http://www.linkedin.com/in/limliantze/}}
}

\rightheader{~}
\begin{fullonly}
\photo[r]{photo}
\photoscale{0.13}
\end{fullonly}

\geometry{includefoot}

\makeatletter
\renewcommand{\@evenfoot}{\hfill\thepage\hfill}
\renewcommand{\@oddfoot}{\hfill\thepage\hfill}
\makeatother


\title{Curriculum Vitae}

\begin{document}
\makeheaders[c]

\makerubric{employment}
\makerubric{education}

% If you're not a researcher nor an academic, you probably don't have any publications; delete this line.
%% Sometimes when a section can't be nicely modelled with the \entry[]... mechanism; hack our own and use \input NOT \makerubric
\input{publications}

\makerubric{skills}
\makerubric{misc}

\makerubric{referee}
% \input{referee-full}

\end{document}

答案2

您可以使用显示的代码用户187808的答案,然后添加以下行

\setlength{\footskip}{25pt}

设置页脚与页面最后一行之间的距离。请参阅此链接以了解更多信息:这个警告是什么意思?(fancyhdr 和 headheight)

相关内容