Seite 1 von 2

Anpassung des Literaturverzeichnisses

Verfasst: Fr 30. Mär 2018, 13:02
von Harry
EDIT2: Minibeispiel geht nun. Sorry für die Länge. Aber ich weiß nicht welche meiner durchgeführten Änderungen benötigt werden.

Hallo Leute,

ich hab folgendes Problem.

Ich habe das Literaturverzeichnis mit biblatex erstellt und ein paar Anpassungen durchgeführt, siehe Minibeispiel.

Ich habe 2 Probleme statt Aufl. und Kap. hätte ich gerne die Wörter Auflage und Kapitel dort stehen.

Zudem wird bei in Proceedings die Reihenfolge: Title, Booktitle, Volume, Series angezeigt. Ich brauche aber die Reihenfolge Title, Booktitle, Series, Volume.
\begin{filecontents}{\jobname.bib}
\@InProceedings{LM,
	author =    {Steven A. Lippman and John J. McCall},
	title =     {The economics of uncertainty: Selected topics and probabilistic methods},
	booktitle = {Handbook of Mathematical Economics},
	year =      {1981},
	editor =    {K. J. Arrow and M. D. Intriligator},
	volume =    {1},
	pages =     {211-284},
	publisher = {North-Holland},
	chapter =   {8}
}
\@InProceedings{MS,
	author =    {Esther Moh and Günter Schmidt},
	title =     {Empirical Analysis of an Online Algorithm for Multiple Trading Problems},
	booktitle = {Modelling, Computation and Optimization in Information Systems and Management Sciences},
	year =      {2008},
	editor =    {H.A. {Le Thi} and P. Bouvry and T. Pham Dinh},
	series =    {Communications in Computer and Information Science},
	volume =    {14},
	pages =     {293-302},
	address =   {Berlin Heidelberg},
	publisher = {Springer}
}
\@Book{Bou,
	title =     {Wahrscheinlichkeitsrechnung und schließende Statistik},
	publisher = {Springer},
	year =      {2013},
	author =    {Günther Bourier},
	address =   {Wiesbaden},
	edition =   {8}
}
\end{filecontents}
\RequirePackage[patch]{kvoptions} 
\documentclass[]{scrbook}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[backend=biber,style=authoryear, maxnames=2,maxbibnames=8,dashed = false,uniquelist=false,uniquename=false,firstinits=true,]{biblatex} 
\addbibresource{\jobname.bib}
% Reihenfolge der Daten im Literaturverzeichnis
\renewbibmacro*{journal+issuetitle}{% 
	\usebibmacro{journal}% 
	\setunit*{\addspace}% 
	\iffieldundef{series} 
	{} 
	{\newunit 
		\printfield{series}}% }% 
		\setunit{\addcomma\addspace}
	\printfield{volume}% 
	\iffieldundef{number} 
	{} 
	{\mkbibparens{\printfield{number}}}% 
	\setunit{\addcomma\space}% 
	\printfield{eid}% 
	\setunit{\addspace}% 
	\usebibmacro{issue+date}% 
	\setunit{\addcolon\space}% 
	\usebibmacro{issue}% 
	\newunit}
% Reihenfolge für Bücher
\renewbibmacro*{publisher+location+date}{%
	\iflistundef{publisher}
	{\setunit*{\addcomma\space}}
	{\setunit*{\addcolon\space}}%
	 \printlist{publisher}%
	 	\setunit*{\addcomma\space}%
 	  \printlist{location}%
	\setunit*{\addcomma\space}%
	\usebibmacro{date}%
	\newunit}
\begin{document}
Beispieltext  \cite{MS}, \cite{Bou}, \cite{LM}
\printbibliography
\end{document}
[\code]

Verfasst: Fr 30. Mär 2018, 13:15
von Gast
Du hast \ vor den Eintragstypen, die gehören da nicht hin.

Du kannst entweder mit der Option abbreviate=false alle Strings auf ihre Langform umschalten, oder nur Aufl. und Kap. ändern wie unten gezeigt.

Den Band einer Reihe gibt man als number an und nicht als volume. Die Faustregel bei Büchern lautet maintitle+volume und series+number. Das hat auch Auswirkungen auf das Handbookk of Economics
\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear, maxnames=2, maxbibnames=8,dashed = false, uniquelist=false, uniquename=false, giveninits=true]{biblatex}

