
我正在使用moderncv
;編寫我的簡歷我遇到了這種自動更正,其中句子被分成兩行,如下所示:
我想做的是將“出生日期和地點”設置在同一行中,並相應地延長藍線。
你能告訴我該怎麼辦嗎?
這是代碼:
\documentclass[11pt,a4paper,sans,'roman']
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{microtype}
%\usepackage{lipsum}
\moderncvstyle{classic}
\moderncvcolor{blue}
%\nopagenumbers{}
\usepackage[scale=0.80]{geometry}
%\setlength{\hintscolumnwidth}{3cm}
%\setlength{\makecvtitlenamewidth}{10cm}
\begin{document}
\section{Personal Information}
\cvitem{Birth Date and Place}{February 7, 1698; Lovere, Como, Giamaica.}
\cvitem{Address}{via pinco~20/b, Pallo Figa, Cazzo, Italy}
\end{document}
答案1
您應該進行調整\hintscolumnwidth
以滿足您的需求:
\documentclass[sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
% Set width of "hints column" to match width of "Birth Date and Place"
\AtBeginDocument{\settowidth{\hintscolumnwidth}{Birth Date and Place}}
\firstname{Firstname}
\lastname{Lastname}
\begin{document}
\section{Personal Information}
\cvitem{Birth Date and Place}{February 7, 1698; Lovere, Como, Giamaica.}
\cvitem{Address}{via pinco~20/b, Pallo Figa, Cazzo, Italy}
\end{document}
的設定\hintscolumnwidth
被延遲到文件的開頭,此時字體已正確設定。