我有以下問題:我正在使用 currVitae 包來編寫我的簡歷。我想增加單個“位置”(cvlists)之間的距離。到目前為止,我使用 \vspace{2ex} 手動執行此操作。 currvita 套件中是否有一個選項可以為所有 cvlist 自動設定距離?
下面我舉個例子:
\documentclass[a4paper,12pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[NoDate]{currvita}
\usepackage{graphicx}
\usepackage{picins}
\usepackage{charter}
\begin{document}
\setlength{\cvlabelwidth}{4cm}
\pagenumbering{gobble}
\begin{cv}{CV}
\begin{cvlist}{Personal Date}
\item[Name] Boss
\item[Prename] Hugo
\item[Birthday] 1.1.1111
\end{cvlist}
% here i want an automated solution %
\vspace{2ex}
\begin{cvlist}{Working Experience}
\item[08/2013 - heute]Sell sausages
\begin{itemize}
\setlength{\parskip}{1pt}
\item[-] buy sausages
\item[-] make sausages
\end{itemize}
\item[04/2013 - 08/2013] Sell Drinks
\begin{itemize}
\setlength{\parskip}{1pt}
\item[-] buy ingredients
\item[-] shake cocktails
\end{itemize}
\end{cvlist}
\end{cv}
\end{document}
感謝您的幫助,
喬吉
答案1
新增間距\endcvlist
;我誇大了間距只是為了顯示效果。
請注意,您必須添加超過基線跳過(大約 2ex)的內容,所以\addvspace{4ex}
應該這樣做。這是因為\endcvlist
已經添加了\topsep
包設定為的\baselineskip
。
\documentclass[a4paper,12pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[NoDate]{currvita}
\usepackage{graphicx}
%\usepackage{picins}
\usepackage{charter}
\usepackage{etoolbox}
\appto\endcvlist{\par\addvspace{20ex}}% <------ fix here!
\begin{document}
\setlength{\cvlabelwidth}{4cm}
%\pagenumbering{gobble}
\pagestyle{empty} % Better!
\begin{cv}{CV}
\begin{cvlist}{Personal Date}
\item[Name] Boss
\item[Prename] Hugo
\item[Birthday] 1.1.1111
\end{cvlist}
\begin{cvlist}{Working Experience}
\item[08/2013 - heute]Sell sausages
\begin{itemize}
\item[-] buy sausages
\item[-] make sausages
\end{itemize}
\item[04/2013 - 08/2013] Sell Drinks
\begin{itemize}
\item[-] buy ingredients
\item[-] shake cocktails
\end{itemize}
\end{cvlist}
\end{cv}
\end{document}