komacv 中的日期列右側

komacv 中的日期列右側

我正在使用 komacv (https://www.ctan.org/pkg/komacv)對於我的履歷,想要將日期列移到右側,類似:如何移動moderncv中的日期列?(這只適用於moderncv,不適用於komacv)。有任何想法嗎?

順便提一句。由於缺乏聲譽,我無法添加“komacv”標籤。

這是一個簡單的範例(源自 komacv 附帶的範例):

\documentclass[%
]{komacv}

\pagestyle{scrheadings}
\clearscrheadfoot
\ifoot{CV~\firstname~\familyname}
\ofoot{\pagemark/\totalpagemark}
% ===========================
%    FONTS
% ===========================
\addtokomafont{firstnamefont}{\fontsize{35}{50}}

% ===========================
%    BIBLIOGRAPHY
% ===========================
\usepackage[backend=biber,
style=ieee,%authortitle,% 
sorting=ydnt,%
]{biblatex}
\bibliography{komacv.bib}
\defbibheading{bibliography}[Publications]{\section{#1}}

% ===========================
%    PERSONAL DATA
% ===========================
\renewcommand*{\title}{CV}% PDF metadata
\renewcommand*{\firstname}{Jane}
\renewcommand*{\familyname}{Eyre}
\renewcommand*{\acadtitle}{B.\,Ed.}
\renewcommand*{\addressstreet}{Ferndean House}
\renewcommand*{\addresscity}{Ferndean Village}
\renewcommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
\renewcommand*{\mobile}{009-87654321}


\begin{document}
\raggedbottom

\maketitle

\section{Personal Information}
\cvitem{Date of birth}{February 15, 1828}

\section{Education}
\cventry{1835--1838}{Homeschooling}{}{Gateshead}{grades 1--3}{Teacher: Mr.~NN, under supervision of my aunt Ms. Reed.}


\end{document}

答案1

解決方案取決於 的版本komacv。下面您可以找到版本2014/08/10 v1.0.1和 的補丁2017/04/17 v1.1.1


komacv版本2014/08/10 v1.0.1:在之前加入以下行\begin{document}

\usepackage{letltxmacro}
\makeatletter
\LetLtxMacro\origcvitem\cvitem
\renewcommand*{\cvitem}[3][\@afterelementsvspace]{%
  \begin{tabular}{%
      @{}p{\@maincolwidth}%
      @{\hspace{\@sepcolwidth}}p{\@hintscolwidth}@{}%
    }%
    {#3} & \raggedleft\hintstyle{#2}%
  \end{tabular}\\[#1]%
}
\renewcommand\@cvbarsection[1]{%
  \origsection*{
    \phantomsection{}% reset the anchor for hyperrefs
    \addcontentsline{toc}{section}{#1}%
    \origcvitem[0pt]{%
      \raggedleft\hintstyle{\color{@secbarcolor}%
        \rule{\@hintscolwidth}{1ex}}%
    }{\sectionstyle{#1}}
  }% end origsection
} % end cvbarsection
\makeatother

在此輸入影像描述

\documentclass[%
]{komacv}

\pagestyle{scrheadings}
\clearscrheadfoot
\ifoot{CV~\firstname~\familyname}
\ofoot{\pagemark/\totalpagemark}
% ===========================
%    FONTS
% ===========================
\addtokomafont{firstnamefont}{\fontsize{35}{50}}

% ===========================
%    BIBLIOGRAPHY
% ===========================
\usepackage[backend=biber,
style=ieee,%authortitle,% 
sorting=ydnt,%
]{biblatex}
\bibliography{komacv.bib}
\defbibheading{bibliography}[Publications]{\section{#1}}

% ===========================
%    PERSONAL DATA
% ===========================
\renewcommand*{\title}{CV}% PDF metadata
\renewcommand*{\firstname}{Jane}
\renewcommand*{\familyname}{Eyre}
\renewcommand*{\acadtitle}{B.\,Ed.}
\renewcommand*{\addressstreet}{Ferndean House}
\renewcommand*{\addresscity}{Ferndean Village}
\renewcommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
\renewcommand*{\mobile}{009-87654321}

\usepackage{letltxmacro}
\makeatletter
\LetLtxMacro\origcvitem\cvitem
\renewcommand*{\cvitem}[3][\@afterelementsvspace]{%
  \begin{tabular}{%
      @{}p{\@maincolwidth}%
      @{\hspace{\@sepcolwidth}}p{\@hintscolwidth}@{}%
    }%
    {#3} & \raggedleft\hintstyle{#2}%
  \end{tabular}\\[#1]%
}
\renewcommand\@cvbarsection[1]{%
  \origsection*{
    \phantomsection{}% reset the anchor for hyperrefs
    \addcontentsline{toc}{section}{#1}%
    \origcvitem[0pt]{%
      \raggedleft\hintstyle{\color{@secbarcolor}%
        \rule{\@hintscolwidth}{1ex}}%
    }{\sectionstyle{#1}}
  }% end origsection
} % end cvbarsection

\makeatother

\begin{document}
\raggedbottom

\maketitle

\section{Personal Information}
\cvitem{Date of birth}{February 15, 1828}

\section{Education}
\cventry{1835--1838}{Homeschooling}{}{Gateshead}{grades 1--3}{Teacher: Mr.~NN, under supervision of my aunt Ms. Reed.}


\end{document}

科馬克夫 2017/04/17 v1.1.1:在之前加入以下行\begin{document}

\makeatletter
\renewcommand*{\cvitem}[3][\@afterelementsvspace]{%
  \begin{tabular}{%
      @{}p{\@maincolwidth}%
      @{\hspace{\@sepcolwidth}}p{\@hintscolwidth}@{}%
    }%
    {#3}&\RaggedLeft\hintstyle{#2}%
  \end{tabular}\\[#1]%
}
\makeatother

在此輸入影像描述

\documentclass[%
]{komacv}

\pagestyle{scrheadings}
\clearscrheadfoot
\ifoot{CV~\firstname~\familyname}
\ofoot{\pagemark/\totalpagemark}
% ===========================
%    FONTS
% ===========================
\addtokomafont{firstnamefont}{\fontsize{35}{50}}

% ===========================
%    BIBLIOGRAPHY
% ===========================
\usepackage[backend=biber,
style=ieee,%authortitle,% 
sorting=ydnt,%
]{biblatex}
\bibliography{komacv.bib}
\defbibheading{bibliography}[Publications]{\section{#1}}

% ===========================
%    PERSONAL DATA
% ===========================
\renewcommand*{\title}{CV}% PDF metadata
\renewcommand*{\firstname}{Jane}
\renewcommand*{\familyname}{Eyre}
\renewcommand*{\acadtitle}{B.\,Ed.}
\renewcommand*{\addressstreet}{Ferndean House}
\renewcommand*{\addresscity}{Ferndean Village}
\renewcommand*{\address}[2]{\addressstreet{#1}\addresscity{#2}}
\renewcommand*{\mobile}{009-87654321}

\makeatletter
\renewcommand*{\cvitem}[3][\@afterelementsvspace]{%
  \begin{tabular}{%
      @{}p{\@maincolwidth}%
      @{\hspace{\@sepcolwidth}}p{\@hintscolwidth}@{}%
    }%
    {#3}&\RaggedLeft\hintstyle{#2}%
  \end{tabular}\\[#1]%
}
\makeatother
\begin{document}
\raggedbottom
\maketitle

\section{Personal Information}
\cvitem{Date of birth}{February 15, 1828}

\section{Education}
\cventry{1835--1838}{Homeschooling}{}{Gateshead}{grades 1--3}{Teacher: Mr.~NN, under supervision of my aunt Ms. Reed.}


\end{document}

相關內容