\DefineBibliographyStrings{german}{
  edition          = {Auf\noligature lage},
  chapter          = {Kapitel},
}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@InProceedings{LM,
   author =    {Steven A. Lippman and John J. McCall},
   title =     {The economics of uncertainty: Selected topics and probabilistic methods},
   maintitle = {Handbook of Mathematical Economics},
   year =      {1981},
   editor =    {K. J. Arrow and M. D. Intriligator},
   volume =    {1},
   pages =     {211-284},
   publisher = {North-Holland},
   chapter =   {8}
}
@InProceedings{MS,
   author =    {Esther Mohr and Günter Schmidt},
   title =     {Empirical Analysis of an Online Algorithm for Multiple Trading Problems},
   booktitle = {Modelling, Computation and Optimization in Information Systems and Management Sciences},
   year =      {2008},
   editor =    {H.A. {Le Thi} and P. Bouvry and T. Pham Dinh},
   series =    {Communications in Computer and Information Science},
   number =    {14},
   pages =     {293-302},
   address =   {Berlin Heidelberg},
   publisher = {Springer}
}
@Book{Bou,
   title =     {Wahrscheinlichkeitsrechnung und schließende Statistik},
   publisher = {Springer},
   year =      {2013},
   author =    {Günther Bourier},
   address =   {Wiesbaden},
   edition =   {8}
}
\end{filecontents}

\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

% Reihenfolge der Daten im Literaturverzeichnis
\renewbibmacro*{journal+issuetitle}{%
   \usebibmacro{journal}%
   \setunit*{\addspace}%
%   \iffieldundef{series}
%   {}
%   {\newunit
%      \printfield{series}}% }%
      \setunit{\addcomma\addspace}
   \printfield{volume}%
   \iffieldundef{number}
   {}
   {\mkbibparens{\printfield{number}}}%
   \setunit{\addcomma\space}%
   \printfield{eid}%
   \setunit{\addspace}%
   \usebibmacro{issue+date}%
   \setunit{\addcolon\space}%
   \usebibmacro{issue}%
   \newunit}


\renewbibmacro*{publisher+location+date}{%
  \printlist{publisher}%
  \setunit*{\addcomma\space}%
  \printlist{location}%
  \setunit*{\addcomma\space}%
  \usebibmacro{date}%
  \newunit}

\begin{document}
Beispieltext  \cite{MS,Bou,LM}
\printbibliography
\end{document}

Verfasst: Fr 30. Mär 2018, 13:42
von Harry
Hallo, schon Mal vielen Dank.

Jetzt steht dort allerdings Series und Number aneinander und nicht getrennt von einem "," und nicht eingeleitet durch eine Bd: oder Volume:

Wenn ich allerdings mit \addcomma ein komma einfüge, erscheint es auch bei normalen Artikeln zwischen Volume und Number und gerade, da soll es das eben nicht geben.

Verfasst: Fr 30. Mär 2018, 13:44
von Gast
Was ist denn die exakte gewünschte Ausgabe?

Den Code in journal+issuetitle könnte man auch noch etwas anpassen. Was ist den da die exakt gewünschte Ausgabe?

Verfasst: Fr 30. Mär 2018, 13:58
von Harry
Mohr, E. und Schmidt, G. (2008a). Empirical Analysis of an Online Algorithm
for Multiple Trading Problems. In: Modelling, Computation and Optimization in
Information Systems and Management Sciences. Hrsg. von H. Le Thi, P. Bouvry
und T. P. Dinh. Communications in Computer and Information Science, Vol. 14. Springer, Berlin Heidelberg, S. 293–302.

Allerdings soll für article gelten.

Mohr, E. und Schmidt, G. (2013). How much is it worth to know the future in online conversion problems? Discrete Applied Mathematics, 161(10), S. 1546–1555.

Verfasst: Fr 30. Mär 2018, 14:02
von Gast
Was ist mit
\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear, maxnames=2, maxbibnames=8,dashed = false, uniquelist=false, uniquename=false, giveninits=true]{biblatex}

\DefineBibliographyStrings{german}{
  edition          = {Auf\noligature lage},
  chapter          = {Kapitel},
}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@InProceedings{LM,
   author =    {Steven A. Lippman and John J. McCall},
   title =     {The economics of uncertainty: Selected topics and probabilistic methods},
   maintitle = {Handbook of Mathematical Economics},
   year =      {1981},
   editor =    {K. J. Arrow and M. D. Intriligator},
   volume =    {1},
   pages =     {211-284},
   publisher = {North-Holland},
   chapter =   {8}
}
@InProceedings{MS,
   author =    {Esther Mohr and Günter Schmidt},
   title =     {Empirical Analysis of an Online Algorithm for Multiple Trading Problems},
   booktitle = {Modelling, Computation and Optimization in Information Systems and Management Sciences},
   year =      {2008},
   editor =    {H.A. {Le Thi} and P. Bouvry and T. Pham Dinh},
   series =    {Communications in Computer and Information Science},
   number =    {14},
   pages =     {293-302},
   address =   {Berlin Heidelberg},
   publisher = {Springer}
}
@Book{Bou,
   title =     {Wahrscheinlichkeitsrechnung und schließende Statistik},
   publisher = {Springer},
   year =      {2013},
   author =    {Günther Bourier},
   address =   {Wiesbaden},
   edition =   {8}
}
\end{filecontents}

