現代の履歴書の追加行

現代の履歴書の追加行

Modern CV で履歴書を作成しようとしています。ここに小さなコードがあります:

\documentclass[10pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}                
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage[inner=1.2cm,outer=1.2cm,top=0.4cm,bottom=0.4cm]{geometry}

\usepackage{sourcesanspro}
\renewcommand*{\sectionfont}{\Large\bfseries\scshape}

\firstname{\Large{Aaaa}}
\familyname{\Large{\textsc{Bbbb}}}
\title{\normalsize Iiiiiiiiiiiii }
\address{\textbf{113 iiiii}}{\textbf{000 Vvvvv}}  
\mobile{\textbf{0000000}}             
\email{[email protected]} 
\extrainfo{\textbf{bla bla}}  

\begin{document}
\pagestyle{empty}
\maketitle

\section{Experience}
\end{document}

ご覧のとおり、「経験」セクションの前には大きな青い線があります。同じ線を表示したいのですが 「経験」して、自分が望む限り(限界に達するまで)拡張する。それは可能ですか?

答え1

序文に次の行を追加します

\makeatletter
\RenewDocumentCommand{\section}{sm}{%
  \par\addvspace{2.5ex}%
  \phantomsection{}% reset the anchor for hyperrefs
  \addcontentsline{toc}{section}{#2}%
  \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%
  \hspace{\separatorcolumnwidth}%
  \parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#2}\hspace{\separatorcolumnwidth}%
    \strut\raisebox{\baseletterheight}{\color{color1}\rule{\maincolumnwidth-\widthof{\sectionstyle{#2}}-\separatorcolumnwidth}{0.95ex}}}%
  \par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading
\makeatother

あなたが望むものを達成するため。

MWE (をロードしているので、sansのオプションを追加したことに注意してください):moderncvsourcesanspro

\documentclass[10pt,a4paper,sans]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage[inner=1.2cm,outer=1.2cm,top=0.4cm,bottom=0.4cm]{geometry}

\usepackage{sourcesanspro}
\renewcommand*{\sectionfont}{\Large\bfseries\scshape}

\makeatletter
\RenewDocumentCommand{\section}{sm}{%
  \par\addvspace{2.5ex}%
  \phantomsection{}% reset the anchor for hyperrefs
  \addcontentsline{toc}{section}{#2}%
  \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%
  \hspace{\separatorcolumnwidth}%
  \parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#2}\hspace{\separatorcolumnwidth}%
    \strut\raisebox{\baseletterheight}{\color{color1}\rule{\maincolumnwidth-\widthof{\sectionstyle{#2}}-\separatorcolumnwidth}{0.95ex}}}%
  \par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading
\makeatother

\firstname{\Large{Aaaa}}
\familyname{\Large{\textsc{Bbbb}}}
\title{\normalsize Iiiiiiiiiiiii }
\address{\textbf{113 iiiii}}{\textbf{000 Vvvvv}}
\mobile{\textbf{0000000}}
\email{[email protected]}
\extrainfo{\textbf{bla bla}}

\begin{document}
\pagestyle{empty}
\maketitle

\section{Experience}
\end{document} 

出力

ここに画像の説明を入力してください

関連情報