我想删除地址行和下面包含电话号码和电子邮件信息的行之间的空白。
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\usepackage{import}
\name{My}{Name}
\title{Curriculum Vitae}
\address{my address, line 1, line 2, line 3, postcode}{}{}
\phone[mobile]{+44 12345 12345}
\phone[fixed]{01234 123456}
\email{[email protected]}
\begin{document}
\makecvtitle
\end{document}
我曾尝试使用具有负值的 vspace,但无法使其工作。
谢谢你尽你所能的帮助。
答案1
你可以这样做xpatch
:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\usepackage{import}
\name{My}{Name}
\title{Curriculum Vitae}
\address{my address, line 1, line 2, line 3,postcode}{}{}
\phone[mobile]{+44 12345 12345}
\phone[fixed]{01234 123456}
\email{[email protected]}
\usepackage{xpatch}
\xpatchcmd{\makehead}{%
\\\null}{%
\\[-2ex]\null}{}{}
\begin{document}
\makecvtitle
\end{document}