\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\addcomma\space}%
  \iffieldundef{series}
    {}
    {\newunit
     \printfield{series}%
     \setunit{\addcomma\space}}%
  \usebibmacro{volume+number+eid}%
  \setunit{\addspace}%
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit}

\DeclareFieldFormat[article,periodical]{number}{\mkbibparens{#1}}
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}

\DeclareFieldFormat{number}{\bibstring{volume}~#1}% argh!
\renewbibmacro*{series+number}{%
  \printfield{series}%
  \setunit*{\addcomma\space}%
  \printfield{number}%
  \newunit}

\renewbibmacro*{publisher+location+date}{%
  \printlist{publisher}%
  \setunit*{\addcomma\space}%
  \printlist{location}%
  \setunit*{\addcomma\space}%
  \usebibmacro{date}%
  \newunit}

\begin{document}
Beispieltext  \cite{MS,Bou,LM,sigfridsson}
\printbibliography
\end{document}

Verfasst: Fr 30. Mär 2018, 14:18
von Harry
Sorry eine letzte Änderung.

geht statt ". Hrsg. von" auch ", hrsg. von"?

Verfasst: Fr 30. Mär 2018, 14:30
von Gast
\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear, maxnames=2, maxbibnames=8, dashed = false, uniquelist=false, uniquename=false, giveninits=true]{biblatex}

\DefineBibliographyStrings{german}{
  edition          = {Auf\noligature lage},
  chapter          = {Kapitel},
}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@InProceedings{LM,
   author =    {Steven A. Lippman and John J. McCall},
   title =     {The economics of uncertainty: Selected topics and probabilistic methods},
   maintitle = {Handbook of Mathematical Economics},
   year =      {1981},
   editor =    {K. J. Arrow and M. D. Intriligator},
   volume =    {1},
   pages =     {211-284},
   publisher = {North-Holland},
   chapter =   {8}
}
@InProceedings{MS,
   author =    {Esther Mohr and Günter Schmidt},
   title =     {Empirical Analysis of an Online Algorithm for Multiple Trading Problems},
   booktitle = {Modelling, Computation and Optimization in Information Systems and Management Sciences},
   year =      {2008},
   editor =    {H.A. {Le Thi} and P. Bouvry and T. Pham Dinh},
   series =    {Communications in Computer and Information Science},
   number =    {14},
   pages =     {293-302},
   address =   {Berlin Heidelberg},
   publisher = {Springer}
}
@Book{Bou,
   title =     {Wahrscheinlichkeitsrechnung und schließende Statistik},
   publisher = {Springer},
   year =      {2013},
   author =    {Günther Bourier},
   address =   {Wiesbaden},
   edition =   {8}
}
\end{filecontents}

\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\addcomma\space}%
  \iffieldundef{series}
    {}
    {\newunit
     \printfield{series}%
     \setunit{\addcomma\space}}%
  \usebibmacro{volume+number+eid}%
  \setunit{\addspace}%
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit}

