Instead of fighting with the sorting procedures there is---in my opinion---an easier way.
You can use a bibliography style which does not sort the entries in the bib files, for example style unsortdin
.
Then you can write your bib files and sort the entries by your own: the first paper is the lowest, the next paper you write above etc. Same for Theses or other works.
For example see this changed bib file of you:
@ARTICLE{xxd3,
author = {A and B and C},
title = {Article title April 2014},
journal = {Journal name},
year = {2014},
volume = {3},
pages = {1-5},
number = {2},
month = {April}
}
@ARTICLE{xxd2,
author = {A and B and C},
title = {Article title October 2013},
journal = {Journal name 2},
year = {2013},
volume = {1},
pages = {1-10},
number = {1},
month = {October}
}
@ARTICLE{xxd1,
author = {A and B and C and D},
title = {Article title March 2013},
journal = {Journal name 3},
year = {2013},
volume = {2},
pages = {2-5},
number = {2},
month = {March}
}
I added by using package filecontents
both changed bib files into the following MWE.
At last this sorting in the BiB files is mutch more easier than to write an own .bst
file or change an existing one.
No you have only to change the BiB style in the MWE to unsortdin
to get the result you want (See marks <=======
in the MWE).
MWE:
\RequirePackage{filecontents}
\begin{filecontents*}{209082-journal.bib}
@ARTICLE{xxd3,
author = {A and B and C},
title = {Article title April 2014},
journal = {Journal name},
year = {2014},
volume = {3},
pages = {1-5},
number = {2},
month = {April}
}
@ARTICLE{xxd2,
author = {A and B and C},
title = {Article title October 2013},
journal = {Journal name 2},
year = {2013},
volume = {1},
pages = {1-10},
number = {1},
month = {October}
}
@ARTICLE{xxd1,
author = {A and B and C and D},
title = {Article title March 2013},
journal = {Journal name 3},
year = {2013},
volume = {2},
pages = {2-5},
number = {2},
month = {March}
}
\end{filecontents*}
\begin{filecontents*}{209082-conf.bib}
@INPROCEEDINGS{xxdc3,
author = {LastnameC, firstnameC},
title = {Title (2012)},
booktitle = {Conference 1},
year = {2012},
pages = {1-5}
}
@INPROCEEDINGS{xxdc2,
author = {LastnameB, firstnameB},
title = {Title (2011)},
booktitle = {Conference 3},
year = {2011},
pages = {30-35}
}
@INPROCEEDINGS{xxdc1,
author = {LastnameA, firstnameA},
title = {Title (2010)},
booktitle = {Conference 2},
year = {2010},
pages = {9-10}
}
\end{filecontents*}
\documentclass[10pt,legalpaper,roman]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{red}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[scale=0.75]{geometry}
\name{John}{Doe}
\title{Resum\'{e}}
\makeatletter
\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}
\makeatother
\usepackage{multibib}
\newcites{jrnl}{Journal papers} % ================ needs bibtex jrnl.aux
\begin{document}
\makecvtitle
\section{Selected publications}
\nocitejrnl{*}
\bibliographystylejrnl{unsrtdin}% plainyrrev <==========================
\bibliographyjrnl{209082-journal}
\renewcommand{\refname}{Conference papers}
\nocite{*}
\bibliographystyle{unsrtdin}% plainyrrev <==============================
\bibliography{209082-conf}
\end{document}
and the result:
Best Answer
The solution to both parts of your queestion can be found (albeit in German) in the link you provided https://github.com/Stefanqn/Bewerbung. This is a package (also on CTAN) which seems to adapt moderncv to German standards, one possibility would therefore be to attempt to use this package.
The below is a simplified version, based on the macros in the Brewerbung package
The lengths above may want some adjustment, but gives the below for your example
As to changing the .sty file, in theory all that needs to change is that the first argument of
\cventry
(which is currently printed as is) gets passed to\dates
but I have not tried this myself. Instead\cventry{\dates[month.year-month.year]}{Degree}{Institution}{City}{\textit{Grade}}{Description}
does work as desired.