von Gast » So 7. Apr 2019, 14:23
Hallo,
ich habe das Problem, dass eine Zeile im Literaturverzeichnis nicht ordentlich umgebrochen wird. Ich denke, es liegt an folgendem:
\setunit{\addcomma\space}%
tex:
\documentclass[ngerman]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[singlespacing]{setspace}
\usepackage{blindtext}
\usepackage[backend=biber, style=iso-authoryear, maxbibnames=3, shortnumeration]{biblatex}
\usepackage[
showframe,% Seitenlayout anzeigen
left=3cm,
right=2.5cm,
top=2.5cm,
bottom=2.5cm,
%includeheadfoot
]{geometry}
%sort names
\DeclareNameAlias{default}{given-family}
\DeclareNameAlias{sortname}{family-given/given-family}
\DeclareNameAlias{author}{sortname}
\DeclareNameAlias{editor}{sortname}
\DeclareNameAlias{translator}{sortname}
\DeclareDelimFormat{multinamedelim}{\addcomma\space}
\DeclareDelimFormat{finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\bibstring{and}\space}
\DeclareNameAlias[incollection]{editor}{default}
\makeatletter
\renewbibmacro*{bbx:editor}[1]{%
\ifboolexpr{
test \ifuseeditor
and
not test {\ifnameundef{editor}}
}
{\usebibmacro{bbx:savehash}%
\printnames{editor}%
\setunit{\addcomma\space}%
\usebibmacro{#1}%
\clearname{editor}}
{\global\undef\bbx@lasthash
\usebibmacro{labeltitle}}}%
\makeatother
\DefineBibliographyStrings{german}{%
andothers = {und andere},
urlseen = {Zugriff am:},
urlfrom = {Verfügbar unter:},
url = {Verfügbar unter:},
}
\DeclareFieldFormat*{pages}{\mkmlpageprefix[bookpagination]{#1}}
\renewcommand{\finentrypunct}{}
\urlstyle{same}
%add bib file
\addbibresource{sample.bib}
\begin{document}
test6 \cite{imgrund2014strat}
\printbibliography
\end{document}
bib:
@incollection{imgrund2014strat,
author = {Imgrund, Markus},
title = {Strategisches Krisenmanagement},
editor = {Peter Heimerl and Martin Tschandl},
booktitle = {Controlling, Finanzierung, Produktion, Marketing},
publisher = {facultas.wuv},
location = {Wien},
year = {2014},
pages = {143-178},
%chapter = {10},
isbn = {978-3-8252-4323-4},
}
Vielen Dank[/code]
Hallo,
ich habe das Problem, dass eine Zeile im Literaturverzeichnis nicht ordentlich umgebrochen wird. Ich denke, es liegt an folgendem:
[code]
\setunit{\addcomma\space}%
[/code]
tex:
[code]
\documentclass[ngerman]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[singlespacing]{setspace}
\usepackage{blindtext}
\usepackage[backend=biber, style=iso-authoryear, maxbibnames=3, shortnumeration]{biblatex}
\usepackage[
showframe,% Seitenlayout anzeigen
left=3cm,
right=2.5cm,
top=2.5cm,
bottom=2.5cm,
%includeheadfoot
]{geometry}
%sort names
\DeclareNameAlias{default}{given-family}
\DeclareNameAlias{sortname}{family-given/given-family}
\DeclareNameAlias{author}{sortname}
\DeclareNameAlias{editor}{sortname}
\DeclareNameAlias{translator}{sortname}
\DeclareDelimFormat{multinamedelim}{\addcomma\space}
\DeclareDelimFormat{finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\bibstring{and}\space}
\DeclareNameAlias[incollection]{editor}{default}
\makeatletter
\renewbibmacro*{bbx:editor}[1]{%
\ifboolexpr{
test \ifuseeditor
and
not test {\ifnameundef{editor}}
}
{\usebibmacro{bbx:savehash}%
\printnames{editor}%
\setunit{\addcomma\space}%
\usebibmacro{#1}%
\clearname{editor}}
{\global\undef\bbx@lasthash
\usebibmacro{labeltitle}}}%
\makeatother
\DefineBibliographyStrings{german}{%
andothers = {und andere},
urlseen = {Zugriff am:},
urlfrom = {Verfügbar unter:},
url = {Verfügbar unter:},
}
\DeclareFieldFormat*{pages}{\mkmlpageprefix[bookpagination]{#1}}
\renewcommand{\finentrypunct}{}
\urlstyle{same}
%add bib file
\addbibresource{sample.bib}
\begin{document}
test6 \cite{imgrund2014strat}
\printbibliography
\end{document}
[/code]
bib:
[code]
@incollection{imgrund2014strat,
author = {Imgrund, Markus},
title = {Strategisches Krisenmanagement},
editor = {Peter Heimerl and Martin Tschandl},
booktitle = {Controlling, Finanzierung, Produktion, Marketing},
publisher = {facultas.wuv},
location = {Wien},
year = {2014},
pages = {143-178},
%chapter = {10},
isbn = {978-3-8252-4323-4},
}
[/code]
Vielen Dank[/code]