세부

세부

저는 이력서를 작성 중이며 다음과 같은 모습을 얻으려고 합니다.

 University 1

 Degree 1                     Jan 2016 -- Present
 Details about degree 1
 Degree 2                     Previous -- Jan 2016
 Details about degree 2

 University 2  Degree X
 Details about degree X

현재 동일한 대학에 두 번 입학해야 하는 다음 코드가 있습니다. 두 번째 입력하지 않으면 빈 줄만 나옵니다. 다른 고용주의 다른 직위에 대해서도 동일한 내용이 적용될 수 있습니다.

\documentclass[10pt,a4paper]{moderncv}

\moderncvtheme[blue]{banking} 
\usepackage[utf8]{inputenc}  %Windows 

\firstname{Student}
\familyname{of Master}
%\title{Dragonkin}         
\address{70 x street}{xxxx}   
\mobile{+61 xxx xxx xxx}    

\email{[email protected]}           
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother

\usepackage{multibib,comment}
\newcites{book,misc}{{Books},{Others}}

\nopagenumbers{}                         
\begin{document}
\setlength{\parskip}{-0.09em}%Change space between entries

%%%%%%Change space between sections

\maketitle

\vspace{-1.3cm}

\section{Education}

\cventry{{2016--Present}}{Postgraduate degree}{University of Gauss}{Antarctica}{}{Details about degree}

\cventry{{2011--2015}}{Undergraduate degree}{University of Gauss}
{Antarctica}{}{Details}

\cventry{{2006--2010}}{High school certificate}{High School}{London}{}{details
}

\end{document}

답변1

불행히도 테마는 그다지 유연하지 않습니다. 간단한 패치는 \cventry이 테마에 대한 원래 정의를 기반으로 자신만의 명령을 정의하는 것입니다 .

\newcommand*{\cvsimple}[4][.25em]{
  \begin{tabular*}{\maincolumnwidth}{l@{\extracolsep{\fill}}r}%
    % {\bfseries #4} & {\bfseries #5}\\%
    {\itshape #3} & {\itshape #2}\\%
  \end{tabular*}%
  \ifx&#4&%
  \else{\\%
    \begin{minipage}{\maincolumnwidth}%
      \small#4%
    \end{minipage}}\fi%
  \par\addvspace{#1}}

이 정의를 사용하면 다음과 같이 작성할 수 있습니다.

\cventry{{2016--Present}}{Postgraduate degree}{University of Gauss}{Antarctica}{}{Details about degree}
\cvsimple{{2016--Present}}{Postgraduate degree}{Details about degree}

당신이 원했던 것을 얻기 위해.

전체 수정된 코드는 다음과 같습니다.

\documentclass[10pt,a4paper]{moderncv}

\moderncvtheme[blue]{banking} 
\usepackage[utf8]{inputenc}  %Windows 

\firstname{Student}
\familyname{of Master}
%\title{Dragonkin}         
\address{70 x street}{xxxx}   
\mobile{+61 xxx xxx xxx}    

\email{[email protected]}           
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\newcommand*{\cvsimple}[4][.25em]{
  \begin{tabular*}{\maincolumnwidth}{l@{\extracolsep{\fill}}r}%
    % {\bfseries #4} & {\bfseries #5}\\%
    {\itshape #3} & {\itshape #2}\\%
  \end{tabular*}%
  \ifx&#4&%
  \else{\\%
    \begin{minipage}{\maincolumnwidth}%
      \small#4%
    \end{minipage}}\fi%
  \par\addvspace{#1}}
\makeatother

\usepackage{multibib,comment}
\newcites{book,misc}{{Books},{Others}}

\nopagenumbers{}                         
\begin{document}
\setlength{\parskip}{-0.09em}%Change space between entries

%%%%%%Change space between sections

\maketitle

\vspace{-1.3cm}

\section{Education}

\cventry{{2016--Present}}{Postgraduate degree}{University of Gauss}{Antarctica}{}{Details about degree}
\cvsimple{{2016--Present}}{Postgraduate degree}{Details about degree}


\cventry{{2011--2015}}{Undergraduate degree}{University of Gauss}
{Antarctica}{}{Details}

\cventry{{2006--2010}}{High school certificate}{High School}{London}{}{details
}

\end{document}

세부

위 의 정의는 혼란스럽게도 파일에 포함되어 있는 뱅킹 테마에서 사용되는 \cvsimple정의를 기반으로 합니다 .\cventrymoderncvbodyiii.sty

\renewcommand*{\cventry}[7][.25em]{
  \begin{tabular*}{\maincolumnwidth}{l@{\extracolsep{\fill}}r}%
    {\bfseries #4} & {\bfseries #5}\\%
    {\itshape #3\ifthenelse{\equal{#6}{}}{}{, #6}} & {\itshape #2}\\%
  \end{tabular*}%
  \ifx&#7&%
  \else{\\%
    \begin{minipage}{\maincolumnwidth}%
      \small#7%
    \end{minipage}}\fi%
  \par\addvspace{#1}}

관련 정보