我正在使用 Curve 制作简历,每当某个部分超过一页时,其标题就会在下一页重复。有人能告诉我如何禁用此“功能”吗?我参考了此问答并可以让“continued”一词消失,但无法弄清楚如何让整个重复标题消失。可以查看使用相同曲线包的示例 PDF这里。谢谢你的帮助<3
主文件:
%%%%%%%%%%%%%%%
% 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]{Lato}
\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 Arif Yulianto, S.Kom.}
\makefield{\faCircleO}{\url{Bandung, 2 July 1994}}
\makefield{\faEnvelopeO}{\texttt{[email protected]}}
\makefield{\faTwitter}{\texttt{@bangarify}}
\makefield{\faGlobe}{\url{http://www.devarify.org/}}
\makefield{\faPhone}{\texttt{081222300542}}
\makefield{\faLinkedinSquare}
{\url{http://www.linkedin.com/in/arifyulianto/}}
}
\rightheader{~}
\begin{fullonly}
\photo[r]{arifyulianto.png}
\photoscale{0.30}
\end{fullonly}
\title{Curriculum Vitae}
\begin{document}
\makeheaders[c]
\makerubric{employment}
\makerubric{education}
\makerubric{organizational}
\makerubric{project}
\makerubric{achievment}
\makerubric{skills}
\makerubric{interest}
%\makerubric{misc}
%\makerubric{referee}
% \input{referee-full}
\end{document}
设置.sty:
\RequirePackage{silence} \WarningsOff[longtable] \WarningsOff[array]
\usepackage{ifxetex,ifluatex} \newif\ifxetexorluatex \ifxetex \xetexorluatextrue \else \ifluatex
\xetexorluatextrue \else
\xetexorluatexfalse \fi \fi
\RequirePackage{graphicx} \RequirePackage[hyphens]{url} \RequirePackage[main=british]{babel} \raggedright
\RequirePackage{fontawesome}
\newcommand{\smallcaps}[1]{\textsc{\lowercase{#1}}}
\RequirePackage[a4paper,nohead,nofoot,hmargin=2.25cm,vmargin=2cm]{geometry} \RequirePackage{relsize} \RequirePackage[dvipsnames,svgnames]{xcolor} \RequirePackage{tikz} \usetikzlibrary{shapes,shadows}
\RequirePackage{comment} \definecolor{SwishLineColour}{HTML}{88AC0B} \definecolor{MarkerColour}{HTML}{B6073F}
% If you're not a researcher nor an academic, you probably don't need biblatex; delete this line. % \RequirePackage[backend=biber,bibstyle=apa,sorting=ydnt,uniquename=init,maxnames=7,defernumbers=true]{biblatex} % list of styles here: https://www.sharelatex.com/learn/Biblatex_bibliography_styles \RequirePackage[backend=biber,sorting=ydnt,uniquename=init,maxnames=7,defernumbers=true,indexing=true]{biblatex} \DeclareLanguageMapping{british}{british-apa}
\RequirePackage{tikz} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ \node[shape=circle,text=white,fill=MarkerColour!80!black,font=\sffamily\scriptsize\bfseries,inner sep=1pt,text height=1.35ex,minimum width=1.5em,text centered] (char) {#1};}}
\newcounter{bibitem}
% bring back this line if want to show sub-number inside circle for bib items % \AtBeginBibliography{\setcounter{bibitem}{1}} % \AtEveryBibitem{\makebox[2.5em][l]{\circled{\thebibitem}\stepcounter{bibitem}}}
% \renewcommand{\bibfont}{\small} \setlength{\bibitemsep}{1.5ex} \setlength{\bibhang}{2.7em} \NewBibliographyString{retrieved} \NewBibliographyString{from} \DefineBibliographyStrings{british}{ from = {\textcolor{MarkerColour!80!black}{\faLink}}, retrieved = {} }
\headerscale{1} %\setlength{\headerspace}{6pt} \rubricfont{\Large\bfseries\sffamily} \setlength{\rubricspace}{2pt} %\setlength{\rubricafterspace}{-9pt} \setlength{\rubricafterspace}{-3pt} \setlength{\subrubricspace}{3pt} \setlength{\subrubricbeforespace}{4pt} \def\@@rubrichead#1{% \begin{tikzpicture}[baseline]%\ \shade[left color=SwishLineColour!60!white, right color=white] rectangle (\@almosttextwidth,2.5pt); \node[font={\@rubricfont},inner sep=0pt,text ragged,anchor=south west,text depth=.5ex,text height=1.5ex] at (1pt,2pt) {#1}; \end{tikzpicture}% \vspace\rubricspace% }
\subrubricfont{\large\bfseries\sffamily} \subrubricalignment{l}
\newcommand{\makefield}[2]{\makebox[1.5em]{\color{MarkerColour!80!black}#1}
#2\hspace{2em}}
\keyalignment{r} \rubricalignment{l} \renewcommand{\arraystretch}{1.25} \urlstyle{tt}
\newcommand{\prefixmarker}[1]{\def\@prefixmarker{#1}} \def\@prefixmarker{\relscale{.9}\faBookmark}
\prefix{% \hspace*{-1ex} \color{MarkerColour!80!black}\@prefixmarker% \hspace*{1ex}% }
\newcommand{\makerubrichead}[1]{\vskip\baselineskip\@@rubrichead{#1}}
\defbibheading{subbibliography}{\vskip\subrubricbeforespace{\@subrubricfont\hspace{3pt}#1}\par}
\defbibfilter{booksandchapters}{% ( type=book or type=incollection ) }
\newcommand{\myname}[2]{% \def\@mylastname{#1}% \def\@myfirstname{#2}% }
\renewcommand*{\mkbibnamefamily}[1]{% \ifboolexpr{ test {\ifdefstrequal{\namepartfamily}{\@mylastname}}
and
test {\ifdefstrequal{\namepartgiven}{\@myfirstname}}}
{\textbf{#1}}%
{#1}% }
\renewcommand*{\mkbibnamegiven}[1]{% \ifboolexpr{ test {\ifdefstrequal{\namepartfamily}{\@mylastname}}
and
test {\ifdefstrequal{\namepartgiven}{\@myfirstname}}}
{\textbf{#1}}%
{#1}% }
\RequirePackage[colorlinks=true,allcolors=black,breaklinks=true]{hyperref}
答案1
从这个“功能”开始
对于这个“非功能”
****** Add from here <<<<<<<<<<<<<
在和之间添加代码
********** TO HERE <<<<<<<<<<<<
你的序言。
我使用了cv-lit.tex
您提供的链接并替换了
\makerubric{skills}
经过\makerubric{profex}
最终的代码是
%%%%%%%%%%%%%%%
% 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}
%% ******************************** Add from here <<<<<<<<<<<<<
\makeatletter
\renewenvironment{rubric}[1]{%
\def\raggedright{%
\@rightskip\@flushglue\rightskip\@rightskip\leftskip\z@skip}%
\def\raggedleft{%
\rightskip\z@skip\leftskip\@flushglue\parfillskip\z@skip}%
\gdef\@beforespace{0pt}%
\gdef\@nextentry{}%
\gdef\@previouskey{}%
\global\let\old@newpage\newpage%
\global\let\old@pagebreak\pagebreak%
\global\let\old@nopagebreak\nopagebreak
\begin{longtable}{@{}kl@{~}X@{}}
\@rubrichead{#1}\\*[\rubricspace]
\endfirsthead
\noalign{\@rubricmark{#1}%
\global\let\in@newpage\newpage%
\global\let\in@pagebreak\pagebreak%
\global\let\in@nopagebreak\nopagebreak%
\gdef\newpage{\@nextentry\noalign{\gdef\@nextentry{}}\in@newpage}
\gdef\pagebreak{\@nextentry\noalign{\gdef\@nextentry{}}\in@pagebreak}
\gdef\nopagebreak{\@nextentry\noalign{\gdef\@nextentry{}}\in@nopagebreak}}}{%
\@nextentry
\end{longtable}\par\vspace\rubricafterspace
\global\let\newpage\old@newpage%
\global\let\pagebreak\old@pagebreak%
\global\let\nopagebreak\old@nopagebreak}
\makeatother
%%% ***************************************** TO HERE <<<<<<<<<<<<
\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]{Lato}
\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}
\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{profex}
\makerubric{referee}
% \input{referee-full}
\end{document}
文件在profex.tex
哪里
%%%% file profex.tex
\begin{rubric}{Profesional Experiences}
\subrubric{Awards and Achievements}
\entry*[2020] \textbf{Merit Award}, 25-day Standard Course SC450, Outward Bound School, Lumut, Malaysia.
%
\entry*[2018] \textbf{Department Prize for Outstanding Student Performance}, Department of Computer Science, University of Warwick, United Kingdom.
\subrubric{Certifications}
\entry*[2017--present] \textbf{\textsc{Triz} Level 1 Practitioner}. Awarded by MyTRIZ Innovation Association, Malaysia.
\entry*[2006] \textbf{Certified IT Professional for \textsc{fitpe}} (Fundamental IT Professional Examination). Awarded by Ministry of Higher Education Malaysia.
\subrubric{Employment}
\entry*[2018--present] \textbf{Merit Award}, 25-day Standard Course SC450, Outward Bound School, Lumut, Malaysia.
%
\entry*[2017--2017] \textbf{Department Prize for Outstanding Student Performance}, Department of Computer Science, University of Warwick, United Kingdom.
\entry*[2017--2016] \textbf{\textsc{Triz} Level 1 Practitioner}. Awarded by MyTRIZ Innovation Association, Malaysia.
\entry*[2016--2014] \textbf{Certified IT Professional for \textsc{fitpe}} (Fundamental IT Professional Examination). Awarded by Ministry of Higher Education Malaysia.
\end{rubric}
更新:如何使用这个修改后的模板。
curVe
(1)从 CTAN 下载软件包https://ctan.org/pkg/curve?lang=en并安装它。
(2)模板在这里:
Add from HERE<<<
(3)对于原始的 cv 模板,必须在其前言中添加 到之间 的代码 TO HERE <<<<<<<
。请参阅简化版本。
除此之外,您还需要编写自己的单独 .tex 文件,文件名为 employment.tex
education.tex
.etc profex.tex
,所有文件都与 photo.jpg 放在同一目录中,settings.sty
如下所示:
(每个人都 \makerubric{<filename>}
希望找到 filename.tex
以 开头\begin{rubic}{<title>})
和以 结尾的\end{rubic}
)
这是修改后的模板的简化版本。
\documentclass[a4paper,skipsamekey,11pt,british]{curve}
%% ******************************** Add from HERE <<<<<<<<<<<<<
\makeatletter
\renewenvironment{rubric}[1]{%
\def\raggedright{%
\@rightskip\@flushglue\rightskip\@rightskip\leftskip\z@skip}%
\def\raggedleft{%
\rightskip\z@skip\leftskip\@flushglue\parfillskip\z@skip}%
\gdef\@beforespace{0pt}%
\gdef\@nextentry{}%
\gdef\@previouskey{}%
\global\let\old@newpage\newpage%
\global\let\old@pagebreak\pagebreak%
\global\let\old@nopagebreak\nopagebreak
\begin{longtable}{@{}kl@{~}X@{}}
\@rubrichead{#1}\\*[\rubricspace]
\endfirsthead
\noalign{\@rubricmark{#1}%
\global\let\in@newpage\newpage%
\global\let\in@pagebreak\pagebreak%
\global\let\in@nopagebreak\nopagebreak%
\gdef\newpage{\@nextentry\noalign{\gdef\@nextentry{}}\in@newpage}
\gdef\pagebreak{\@nextentry\noalign{\gdef\@nextentry{}}\in@pagebreak}
\gdef\nopagebreak{\@nextentry\noalign{\gdef\@nextentry{}}\in@nopagebreak}}}{%
\@nextentry
\end{longtable}\par\vspace\rubricafterspace
\global\let\newpage\old@newpage%
\global\let\pagebreak\old@pagebreak%
\global\let\nopagebreak\old@nopagebreak}
\makeatother
%%% ***************************************** TO HERE <<<<<<<<<<<<
\usepackage{settings}
% Change the fonts if you want
\ifxetexorluatex % If you're using XeLaTeX or LuaLaTeX
\usepackage{fontspec}
\setmainfont[Ligatures=TeX,SmallCapsFeatures={Letters=SmallCaps,LetterSpace=5}]{Charis SIL}
\setsansfont[Ligatures=TeX]{Lato}
\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}
\myname{Lim}{Lian\bibnamedelima Tze}
\includecomment{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}
\title{Curriculum Vitae}
\begin{document}
\makeheaders[c]
\makerubric{employment} % uses file employment.tex
\makerubric{education} % uses file education.tex
\makerubric{profex} % needs file profex.tex <<<<<<<<<<<<<<<<<<<<
\makerubric{referee}% uses file referee.tex
\end{document}