減少 Moderncv 中個人資訊和報價之間的空間

減少 Moderncv 中個人資訊和報價之間的空間

使用moderncvpackage製作履歷時,如何減少個人資訊(如電話、電子郵件等)與報價之間的空白?這郵政問了完全相同的問題,但我嘗試了解決方案中的乳膠代碼,它似乎不再有效。想知道是否有最新的解決方案。

答案1

此程式碼透過在引用前加入負空格(本例中為-2em)來修改引用樣式,從而控制引用與前面資訊之間的空格。

(modernncv 2022-02-21 v2.3.1)

A

% !TeX TS-program = pdflatex

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.85, top=1.5cm, bottom=1cm]{geometry}

\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{[email protected]}
\homepage{www.johndoe.com}
\social[linkedin]{john.doe}
\social[twitter]{jdoe}
\social[github]{jdoe}
\extrainfo{additional information}


\quote{As any dedicated reader can clearly see, the Ideal of practical reason
    is a representation of, as far as I know, the things in themselves; as I
    have shown elsewhere, the phenomena should only be used as a
    canon for our understanding. }


\renewcommand*{\quotestyle}[1]{{\vspace*{-2em}\quotefont\textcolor{color1}{#1}}} % added <<<<<<<<<<<<<

\begin{document}
    \makecvtitle
    
    \section{Education}
    \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
    \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
            
\end{document}

相關內容