将现代银行的 cventry 风格更改为经典风格

将现代银行的 cventry 风格更改为经典风格

我最近开始学习 LateX,并尝试制作自己的简历。我使用了银行风格的 moderncv 主题。但我希望拥有经典风格的简历。我尝试使用 \renewcommand 来执行此操作,就像其他人针对其他问题所建议的那样,但我没有得到我想要的。我想要获得:year-year 第一条信息 第二条信息 第三条信息 此外,我还希望能够将第三条信息留空。实际上,当我尝试这样做时,我得到了一个错误。我必须删除 {} 还是不写任何东西或其他内容?

抱歉我的英语不好,我的英语说得不太好。

\documentclass[11pt,a4paper,sans]{moderncv}   
\moderncvstyle{banking}  
\moderncvcolor{blue}

\renewcommand*{\cventry}[7][.25em]{%
  \cvitem[#1]{#2}{%
    {\bfseries#3}%
    \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
    \ifthenelse{\equal{#5}{}}{}{, #5}%
    \ifthenelse{\equal{#6}{}}{}{, #6}%
    .\strut%
    \ifx&#7&%
      \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}

\usepackage[utf8]{inputenc} 
\usepackage[francais]{babel}
\usepackage[scale=0.75]{geometry}
\usepackage{import}

\name{One}{Guy}                             
\address{adrres, post code}{}{}
\phone[mobile]{number}                   
\email{[email protected]}


\begin{document}

\makecvtitle

\centering\small{Here comes the title centered and in small}

\raggedright
\section{Formation}

\vspace{5pt}

\subsection{Etudes}

\vspace{3pt}
%With CV entry
%Year-year  Name of university and city
%%%%%%%%%%%%Grade...
%%%%%%%%%%%%Description
\textbf{2012-2014} University and city
\\Degre and grades
\\Description

\subsection{Projet notables}

\subsection{Langues étrangères}
first langage
\\second langage
\\third langage


\subsection{Compétences}
Here comes the skills

\section{Expérience professionnel}





%Here comes experiences with the same structure than the studies
%year-year  first information (Name of the industry and city )
%%%%%%%%%%%%Second information
%%%%%%%%%%%%Third information



\section{Centre d'intérêts}

\begin{itemize}
\item Sport : 
\item Musique : 
\end{itemize}

\end{document}

答案1

如果您想要与此相匹配的风格:

year-year  First information
           Second information
           Third information

那么你可能对 的改变感兴趣\cvitem。下面我做了一个\newentry

在此处输入图片描述

\documentclass[11pt,a4paper,sans]{moderncv}   
\moderncvstyle{banking}  
\moderncvcolor{blue}

\usepackage[utf8]{inputenc} 
\usepackage[francais]{babel}
\usepackage[scale=0.75]{geometry}

\name{One}{Guy}                             
\address{adrres, post code}{}{}
\phone[mobile]{number}                   
\email{[email protected]}

\newcommand*{\newentry}[3][.25em]{%
  \begin{tabular}[t]{@{}p{0.125\textwidth}@{\hspace{\separatorcolumnwidth}}}%
    \raggedleft\hintstyle{#2}%
  \end{tabular}%
  \begin{tabular}[t]{@{}p{\dimexpr0.875\textwidth-\separatorcolumnwidth}@{}}
     #3
  \end{tabular}%
  \par\addvspace{#1}}

\begin{document}

\makecvtitle

{\centering\small Here comes the title centered and in small\par}

\raggedright

\section{Formation}

\vspace{5pt}

\subsection{Etudes}

\vspace{3pt}

\newentry{2012-2014}{%
    University and city \\
    Degre and grades \\
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque volutpat, 
    neque nec aliquam eleifend, dolor risus sodales leo, ut porta odio nisi in ex.}

\subsection{Projet notables}

\subsection{Langues étrangères}
first language \\
second language \\
third language

\subsection{Compétences}
Here comes the skills

\section{Expérience professionnel}

\newentry{year-year}{%
    First information (Name of the industry and city ) \\
    Second information \\
    Third information}

\section{Centre d'intérêts}

\begin{itemize}
  \item Sport :
  \item Musique :
\end{itemize}

\end{document}

答案2

你可以通过插入

 \renewcommand*{\cventry}[7][.25em]{%
  \cvitem[#1]{#2}{%
    {\bfseries#3}%
    \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
    \ifthenelse{\equal{#5}{}}{}{, #5}%
    \ifthenelse{\equal{#6}{}}{}{, #6}%
    .\strut%
    \ifx&#7&%
      \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}

就在你的经历之前

相关内容