私は履歴書を作成しており、次のような内容を実現したいと考えています。
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
現時点では、同じ大学を 2 回入力する必要がある次のコードがあります。2 回目に入力しないと、空白行だけが表示されます。同じことが、異なる雇用主の異なる職名にも当てはまります。
\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&%
\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&%
\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
の定義に基づいていますが、紛らわしいことに、この定義は次のファイルに含まれています。\cventry
moderncvbodyiii.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&%
\else{\\%
\begin{minipage}{\maincolumnwidth}%
\small#7%
\end{minipage}}\fi%
\par\addvspace{#1}}