\DeclareFieldFormat[article,periodical]{number}{\mkbibparens{#1}}
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}

\DeclareFieldFormat{number}{\bibstring{volume}~#1}% argh!
\renewbibmacro*{series+number}{%
  \printfield{series}%
  \setunit*{\addcomma\space}%
  \printfield{number}%
  \newunit}

\renewbibmacro*{publisher+location+date}{%
  \printlist{publisher}%
  \setunit*{\addcomma\space}%
  \printlist{location}%
  \setunit*{\addcomma\space}%
  \usebibmacro{date}%
  \newunit}

\usepackage{xpatch}
\newcommand*{\commaforbyeditor}[1]{%
  \xpatchbibdriver{#1}
    {\newunit\newblock
     \usebibmacro{byeditor+others}}
    {\setunit{\addcomma\space}%
     \usebibmacro{byeditor+others}}
    {}{\typeout{failed to patch comma before byeditor for #1}}}
\forcsvlist{\commaforbyeditor}{book,inbook,collection,incollection,proceedings,inproceedings}

\begin{document}
Beispieltext  \cite{MS,Bou,LM,sigfridsson}
\printbibliography
\end{document}

Verfasst: Fr 30. Mär 2018, 14:35
von Harry
Super vielen vielen Dank.

Ich wünsche dir sehr frohe Ostern!

Verfasst: Do 5. Jul 2018, 06:28
von Harry
Hallo

Leider muss ich diesen alten Thread reaktivieren. Weil mir noch Probleme auffallen die mir damals entgangen sind.


Zwischen title und Journal ist ein Punkt, da benötige ich jedoch ein ,.

Dasselbe gilt für nach Buchtitel. Und nach x. Auflage. Siehe Minibeispiele.
\documentclass[ngerman]{scrartcl} 
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage{babel} 
\usepackage{csquotes} 
\usepackage[backend=biber,style=authoryear, maxnames=2, maxbibnames=8, dashed = false, uniquelist=false, uniquename=false, giveninits=true]{biblatex} 

\DefineBibliographyStrings{german}{ 
	edition          = {Auf\noligature lage}, 
	chapter          = {Kapitel}, 
} 

\usepackage{filecontents} 
\begin{filecontents}{\jobname.bib} 
	@InProceedings{LM, 
		author =    {Steven A. Lippman and John J. McCall}, 
		title =     {The economics of uncertainty: Selected topics and probabilistic methods}, 
		maintitle = {Handbook of Mathematical Economics}, 
		year =      {1981}, 
		editor =    {K. J. Arrow and M. D. Intriligator}, 
		volume =    {1}, 
		pages =     {211-284}, 
		publisher = {North-Holland}, 
		chapter =   {8} 
	} 
	@InProceedings{MS, 
		author =    {Esther Mohr and Günter Schmidt}, 
		title =     {Empirical Analysis of an Online Algorithm for Multiple Trading Problems}, 
		booktitle = {Modelling, Computation and Optimization in Information Systems and Management Sciences}, 
		year =      {2008}, 
		editor =    {H.A. {Le Thi} and P. Bouvry and T. Pham Dinh}, 
		series =    {Communications in Computer and Information Science}, 
		number =    {14}, 
		pages =     {293-302}, 
		address =   {Berlin Heidelberg}, 
		publisher = {Springer} 
	} 
	@Book{Bou, 
		title =     {Wahrscheinlichkeitsrechnung und schließende Statistik}, 
		publisher = {Springer}, 
		year =      {2013}, 
		author =    {Günther Bourier}, 
		address =   {Wiesbaden}, 
		edition =   {8} 
	} 
\end{filecontents} 
\addbibresource{\jobname.bib} 
\addbibresource{biblatex-examples.bib} 

\usepackage{xpatch} 
\newcommand*{\commaforbyeditor}[1]{% 
	\xpatchbibdriver{#1} 
	{\newunit\newblock 
		\usebibmacro{byeditor+others}} 
	{\setunit{\addcomma\space}% 
		\usebibmacro{byeditor+others}} 
	{}{\typeout{failed to patch comma before byeditor for #1}}} 
\forcsvlist{\commaforbyeditor}{book,inbook,collection,incollection,proceedings,inproceedings} 

\DefineBibliographyStrings{german}{ 
	edition          = {Auf\noligature lage}, 
	chapter          = {Kapitel}, 
} 
\DeclareNameAlias{sortname}{last-first}

%Komma statt Punkt
%\renewcommand*{\newunitpunct}{\addcomma\space}    

%Kein In: im Literaturverzeichnis
\renewbibmacro{in:}{%
	\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}
%
%\renewbibmacro{kap.}{%
%	\ifentrytype{inproceedings}{Kapitel}{\printtext{\bibstring{kap}\intitlepunct}}}
%% Kein Hrsg:
%\renewbibmacro{in:}{%
%	\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}

%\renewbibmacro{in:}{%
%	\ifentrytype{inproceedings}{}{\printtext{\bibstring{in}\intitlepunct}}}

% Keine Anführungszeichen
\DeclareFieldFormat[article]{title}{{#1}}%<------
\DeclareFieldFormat[inproceedings]{title}{{#1}}%<------
\DeclareFieldFormat[thesis]{title}{{#1}}%<------

% Reihenfolge der Daten im Literaturverzeichnis
\renewbibmacro*{journal+issuetitle}{% 
	\usebibmacro{journal}% 
	\setunit*{\addspace}% 
%	\iffieldundef{series} 
%	{} 
%	{\newunit 
%		\printfield{series}}% }% 
		\setunit{\addcomma\addspace}
	\printfield{volume}% 
	\iffieldundef{number} 
	{} 
	{\mkbibparens{\printfield{number}}}% 
	\setunit{\addcomma\space}% 
	\printfield{eid}% 
	\setunit{\addspace}% 
	\usebibmacro{issue+date}% 
	\setunit{\addcolon\space}% 
	\usebibmacro{issue}% 
	\newunit}

% Reihenfolge für Bücher
\renewbibmacro*{publisher+location+date}{%
	\iflistundef{publisher}
	{\setunit*{\addcomma\space}}
	{\setunit*{\addcolon\space}}%
	 \printlist{publisher}%
	 	\setunit*{\addcomma\space}%
 	  \printlist{location}%
	\setunit*{\addcomma\space}%
	\usebibmacro{date}%
	\newunit}

% Dokumentenanfang
\begin{document}

Beispieltext  \cite{MS,Bou,LM} 
\printbibliography 

\end{document}