Zitat von
slowfox
Ja, allerdings. Ich habe mir die v1.0 angesehen, aber auch dort erhalte ich nicht die gewünschte Darstellung.
Versuche mal diese Variante, wobei ich mir nicht ganz sicher bin,
ob ich dein Problem richtig verstanden habe.
Herbert
Code:
\documentclass[ngerman]{scrartcl}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@TECHREPORT{beispiel,
title = {Beispiel 1},
author = {Autor1, Vorname1},
shorthand = {Eins},
institution = {Verlag1},
year = {2010},
type = {Norm},
}
@TECHREPORT{beispiel2,
title = {Beispiel 2},
author = {Autor2, Vorname2},
institution = {Verlag2},
year = {2010},
type = {Norm},
}
\end{filecontents}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[style=authoryear-comp,citetracker,backend=biber]{biblatex}
\bibliography{\jobname}
\renewbibmacro*{cite}{%
\ifciteseen
{\iffieldundef{shorthand}
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
{\usebibmacro{cite:label}%
\setunit{\addspace}}
{\printnames{labelname}%
\setunit{\nameyeardelim}}%
\usebibmacro{cite:labelyear+extrayear}}
{\usebibmacro{cite:shorthand}}}
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
{\usebibmacro{cite:label}%
\setunit{\addspace}}
{\printnames{labelname}%
\setunit{\nameyeardelim}}%
\usebibmacro{cite:labelyear+extrayear}
\usebibmacro{shorthandintro}}}
\renewbibmacro*{textcite}{%
\ifciteseen
{\ifnameundef{labelname}
{\iffieldundef{shorthand}
{\usebibmacro{cite:label}%
\setunit{\global\booltrue{cbx:parens}\addspace\bibopenparen}%
\ifnumequal{\value{citecount}}{1}{\usebibmacro{prenote}}{}%
\usebibmacro{cite:labelyear+extrayear}}
{\usebibmacro{cite:shorthand}}}
{\iffieldundef{shorthand}
{\printnames{labelname}%
\setunit{\global\booltrue{cbx:parens}\addspace\bibopenparen}%
\ifnumequal{\value{citecount}}{1}{\usebibmacro{prenote}}{}%
\usebibmacro{citeyear}}}
{\usebibmacro{cite:shorthand}%
\setunit{\global\booltrue{cbx:parens}\addspace\bibopenparen}%
\ifnumequal{\value{citecount}}{1}{\usebibmacro{prenote}}{}%
\printtext[mkbibparens]{\printfield{prenote}}%\usebibmacro{citeyear}
}}
{\ifnameundef{labelname}
{\iffieldundef{shorthand}
{\usebibmacro{cite:label}%
\setunit{\global\booltrue{cbx:parens}\addspace\bibopenparen}%
\ifnumequal{\value{citecount}}{1}
{\usebibmacro{prenote}}
{}%
\usebibmacro{cite:labelyear+extrayear}}
{\usebibmacro{cite:shorthand}}}
{\printnames{labelname}%
\setunit{%
\global\booltrue{cbx:parens}%
\addspace\bibopenparen}%
\ifnumequal{\value{citecount}}{1}
{\usebibmacro{prenote}}
{}%
%\usebibmacro{citeyear}}
\printtext{\printfield{year}}}
\usebibmacro{shorthandintro}}}
\begin{document}
textcite: \textcite[3]{beispiel}
textcite: \textcite[3]{beispiel2}
cite: \cite[3]{beispiel}
textcite: \textcite[3]{beispiel}
parencite: \parencite[3]{beispiel}
cite: \cite[3]{beispiel2}
textcite: \textcite[3]{beispiel2}
parencite: \parencite[3]{beispiel2}
\printshorthands
\printbibliography
\end{document}
Lesezeichen