3

I want the article entries to be formatted like this:

LASTNAME, Firstname: Title. In: Journal

Working example:

\documentclass{book}
\usepackage{a4wide}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{polyglossia}
\setmainlanguage[spelling=new,babelshorthands=true]{german}
\usepackage[autostyle]{csquotes}
\usepackage[style=authortitle-dw,
edsuper=true,
namefont=smallcaps,
useprefix=true,
ibidemfont=smallcaps,
idemfont=smallcaps,
idembibformat=dash,
shorthandibid=true,
backref=false,
backrefstyle=none,
hyperref=true,
isbn=false,
backend=biber,
citereset=chapter,
bibencoding=utf8]{biblatex}
\DeclareFieldFormat{pages}{#1}
\DeclareFieldFormat{page}{#1}
\DeclareNameAlias{sortname}{last-first}
\DeclareNameAlias{byeditor}{last-first}
\DefineBibliographyStrings{german}{
    and={/},
    page={},
    andothers = {{et\,al\adddot}},
    editor = {{ Hg\adddot }} ,
    editors = {{ Hg\adddot }}
}

%% bilbiography driver to display only shorttitle of refernced collection for incollection items
\DeclareBibliographyDriver{incollection}{%
    \usebibmacro{bibindex}%
    \usebibmacro{begentry}%
    \usebibmacro{author/translator+others}%
    \setunit{\labelnamepunct}\newblock
    \usebibmacro{title}%
    \newunit
    \printlist{language}%
    \newunit\newblock
    \usebibmacro{byauthor}%
    \setunit{\addperiod\space}\newblock
    \usebibmacro{in:}%
    \iffieldundef{crossref}
    {\usebibmacro{crossref:full}}
    {\usebibmacro{crossref:label}}
    \newunit\newblock
    \usebibmacro{chapter+pages}%
    \iffieldundef{crossref}
    {\usebibmacro{crossref:extrainfo}}
    {}
    \setunit{\bibpagerefpunct}\newblock
    \usebibmacro{pageref}%
    \usebibmacro{finentry}}

\newbibmacro{crossref:full}{%
    \usebibmacro{maintitle+booktitle}%
    \newunit\newblock
    \usebibmacro{event+venue+date}%
    \newunit\newblock
    \usebibmacro{byeditor+others}%
    \newunit\newblock
    \iffieldundef{maintitle}
    {\printfield{volume}%
        \printfield{part}}
    {}%
    \newunit
    \printfield{volumes}%
    \newunit\newblock
    \usebibmacro{series+number}%
    \newunit\newblock
    \printfield{note}%
    \newunit\newblock
    \printlist{organization}%
    \newunit
    \usebibmacro{publisher+location+date}}

\newbibmacro{crossref:label}{%
    \entrydata{\strfield{crossref}}
    {\DeclareNameAlias{labelname}{given-family}%
        \renewcommand*{\mkbibnamefamily}[1]{##1}%
        \renewcommand*{\mkbibnamegiven}[1]{##1}%
        \renewcommand*{\mkbibnameprefix}[1]{##1}%
        \renewcommand*{\mkbibnamesuffix}[1]{##1}%
        \printnames{labelname}%
        \setunit*{\addcomma\space}%
        \printfield[shorttitle]{labeltitle}}}

\newbibmacro{crossref:extrainfo}{%
    \newunit\newblock
    \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
    \newunit\newblock
    \usebibmacro{doi+eprint+url}%
    \newunit\newblock
    \usebibmacro{addendum+pubstate}}

\DeclareFieldFormat{pages}{#1}
\DeclareFieldFormat{page}{#1}
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{default}{family-given}
\DeclareNameAlias{byeditor}{family-given}
\DeclareNameAlias{bytranslator}{family-given}
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{urldate}{%
    (aufgerufen am %
    \thefield{urlday}\adddot %\addspace     %  addcomma works !!!
    \thefield{urlmonth}\adddot%\addspace%
    \thefield{urlyear}\isdot)}

% von Maltzahn should be printed von MALTZAHN in the bibliography
\renewcommand*{\mkbibnameprefix}{\mkbibnamegiven}

% all authors should be separated by slashes in bib and cites
\renewcommand*{\bibmultinamedelim}{\addnbspace\slash\space}
\renewcommand*{\bibfinalnamedelim}{\bibmultinamedelim}
\renewcommand*{\citemultinamedelim}{\bibmultinamedelim}
\renewcommand*{\citefinalnamedelim}{\citemultinamedelim}

% in fussnoten komma hinter dem autor
\renewcommand*{\citenamepunct}{\addcomma\space}
\renewcommand*{\locationpublisherpunct}{\adddot\space}

% the separator before the location should be a dot, not a comma
\renewbibmacro*{publisher+location+date}{%
    \setunit{\addperiod\space}%
    \printlist{location}%
    \iflistundef{publisher}
    {\setunit*{\space}}
    {\setunit*{\addcolon\space}}%
    \printlist{publisher}%
    \setunit*{\addcomma\space}%
    \usebibmacro{date}%
    \newunit}

\DefineBibliographyStrings{german}{
    andothers = {{et\,al\adddot}},
    editor = {{Hg\adddot}},
    editors = {{Hg\adddot}} 
}

\usepackage{filecontents}
\begin{filecontents}{file.bib}
@book{b2,
    year = {2014},
    title = {Redefreiheit: Öffentliche Debatten der Bevölkerung im Herbst 1989},
    address = {Leipzig},
    edition = {1. Aufl.},
    publisher = {Leipziger Uni-Vlg},
    isbn = {386583888X},
    editor = {Ahbe, Thomas and Stiehler, Volker and Hofmann, Michael},
    shorttitle = {Redefreiheit}
}

@incollection{bauer,
    xref = {schwobel},
    author = {Bauer, Gisa},
    title = {Transformationen des Religiösen: Die historisch-materialistische Geschichtsschreibung in der DDR als Heilsgeschichte},
    volume = {39},
    series = {VWGTh},
    editor = {Schwöbel, Christoph},
    booktitle = {Geschichte und Gott},
    address = {Leipzig},
    shorttitle = {Transformationen}
}

@book{schwobel,
    title = {Geschichte und Gott: XV. Europäischer Kongress für Theologie},
    address = {Leipzig},
    volume = {39},
    series = {VWGTh},
    editor = {Schwöbel, Christoph},
    shorttitle = {Geschichte}
}
@book{bulischop.2006,
    author = {Bulisch, Jens},
    year = {2006},
    title = {Evangelische Presse in der DDR},
    address = {Göttingen},
    volume = {43},
    publisher = {Vandenhoeck und Ruprecht},
    isbn = {3525557442},
    series = {AKZG},
    shorttitle = {Presse}
}
@article{wulf,
    author = {Wulf, Marion},
    year = {1998},
    title = {Wirn},
    pages = {4},
    pagination = {page},
    volume = {53},
    number = {40},
    journal = {MKZ},
    shorttitle = {Umkehr}
}
\end{filecontents}

\addbibresource{file.bib}
\begin{document}
    text \footcite{bulischop.2006} text. \footcite{wulf}
    text \footcite{bauer} haha. 
    \printbibliography
\end{document}

In the example the @incollection articles are already formatted correctly, while the @article entries are not.

enter image description here

6

You can do the following:

\renewbibmacro*{in:}{%
    \setunit{\addperiod\space}
    \printtext{\bibstring{in}\intitlepunct}}

enter image description here

  • Alan, that would indeed be a strange requirement. But, if I understood the question well, it is the opposite that the OP wants. That is, to have a capitalized "In" for @articles, which would require to change the comma for a period. – gusbrs Oct 8 '17 at 19:33
  • You got it the wrong way around. I want dot followed by uppercase everywhere. See the title: “. In: JOURNAL” instead of “, in: JOURNAL” – Philipp Oct 8 '17 at 19:33
  • @Philipp Sorry I misread the question. I'll delete and rewrite. – Alan Munn Oct 8 '17 at 19:38
  • @Philipp Now it does what you want, I think. – Alan Munn Oct 8 '17 at 19:45
  • @Philipp, I provided an answer while Alan edited his, but this answer is more general. I recommend you go with this one. (+1) – gusbrs Oct 8 '17 at 19:56
1

You could patch the relevant part of the bibdriver for article with:

\usepackage{xpatch}
\xpatchbibdriver{article}{%
  \printfield{version}%
  \newunit\newblock
  \usebibmacro{in:}%
 }%
 {%
  \printfield{version}%
  \setunit{\addperiod\space}\newblock
  \usebibmacro{in:}%
}{}{}

That would work for articles only though, not for other entrytypes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.