Modern CV의 추가 라인

Modern CV의 추가 라인

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} 

산출

여기에 이미지 설명을 입력하세요

관련 정보