von IrenaSekuta » Mi 25. Aug 2010, 15:22
Anscheinend habe ich mich zu früh gefreut.
Anbei das Minimalbeispiel:
\documentclass{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{filecontents}
% Eigenen Zitierstil definieren
\begin{filecontents}{Zitierstil.cbx}
% $Id: Zitierstil.cbx, v 0.1 2010/08/25 08:49:00 $
\ProvidesFile{Zitierstil.cbx}
[\abx@cbxid $Id: Zitierstil.cbx, v 0.1 2010/08/25 08:49:00 $]
\DeclareFieldFormat{citekey}{#1}
\newbibmacro*{cite}{%
\printtext[bibhyperref]{\printfield[citekey]{entrykey}}}
\DeclareCiteCommand{\cite}
{\printtext{\addslash}%
\usebibmacro{prenote}}
{\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}%
\printtext{\addslash}}
\endinput
\end{filecontents}
% Bibtex-Datei erzeugen
\begin{filecontents}{Literatur.bib}
@TECHREPORT{99,
author = {{Hans Mustermann}},
title = {Titel zu Hans Mustermann},
institution = {Test GmbH},
year = {1973-11-05},
number = {A99},
sortkey = {0099},
shorthand = {0099}}
@TECHREPORT{4108,
author = {{Mark Bertold}},
title = {Titel zu Gabi Golata},
institution = {Neuer Test AG},
year = {1973-08-08},
number = {A4108},
sortkey = {4108},
shorthand = {4108}}
@TECHREPORT{108,
author = {{Gabi Opla}},
title = {Titel zu Hans Mustermann},
institution = {Test GmbH},
year = {1973-11-05},
number = {A108},
sortkey = {0108},
shorthand = {0108}}
@TECHREPORT{7009,
author = {{Rüdiger Hins}},
title = {Titel zu Rüdger Hins},
institution = {Egal},
year = {1973-07-03},
number = {A7009},
sortkey = {7009},
shorthand = {7009}}
@TECHREPORT{44,
author = {{Vorname Nachname}},
title = {Titel zu 44},
institution = {Egal},
year = {1973-07-03},
number = {A44},
sortkey = {0044},
shorthand = {0044}}
\end{filecontents}
\usepackage[%
bibstyle=draft, % Aussehen des Literaturverzeichnisses
citestyle=Zitierstil, % Zitierstil
natbib = true,%
sortcites = true,
sorting = debug,%
sortcase=true,
block=par, % Einträge im LitVerz durch Absätze trennen
hyperref = auto, % Kompabilität mit Hyperref-Paket
]{biblatex}
% Literaturverzeichnis angeben
\bibliography{Literatur}
\begin{document}
Hier steht nun \cite[Anhang 1.2]{7009} ein sinnloser Satz \cite{99}, der nichts anderes \cite{4108} bewirken soll als \cite{44} ein paar Zitate \cite{108} zu demonstrieren.
% Literatur ausgeben
\printbibliography % Für Biblatex
\end{document}
Leider werden die Einträge im Literaturverzeichnis wie folgt sortiert: 108,4108,44,7009,99 statt 44, 99, 108, 4108, 7008
Es wird doch nach "sortkey" sortiert? Hier macht es keinen Unterschied, ob ich "0044" statt "44" eingebe.
Gruß,
Irena
Anscheinend habe ich mich zu früh gefreut.
Anbei das Minimalbeispiel:
[code]\documentclass{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{filecontents}
% Eigenen Zitierstil definieren
\begin{filecontents}{Zitierstil.cbx}
% $Id: Zitierstil.cbx, v 0.1 2010/08/25 08:49:00 $
\ProvidesFile{Zitierstil.cbx}
[\abx@cbxid $Id: Zitierstil.cbx, v 0.1 2010/08/25 08:49:00 $]
\DeclareFieldFormat{citekey}{#1}
\newbibmacro*{cite}{%
\printtext[bibhyperref]{\printfield[citekey]{entrykey}}}
\DeclareCiteCommand{\cite}
{\printtext{\addslash}%
\usebibmacro{prenote}}
{\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}%
\printtext{\addslash}}
\endinput
\end{filecontents}
% Bibtex-Datei erzeugen
\begin{filecontents}{Literatur.bib}
@TECHREPORT{99,
author = {{Hans Mustermann}},
title = {Titel zu Hans Mustermann},
institution = {Test GmbH},
year = {1973-11-05},
number = {A99},
sortkey = {0099},
shorthand = {0099}}
@TECHREPORT{4108,
author = {{Mark Bertold}},
title = {Titel zu Gabi Golata},
institution = {Neuer Test AG},
year = {1973-08-08},
number = {A4108},
sortkey = {4108},
shorthand = {4108}}
@TECHREPORT{108,
author = {{Gabi Opla}},
title = {Titel zu Hans Mustermann},
institution = {Test GmbH},
year = {1973-11-05},
number = {A108},
sortkey = {0108},
shorthand = {0108}}
@TECHREPORT{7009,
author = {{Rüdiger Hins}},
title = {Titel zu Rüdger Hins},
institution = {Egal},
year = {1973-07-03},
number = {A7009},
sortkey = {7009},
shorthand = {7009}}
@TECHREPORT{44,
author = {{Vorname Nachname}},
title = {Titel zu 44},
institution = {Egal},
year = {1973-07-03},
number = {A44},
sortkey = {0044},
shorthand = {0044}}
\end{filecontents}
\usepackage[%
bibstyle=draft, % Aussehen des Literaturverzeichnisses
citestyle=Zitierstil, % Zitierstil
natbib = true,%
sortcites = true,
sorting = debug,%
sortcase=true,
block=par, % Einträge im LitVerz durch Absätze trennen
hyperref = auto, % Kompabilität mit Hyperref-Paket
]{biblatex}
% Literaturverzeichnis angeben
\bibliography{Literatur}
\begin{document}
Hier steht nun \cite[Anhang 1.2]{7009} ein sinnloser Satz \cite{99}, der nichts anderes \cite{4108} bewirken soll als \cite{44} ein paar Zitate \cite{108} zu demonstrieren.
% Literatur ausgeben
\printbibliography % Für Biblatex
\end{document}[/code]
Leider werden die Einträge im Literaturverzeichnis wie folgt sortiert: 108,4108,44,7009,99 statt 44, 99, 108, 4108, 7008
Es wird doch nach "sortkey" sortiert? Hier macht es keinen Unterschied, ob ich "0044" statt "44" eingebe.
Gruß,
Irena