在 limecv 中,只定义了 cvEducation、cvExperience、cvSkills 等环境。我想在简历中创建一个新标题“培训”。如何使用 limecv 做到这一点。
我正在使用来自 github 的这个 tex 模板:https://raw.githubusercontent.com/opieters/limecv/master/examples/mwe-latex.tex 并使用 Pdflatex 进行编译。
我想在简历的主要内容部分添加一个“培训”部分。请帮忙
答案1
我们可以模仿limecv 源:
\makeatletter
\NewDocumentEnvironment{cvTraining}{}{%
\cv@Title{Training}{\faForward}
\stepcounter{cv@itemPrev}
\stepcounter{cv@itemNext}
\cv@definecvItem
}{%
\cv@EndSectionDraw
\stepcounter{cv@lastItem}
\draw (item \the\value{cv@itemPrev}.south west)
node (cv@last item \the\value{cv@lastItem}) {};
}
\makeatother
由于 OP 没有提供最小工作示例,因此下面是基于示例 mwe取自 limecv GitHub repo,包括自定义环境:
\documentclass[a4paper]{limecv}
\usepackage[margin=\cvMargin,noheadfoot]{geometry}
\makeatletter
\NewDocumentEnvironment{cvTraining}{}{%
\cv@Title{Training}{\faForward}
\stepcounter{cv@itemPrev}
\stepcounter{cv@itemNext}
\cv@definecvItem
}{%
\cv@EndSectionDraw
\stepcounter{cv@lastItem}
\draw (item \the\value{cv@itemPrev}.south west)
node (cv@last item \the\value{cv@lastItem}) {};
}
\makeatother
\begin{document}
\begin{cvMainContent}
\begin{cvEducation}
\cvItem{Evening class: How to take care of ducks\\
University of Quack, Ducktown. September 2015 -- June 2016\\
Raised a duckling to fully grown and released into the wild.
}
\cvItem{Master of Duck Theory\\
University of Quack, Ducktown. September 2012 -- June 2015\\
All about ducks.
}
\end{cvEducation}
\begin{cvTraining}
\cvItem{How to walk like a duck \\
Living room, April 2019 \\
Dance of the ducks.}
\cvItem{Quack quack quack! \\
Quack quack? 2017}
\end{cvTraining}
\end{cvMainContent}
\end{document}