Datumsspalte rechts in komacv

Datumsspalte rechts in komacv

Ich verwende komacv (https://www.ctan.org/pkg/komacv) für meinen Lebenslauf und möchte die Spalte mit den Daten auf die rechte Seite verschieben, ungefähr so:Wie verschiebe ich eine Datumsspalte in ModernCV?(das funktioniert nur für moderncv, nicht für komacv). Irgendwelche Ideen?

Übrigens kann ich das Tag „komacv“ nicht setzen, da es mir an Reputation mangelt.

Hier ist ein einfaches Beispiel (abgeleitet aus dem mit komacv gelieferten Beispiel):

\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}

Antwort1

Die Lösung hängt von der Version von ab komacv. Nachfolgend finden Sie Patches für die Versionen 2014/08/10 v1.0.1und 2017/04/17 v1.1.1.


komacv Version 10.08.2014 v1.0.1:Fügen Sie davor die folgenden Zeilen hinzu \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

Bildbeschreibung hier eingeben

\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}

komacv 17.04.2017 v1.1.1:Fügen Sie davor die folgenden Zeilen hinzu \begin{document}:

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

Bildbeschreibung hier eingeben

\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}

verwandte Informationen