0

I would like the institution to be shown between author and title. How do I have to change my code in order to achieve that?

\begin{filecontents}{\jobname.bib}
        @online{musk,
            author       = {Elon Musk},
            title        = {Tesla Model X},
            url          = {https://www.tesla.com/modelx?redirect=no},
            date         = {2017-07-04},
            organization = {Tesla},
            urldate      = {2018-10-16},
        }
    \end{filecontents}



\documentclass{article}
\usepackage[style=authortitle,]{biblatex}
\addbibresource{\jobname.bib}
\DeclareListFormat{organization}{%
    \usebibmacro{list:delim}{#1}%
    \mkbibemph{#1}\isdot
    \usebibmacro{list:andothers}}


\begin{document}
    Let's cite! \footcite{musk}
    \printbibliography
\end{document}
2

You can redefine online's bibdriver to that purpose:

\begin{filecontents}{\jobname.bib}
  @online{musk,
    author       = {Elon Musk},
    title        = {Tesla Model X},
    url          = {https://www.tesla.com/modelx?redirect=no},
    date         = {2017-07-04},
    organization = {Tesla},
    urldate      = {2018-10-16},
  }
\end{filecontents}

\documentclass{article}
\usepackage[style=authortitle]{biblatex}
\addbibresource{\jobname.bib}
\DeclareListFormat{organization}{%
  \usebibmacro{list:delim}{#1}%
  \mkbibemph{#1}\isdot
  \usebibmacro{list:andothers}}

\DeclareBibliographyDriver{online}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\printdelim{nametitledelim}}\newblock
  \printlist{organization}%
  \newunit\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{version}%
  \newunit
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{date}%
  \newunit\newblock
  \iftoggle{bbx:eprint}
    {\usebibmacro{eprint}}
    {}%
  \newunit\newblock
  \usebibmacro{url+urldate}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \newunit\newblock
  \iftoggle{bbx:related}
    {\usebibmacro{related:init}%
     \usebibmacro{related}}
    {}%
  \usebibmacro{finentry}}

\begin{document}
Let's cite! \footcite{musk}
\printbibliography
\end{document}

enter image description here

3
  • 1
    No xpatch? I'm disappointed ;-) – moewe Dec 10 '18 at 20:36
  • @moewe :-) Well, I've considered the pros and cons according to some bloke's advice here on the site. Would you say he is reliable? – gusbrs Dec 10 '18 at 20:41
  • 1
    I wouldn't trust him. Seems to give shady advice. – moewe Dec 10 '18 at 20:49

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.