![在 moderncv 中更改 cventry 的列宽?](https://linux22.com/image/268516/%E5%9C%A8%20moderncv%20%E4%B8%AD%E6%9B%B4%E6%94%B9%20cventry%20%E7%9A%84%E5%88%97%E5%AE%BD%EF%BC%9F.png)
似乎 moderncv 类中的 cventry 限制为每行 89 个字符。 可以更改吗?
这是我在 LyX 中使用过的代码。恐怕我不知道 moderncv 的版本是什么。
% Preview source code
%% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[11pt,a4paper,english]{moderncv}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\usepackage{pifont}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\moderncvtheme[red]{classic}
\usepackage[scale=0.85]{geometry}
\setlength{\hintscolumnwidth}{3cm}
%\usepackage[margin=1cm,twoside]{geometry}
%\newgeometry{margin=1cm,includefoot}
\firstname{Nice}
\familyname{Nic}
\title{whatever}
\address{blablae}{blabla}
\mobile{080008000}
\email{[email protected]}
\renewcommand{\listitemsymbol}{\textbullet}
\AtBeginDocument{
\def\labelitemi{\ding{43}}
}
\makeatother
\usepackage{babel}
\begin{document}
\maketitle
\vspace*{-2cm}
\section{Profile}
Abilities forfeited situation extremely my to he resembled. Old had
conviction discretion understood put principles you. Match means keeps
round one her quick. She forming two comfort invited. Yet she income
effect edward. Entire desire way design few. Mrs sentiments led solicitude
estimating friendship fat. Meant those event is weeks state it to
or. Boy but has folly charm there its. Its fact ten spot drew.
\section{Key Skills}
\cventry{Programming}{Python, Ruby, Bash Shell, VBA}{}{}{}{}
\cventry{Databases}{Oracle SQL, PL/SQL}{}{}{}{}
\cventry{Databases}{Oracle SQL, PL/SQL}{}{}{}{}
\section{Employment History}
\cventry{Sep. 2011 --\\
Present}{xxxxxxxxxxxxxxxxxxxxx}{}{}{}{Advice me cousin an spring
of needed. Tell use paid law ever yet new. Meant to learn of vexed
if style allow he there. Tiled man stand tears ten joy there terms
any widen. Procuring continued suspicion its ten. Pursuit brother
are had fifteen distant has. Early had add equal china quiet visit.
Appear an manner as no limits either praise in. In in written on charmed
justice is amiable farther besides. Law insensible middletons unsatiable
for apartments boy delightful unreserved.}
\subsection{Some of the day-to-day responsibilities includes:}
\cvlistitem{Improve ashamed married expense bed her comfort pursuit mrs. }
\cvlistitem{Four time took ye your as fail lady. Up greatest am exertion or marianne.
Shy occasional terminated insensible and inhabiting gay. So know do
fond to half on. Now who promise was justice new winding. In finished
on he speaking suitable advanced if. }
\cvlistitem{Boy happiness sportsmen say prevailed offending concealed nor was
provision. Provided so as doubtful on striking required. Waiting we
to compass assured. }
\end{document}
答案1
总宽度\cventry
取决于页面的宽度。您可以使用以下geometry
包来更改它:
\usepackage[scale=0.85]{geometry}
假设您使用的是“经典”样式变体,如果您想更改左列的宽度,您应该使用(以宽度5cm
为例):
\setlength{\hintscolumnwidth}{5cm}
答案2
如果我理解正确的话,请尝试稍微尝试一下
\setlength{\hintscolumnwidth}{}
。它会改变左侧“列”的宽度,从而影响右侧“列”。