# How to have a bibliography style like Google Scholar?

My goal is to achieve this Google Scholar style:

• Entries are ordered as type->title->author->year->publisher->URL
• Types are all caps (better: small caps), and in square brackets before titles
• Titles of any type are large and in boldface
• Only authors, years, publishers and URL are in the second line

# Problems

• How to show the type entry (book, article, artwork, unpublished)
• How to swap entries?
• How to make the author entry not showing family=X, given=Y?

# MWE

\documentclass{report}
\usepackage[url=false]{biblatex}
\addbibresource{test.bib}

\DeclareFieldFormat
[book,article,artwork,unpublished,website]
{title}{{\textbf{#1}}\newline}

\DeclareNameFormat
[book,article,artwork,unpublished,website]
{author}{{\small{#1}}}

\renewbibmacro*{title+author}{%
\printfield{title}%
\setunit*{\addcomma\space}%
\printnames{author}%
\setunit*{\addcomma\space}%
}

\begin{document}
\nocite{*}
\printbibliography
\end{document}


FYI: How to make bibliography tailored for non-academic readers?

• tex.stackexchange.com/a/13076/50146 is also about how the field contents are displayed, not only which fields. You would need to give more details about your desired style. (How are @incollections displayed, how @articles?) But at the moment your question comes down to: Please code the entire style for me. It is not unheard of that questions like these are answered on this site. But they are not particularly well suited to the Q&A format where ideally you would focus on one particular issue. – moewe Dec 16 '17 at 9:02
• Oh my god. Is there really a style like this? It looks imho rather horrible. – Ulrike Fischer Dec 16 '17 at 9:54
• Well at least there is now only one fontfamily. But you still have two weights, two font sizes and two shapes. You are not writing a titlepage of the 19th century but some bibliography entries, there is no need to shout. I would use neither bold, nor a larger font, only perhaps some italic for the title. – Ulrike Fischer Dec 16 '17 at 15:24
• @Marijn I don't see why a bib entry should shout. People who look at it are already interested enough. – Ulrike Fischer Dec 16 '17 at 17:54
• @UlrikeFischer when I first did my undergraduate dissertation, I didn't understand why the titles didn't stand out. I still don't understand it. For me it's a natural thing to think of. The titles are interesting, the authors are not (unfortunately) – Ooker Dec 16 '17 at 18:29

## 1 Answer

We can define a new bibliography driver and make all entry types use the same driver.

\documentclass{article}
\usepackage[style=authortitle]{biblatex}
\addbibresource{biblatex-examples.bib}

\renewcommand*{\newunitpunct}{\addspace\bibrangedash\space}
\DeclareFieldFormat{entrytype}{{\small{\textsc{\mkbibbrackets{#1}}}}}
\DeclareFieldFormat*{title}{\mkbibbold{#1}}
\DeclareNameAlias{sortname}{default}
\DeclareNameAlias{default}{family-given}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}

\DeclareBibliographyDriver{googlescholarlike}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\printfield{entrytype}%
\setunit{\addspace}\newblock
\usebibmacro{title}%
\printunit{\newline}\newblock
\usebibmacro{author/editor+others/translator+others}%
\newunit\newblock
\usebibmacro{date}%
\newunit\newblock
\printfield{publisher}%
\newunit\newblock
\iffieldundef{doi}
{\iffieldundef{eprint}
{\printfield{url}}
{\usebibmacro{eprint}}}
{\printfield{doi}}%
\newunit\newblock
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\newunit\newblock
\iftoggle{bbx:related}
{\usebibmacro{related:init}%
\usebibmacro{related}}
{}%
\usebibmacro{finentry}
}

\setlength{\bibitemsep}{.5\baselineskip}

\defbibenvironment{bibliography}
{\list
{}
{\setlength{\leftmargin}{0pt}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}

\makeatletter
\def\do#1{\DeclareBibliographyAlias{#1}{googlescholarlike}}
\abx@doentrytypes
\makeatother

\begin{document}
\nocite{sigfridsson,ctan,cicero,worman,nussbaum,baez/online}
\printbibliography
\end{document}


• Can the numbers be removed? – Ooker Dec 19 '17 at 15:51
• @Ooker Have a look at the edited answer, please. Of course there is no good way to cite the items any more. – moewe Dec 19 '17 at 15:59
• What do you mean in the last sentence? I don't understand it – Ooker Dec 20 '17 at 4:31
• @Ooker I mean to say that it is not clear at all what citations (in the text) should look like now. You haven't specified that and in the MWE \cite will produce numbers, but those are obviously useless now. – moewe Dec 20 '17 at 9:33
• @Ooker \DeclareFieldFormat{url}{\url{#1}} – moewe Dec 26 '17 at 12:45