AureusPhoenix
12-11-2016, 21:03
Hi Leute, ich hab ein kleines Problem mit meinem Lebenslauf. Und zwar benutze ich dort biblatex in Verbindung mit einem Befehl den ich selbst nur im Internet gefunden und an meine Bedürfnisse angepasst habe. Er tut nicht viel mehr als meinen Namen unter den Autoren zu suchen und anders zu formatieren. Einfach damit man schnell sieht an welcher Stelle ich stehe. Leider geht der Code seit Ubuntu 16.04 nicht mehr. Kann sein, dass er schon in früheren Versionen nicht mehr gegangen wäre, bin von 14.04 auf 16.04 gewechselt. Ich vermute, dass sich im biblatex-Code was geändert hat. Aber ich find irgendwie nicht raus was. Kann mir vieleicht jemand helfen?
"Minimal"beispiel:
\documentclass[10pt, a4paper]{moderncv}
%\immediate\write18{biber \jobname}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Basic Packages and so on %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[%
backend=biber,
style=authoryear,
dashed=false,
sorting=ydnt,
bibencoding=auto,
labeldate=false,
url=false,
block=space,
maxbibnames=99,
defernumbers=true,
]{biblatex}
\addbibresource{lit.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% cvmodern settings %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\moderncvtheme[blue]{classic}
\definecolor{cvblue}{RGB}{56,115,179}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Command for name highlighting %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\mknamesignature}[5]{\def#1{#2|#3|#4|#5}}
\mknamesignature{\highlightname}{Vetter}{Christian }{}{}
\DeclareNameFormat{sortname}{%
\begingroup%
\mknamesignature{\currentsignature}{#1}{#3}{#5}{#7 }%
\ifdefequal{\highlightname}{\currentsignature}%
{\let\mkbibnamefirst=\textbf\color{cvblue}%
\let\mkbibnamelast=\textbf%
\let\mkbibnameprefix=\textbf%
\let\mkbibnameaffix=\textbf}%
{}%
\ifnum\value{listcount}=1\relax%
\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}%
\ifblank{#3#5}%
{}%
{\usebibmacro{name:revsdelim}}%
\else%
\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}%
\let\finalnamedelim=\black{\addcomma}%
\let\multinamedelim =\black{\addcomma}%
\fi
\endgroup%
\usebibmacro{name:andothers}}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Personal information %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\firstname{Christian}
\familyname{Vetter}
\title{Curriculum Vitae}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Main Document %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
% Change Style to a kind of itemize environment
\setlength\bibitemsep{0.5em}
\setlength\bibhang{6em}
\defbibenvironment{bibliography}
{\list{\hspace*{5em}\labelitemi}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\endlist}
{\item}
\nocite{Vet15e}
\nocite{Guz16}
\printbibliography[title={Test}]
\end{document}
Bibtex-Code für die enthaltene lit.bib
@Article{Guz16,
Title = {Demonstration of local teleportation using classical entanglement},
Author = {Guzman-Silva, Diego and Brüning, Robert and Zimmermann, Felix and Vetter, Christian and Gräfe, Markus and Heinrich, Matthias and Nolte, Stefan and Duparré, Michael and Aiello, Andrea and Ornigotti, Marco and Szameit, Alexander},
Year = {2016},
ISSN = {1863-8899},
Number = {2},
Pages = {317--321},
Url = {http://dx.doi.org/10.1002/lpor.201500252},
Volume = {10},
File = {Guz16.pdf:2016/10/Guz16.pdf:PDF},
Journal = {Laser \& Photonics Reviews},
Owner = {adminlokal},
Timestamp = {2016.06.02}
}
@Article{Vet15e,
Title = {Optimization and control of two-component radially self-accelerating beams},
Author = {Vetter, Christian and Eichelkraut, Toni and Ornigotti, Marco and Szameit, Alexander},
Year = {2015},
Doi = {http://dx.doi.org/10.1063/1.4936194},
Eid = {211104},
Number = {21},
Url = {http://scitation.aip.org/content/aip/journal/apl/107/21/10.1063/1.4936194},
Volume = {107},
File = {Vet15e.pdf:2016/10/Vet15e.pdf:PDF;Vet15e.pdf:2016/04/Vet15e.pdf:PDF},
Journal = {Applied Physics Letters},
Keywords = {Helical Beams},
Timestamp = {2016.04.04}
}
Vielen Dank im Voraus!
Grüße
PS: Ich hab den Code nochmal in ner Virtual box mit der texlive-Version in Ubuntu 14.04 probiert. Da geht er noch.
"Minimal"beispiel:
\documentclass[10pt, a4paper]{moderncv}
%\immediate\write18{biber \jobname}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Basic Packages and so on %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[%
backend=biber,
style=authoryear,
dashed=false,
sorting=ydnt,
bibencoding=auto,
labeldate=false,
url=false,
block=space,
maxbibnames=99,
defernumbers=true,
]{biblatex}
\addbibresource{lit.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% cvmodern settings %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\moderncvtheme[blue]{classic}
\definecolor{cvblue}{RGB}{56,115,179}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Command for name highlighting %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\mknamesignature}[5]{\def#1{#2|#3|#4|#5}}
\mknamesignature{\highlightname}{Vetter}{Christian }{}{}
\DeclareNameFormat{sortname}{%
\begingroup%
\mknamesignature{\currentsignature}{#1}{#3}{#5}{#7 }%
\ifdefequal{\highlightname}{\currentsignature}%
{\let\mkbibnamefirst=\textbf\color{cvblue}%
\let\mkbibnamelast=\textbf%
\let\mkbibnameprefix=\textbf%
\let\mkbibnameaffix=\textbf}%
{}%
\ifnum\value{listcount}=1\relax%
\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}%
\ifblank{#3#5}%
{}%
{\usebibmacro{name:revsdelim}}%
\else%
\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}%
\let\finalnamedelim=\black{\addcomma}%
\let\multinamedelim =\black{\addcomma}%
\fi
\endgroup%
\usebibmacro{name:andothers}}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Personal information %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\firstname{Christian}
\familyname{Vetter}
\title{Curriculum Vitae}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Main Document %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
% Change Style to a kind of itemize environment
\setlength\bibitemsep{0.5em}
\setlength\bibhang{6em}
\defbibenvironment{bibliography}
{\list{\hspace*{5em}\labelitemi}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\endlist}
{\item}
\nocite{Vet15e}
\nocite{Guz16}
\printbibliography[title={Test}]
\end{document}
Bibtex-Code für die enthaltene lit.bib
@Article{Guz16,
Title = {Demonstration of local teleportation using classical entanglement},
Author = {Guzman-Silva, Diego and Brüning, Robert and Zimmermann, Felix and Vetter, Christian and Gräfe, Markus and Heinrich, Matthias and Nolte, Stefan and Duparré, Michael and Aiello, Andrea and Ornigotti, Marco and Szameit, Alexander},
Year = {2016},
ISSN = {1863-8899},
Number = {2},
Pages = {317--321},
Url = {http://dx.doi.org/10.1002/lpor.201500252},
Volume = {10},
File = {Guz16.pdf:2016/10/Guz16.pdf:PDF},
Journal = {Laser \& Photonics Reviews},
Owner = {adminlokal},
Timestamp = {2016.06.02}
}
@Article{Vet15e,
Title = {Optimization and control of two-component radially self-accelerating beams},
Author = {Vetter, Christian and Eichelkraut, Toni and Ornigotti, Marco and Szameit, Alexander},
Year = {2015},
Doi = {http://dx.doi.org/10.1063/1.4936194},
Eid = {211104},
Number = {21},
Url = {http://scitation.aip.org/content/aip/journal/apl/107/21/10.1063/1.4936194},
Volume = {107},
File = {Vet15e.pdf:2016/10/Vet15e.pdf:PDF;Vet15e.pdf:2016/04/Vet15e.pdf:PDF},
Journal = {Applied Physics Letters},
Keywords = {Helical Beams},
Timestamp = {2016.04.04}
}
Vielen Dank im Voraus!
Grüße
PS: Ich hab den Code nochmal in ner Virtual box mit der texlive-Version in Ubuntu 14.04 probiert. Da geht er noch.