moderncv 银行风格中引用之前的问题

moderncv 银行风格中引用之前的问题

我是 LaTex 的初学者。我使用 sharelatex 用 LaTex 编写文档。

因此,我在用现代银行简历风格撰写简历时遇到了问题。我想用红色圆圈标出箭头指向的位置,并确保替换后我的手机和电子邮件将居中。我还想缩小“目标:寻找间隔年实习”上方棕色箭头所指的空间

在此处输入图片描述

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

\makeatletter
\patchcmd{\makehead}{%search
  \flushmakeheaddetails\@firstmakeheaddetailselementtrue\\\null}{%replace
  \flushmakeheaddetails\@firstmakeheaddetailselementtrue\par\vspace{-
\baselineskip}\null}{%success
  }{%failure
    }
\makeatother

\moderncvcolor{blue}
\usepackage[utf8]{inputenc}

\usepackage[scale=0.95, top=0.5cm, bottom=1cm]{geometry}

\name{Joe}{DOE}
\title{School}
\address{Address}{1111}{FRANCE}
\vspace{-1cm}
\phone[mobile]{+33~0~00~00~00}
\email{[email protected]} 
\extrainfo{Available : July 2017 }


\quote{Objective : looking for a gap year internship}

如果有人能帮助我,那就太好了!我在网上没有找到有关该问题的任何信息。

谢谢

答案1

在序言中的\makeatletter和之间添加以下几行\makeatother

\newcommand\moreextrainfo[1]{\def\@moreextrainfo{#1}}
\patchcmd\makehead
  {\\[2.5em]}%
  {\par{\centering\addressfont\color{color2}\@moreextrainfo\par}\medskip}%
  {}{}

并添加使用 tikz 的可用性\moreextrainfo

\usepackage{tikz}
\usetikzlibrary{shapes}
%\extrainfo{Available: July 2017}
\moreextrainfo
  {\tikz[baseline=(A.base)]\node[ellipse,draw=red] (A) {Available: July 2017};}

在此处输入图片描述

\documentclass[11pt,a4paper,sans]{moderncv}
\usepackage{tikz}
\usetikzlibrary{shapes}
\moderncvstyle{banking}

\makeatletter
\patchcmd{\makehead}{%search
  \flushmakeheaddetails\@firstmakeheaddetailselementtrue\\\null}{%replace
  \flushmakeheaddetails\@firstmakeheaddetailselementtrue\par\vspace{-
\baselineskip}\null}{%success
  }{%failure
    }
\newcommand\moreextrainfo[1]{\def\@moreextrainfo{#1}}
\patchcmd\makehead
  {\\[2.5em]}%
  {\par{\centering\addressfont\color{color2}\@moreextrainfo\par}\medskip}%
  {}{}
\makeatother

\moderncvcolor{blue}
\usepackage[utf8]{inputenc}

\usepackage[scale=0.95, top=0.5cm, bottom=1cm]{geometry}

\name{Joe}{DOE}
\title{School}
\address{Address}{1111}{FRANCE}
\vspace{-1cm}
\phone[mobile]{+33~0~00~00~00}
\email{[email protected]} 
\moreextrainfo
  {\tikz[baseline=(A.base)]\node[ellipse,draw=red] (A) {Available: July 2017};}

\quote{Objective : looking for a gap year internship}
\begin{document}
\maketitle
\end{document}

相关内容