有没有办法在 cvlist 标题中为整行加下划线?(不仅是开头的标题字母,该行还应贯穿整个标题,如附图所示在此处输入图片描述)
我的代码如下:
\documentclass[11pt, a4paper]{article}
\usepackage[]{currvita}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tabto}
\usepackage{graphicx}
\usepackage{eso-pic}
\begin{document}
\pagestyle{empty}
\AddToShipoutPicture*{\put(380,600){\includegraphics[width=50mm]
{Bewerbungsfoto.jpg}}}
%\sffamily
\begin{cv}{\LARGE{Lebenslauf}}
\vspace{1cm}
\begin{cvlist}{Persöhnliche Daten}
\item [Name] Peter Parker
\item [Geburtsdatum] 11.11.11111
\item [Anschrift] street\\ xxxxx City
\item [Familienstand] ledig
\item [Telefon] +49 (0) 111 11 11 11 11
\item [Email] [email protected]
\end{cvlist}
\end{cv}
\end{document}
答案1
\sectionrule
我假设您希望这些部分加下划线。这可以通过包中的命令来完成sectsty
,该命令在标题上方和下方各画一条线。在下面的代码中,我从 Google 那里得到了一些帮助,找到了标题的德文名称 :-)。我还稍微移动了图片,使其与右边距更好地对齐。
\documentclass[11pt, a4paper]{article}
\usepackage[]{currvita}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tabto}
\usepackage{graphicx}
\usepackage{eso-pic}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{lipsum}
\usepackage{sectsty}
\sectionfont{\sectionrule{0ex}{0pt}{-0.5ex}{0.5pt}}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{empty}
\AddToShipoutPicture*{\put(350,580){\includegraphics[width=45mm] {example-image}}}
%\sffamily
\begin{cv}{\LARGE{Lebenslauf}}
\vspace{1cm}
\begin{cvlist}{Persönliche Daten}
\item [Name] Peter Parker
\item [Geburtsdatum] 11.11.11111
\item [Anschrift] street\\ xxxxx City
\item [Familienstand] ledig
\item [Telefon] +49 (0) 111 11 11 11 11
\item [Email] [email protected]
\end{cvlist}
\section*{\MakeUppercase{Berufserfahrung}}
\lipsum[1]
\end{cv}
\end{document}