这是我的命令:
\newpage
\cvitem{$\rhd$}{\small{\textbf{Xxxxxxx}}}
\cvline{-}{\small{Yyyyyyyyyyyyy}}
\cvline{-}{\small{Zzzzzzzzzzzzz}}
\cvitem{$\rhd$}{\small{\textbf{Aaaaaaaaaaaaaaaaaa}}}
\cvline{-}{\small{Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}}
\cvline{-}{\small{Cccccccccccccccccccccccccccccc}}
\cvline{-}{\small{Dddddddddddddddddddddddddddddddddddd}}
\cvline{-}{\small{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}}
要编译的最少代码:
\documentclass[10pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{soul}% http://ctan.org/pkg/soul
\usepackage[normalem]{ulem}
\usepackage[T1]{fontenc}
\renewcommand*{\sectionfont}{\Large\textbf\textsc}
\usepackage[inner=1.2cm,outer=1.2cm,top=0.9cm,bottom=0.9cm]{geometry}
\firstname{\Large{AAAA}}
\familyname{\Large{\textsc{CCCC}}}
\title{\small \textcolor{light-gray}{\textbf{CCCCC} }}
\address{\textbf{CCCCC}}{\textbf{CCCCC}}
\mobile{\textbf{CCCC}}
\email{[email protected]}
\extrainfo{\textbf{CCC}}
\renewcommand*{\emaillink}[2][]{
\ifthenelse{\equal{#1}{}}
{\textbf{\href{mailto:#2}{#2}}}
{\textbf{\href{mailto:#2}{#1}}}}
\renewcommand*{\emailsymbol}{\marvosymbol{66}}
\begin{document}
\cvitem{$\rhd$}{\small{\textbf{Xxxxxxx}}}
\cvline{-}{\small{Yyyyyyyyyyyyy}}
\cvline{-}{\small{Zzzzzzzzzzzzz}}
\cvitem{$\rhd$}{\small{\textbf{Aaaaaaaaaaaaaaaaaa}}}
\cvline{-} {\small{Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}}
\cvline{-}{\small{Cccccccccccccccccccccccccccccc}}
\cvline{-}{\small{Dddddddddddddddddddddddddddddddddddd}}
\cvline{-}{\small{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}}
\end{document}
结果 :
但我希望第二条 cvline 位于第一条 cvline 旁边,例如:
我怎样才能简单地做到这一点?
注意:经过几次尝试,似乎以下内容(参见“迷你页面”代码)是我需要的,但我如何才能自动调整右侧的文本?我希望文本不与边框重叠并适应迷你页面。
\documentclass[10pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{soul}% http://ctan.org/pkg/soul
\usepackage[normalem]{ulem}
\usepackage[T1]{fontenc}
\renewcommand*{\sectionfont}{\Large\textbf\textsc}
\usepackage[inner=1.2cm,outer=1.2cm,top=0.9cm,bottom=0.9cm]{geometry}
\firstname{\Large{AAAA}}
\familyname{\Large{\textsc{CCCC}}}
\title{\small \textcolor{light-gray}{\textbf{CCCCC} }}
\address{\textbf{CCCCC}}{\textbf{CCCCC}}
\mobile{\textbf{CCCC}}
\email{[email protected]}
\extrainfo{\textbf{CCC}}
\renewcommand*{\emaillink}[2][]{
\ifthenelse{\equal{#1}{}}
{\textbf{\href{mailto:#2}{#2}}}
{\textbf{\href{mailto:#2}{#1}}}}
\renewcommand*{\emailsymbol}{\marvosymbol{66}}
\begin{document}
\cvitem{$\rhd$}{\small{\textbf{Xxxxxxx}}}
\cvline{-}{\small{Yyyyyyyyyyyyy}}
\cvline{-}{\small{Zzzzzzzzzzzzz}}
\cvitem{$\rhd$}{\small{\textbf{Aaaaaaaaaaaaaaaaaa}}}
\cvline{-} {\small{Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}}
\cvline{-}{\small{Cccccccccccccccccccccccccccccc}}
\cvline{-}{\small{Dddddddddddddddddddddddddddddddddddd}}
\cvline{-}{\small{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}}
\vspace{4cm}
%Mini page ?
\begin{minipage}[t]{0.1\textwidth}
\cvitem{$\rhd$}{\small{\textbf{Xxxxxxx}}}
\cvline{-}{\small{Yyyyyyyyyyyyy}}
\cvline{-}{\small{Zzzzzzzzzzzzz}}
\end{minipage} \hfill
\begin{minipage}[t]{0.6\textwidth}
\cvitem{$\rhd$}{\small{\textbf{Aaaaaaaaaaaaaaaaaa}}}
\cvline{-}{\small{Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}}
\cvline{-}{\small{Cccccccccccccccccccccccccccccc}}
\cvline{-}{\small{Dddddddddddddddddddddddddddddddddddd}}
\cvline{-}{\small{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}}
\end{minipage}
\end{document}
答案1
在我看来,你使用的moderncv
理由完全错误。这是一种现成的风格,无需更改。如果你不喜欢这种风格,就不应该使用它,而应该努力改变它。这不值得付出努力。约瑟夫·赖特写了一系列提示和技巧,帮助你快速从头开始创建简历。使用 LaTeX 撰写简历
cvitem
按照对和的重新定义cvline
(后者在当前已经过时moderncv
)来做我认为你想做的事情。
\documentclass[10pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\renewcommand*{\sectionfont}{\Large\textbf\textsc}
\usepackage[inner=1.2cm,outer=1.2cm,top=0.9cm,bottom=0.9cm]{geometry}
\usepackage{showframe}
\usepackage[T1]{fontenc}
\renewcommand*{\sectionfont}{\Large\textbf\textsc}
\usepackage[inner=1.2cm,outer=1.2cm,top=0.9cm,bottom=0.9cm]{geometry}
\usepackage{showframe}
\colorlet{light-gray}{gray!20!white}
\firstname{\Large{AAAA}}
\familyname{\Large{\textsc{CCCC}}}
\title{\small \textcolor{light-gray}{\textbf{CCCCC} }}
\address{\textbf{CCCCC}}{\textbf{CCCCC}}
\mobile{\textbf{CCCC}}
\email{[email protected]}
\extrainfo{\textbf{CCC}}
\renewcommand*{\emaillink}[2][]{
\ifthenelse{\equal{#1}{}}
{\textbf{\href{mailto:#2}{#2}}}
{\textbf{\href{mailto:#2}{#1}}}}
\renewcommand*{\emailsymbol}{\marvosymbol{66}}
\begin{document}
\makecvtitle
\cvitem{$\rhd$}{Xxxxxxx}
\cvline{-}{Yangtse Yoga Yeast}
\cvline{-}{Zzzzzzzzzzzzz}
\cvitem{$\rhd$}{Aaaaaaaaaaaaaaaaaa}
\cvline{-}{busy bee on a big pile of blue butter cups}
\cvline{-}{Cccccccccccccccccccccccccccccc}
\cvline{-}{Dddddddddddddddddddddddddddddddddddd}
\cvline{-}{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}
\vspace{2cm}
\renewcommand{\cvitem}[2]{\parbox[t]{1.5em}{$\rhd$}{\raggedright\small\bfseries#2\par}\vspace{1ex}}
\renewcommand{\cvline}[2]{\parbox[t]{1.5em}{--}\parbox[t]{\dimexpr\linewidth-2em}{\raggedright\small#2}\par\vspace{.5ex}}
\fbox{
\begin{minipage}[t]{0.3\textwidth}
\cvitem{}{X-ray Stingray whale}
\cvline{}{Yangtse Yoga Yeast}
\cvline{}{Zebra, Gnu and Lion}
\end{minipage}}\hfill
\begin{minipage}[t]{0.6\textwidth}
\cvitem{}{Ants are strong little animals}
\cvline{}{Busy bee on a big pile of blue butter cups busy bee on a big pile of blue butter cups busy bee on a big pile of blue butter cups }
\cvline{}{Capybaras are crazy but somehow cute}
\cvline{}{Ducks are just lovely}
\cvline{}{Eeeeeeeeeek, a scorpion. One, two, three, for, five, six, seven, eight legs. Hi arachnophobia}
\end{minipage}
\end{document}