1

I need to cite something for school in a very specific style. In the Bibliography it should appear as:

SURNAME, Name: Title. Subtitle. (X. Edition). Place: Publisher Year.

I already have it down to

SURNAME, Name, Title. Xth Edition. Place: Publisher, Year.

What needs to change is that

  1. there should be a colon after the name,
  2. the edition number should be in round brackets and
  3. preferably the title shouldn't be in italics (although that isn't necessary)

In the footnote it should appear as:

Surname, Name: Title

I already have:

SURNAME, Title

What needs to change is that

  1. the Surname shouldn't be capitalised
  2. and it's missing the first name of the author,
  3. as well as a colon before the title

I have used:

\renewcommand{\mkbibnamelast}[1]{\textsc{#1}} 
\DeclareNameAlias{sortname}{family-given} 
\DeclareNameAlias{default}{family-given}

to capitalise the Surname (although I only want that in the Bibliography) and switch first and last name of the authors. I am using biblatex with BibTeX backend and the style authortitle.

In full

\documentclass[12pt]{article}
\usepackage[backend=bibtex, style=authortitle]{biblatex}
\renewcommand{\mkbibnamelast}[1]{\textsc{#1}}
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{default}{family-given}
\addbibresource{\jobname.bib}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{key,
  author = {last, first},
  year = {2001},
  title = {Title},
  publisher = {Publisher},
  edition = 3,
  address = {a},
}
\end{filecontents}

\begin{document}
\footcite[][15]{key}
\nocite{*}
\printbibliography
\end{document}
16
  • 2
    Welcome to TeX.SE! You've set both the biblatex and the natbib tags: Do you use the biblatex package, or do you use the natbib citation management package? Please advise. Also, should surnames be capitalized in the citation call-outs as well. And, should there be a space, a comma, or some other punctuation mark between "Publisher" and "Year". Finally, what about other entry types, say, @article or @inproceedings?
    – Mico
    Commented Mar 18, 2018 at 10:23
  • Currently I'm using natbib, but I heard there's better customisation options in biblatex and I'm happy to switch. This specific style of citation needs to be in the footnotesThere should not be any punctuation betwen publisher and Year, but there should be a . at the very end. My bad. This applies only for @book, which is 90% of what I'll be citing, but the other entry types don't really fill my requirements either Commented Mar 18, 2018 at 10:25
  • 1
    Do please provide (more) information about how entries other than those of type @book should be formatted. And, do state how surnames should be formatted in citation call-outs -- assuming that some kind of authoryear-style citation format is called for.
    – Mico
    Commented Mar 18, 2018 at 10:25
  • @articles should be formatted as: SURNAME, Name: Title. In:(Where it was published).Year,pages. I think that covers the things I need, as I very much doubt I'll be using @inproceedings in my technical work. I am not a native speaker, could you explain, what a citation call out is? (Is it the one in the footnote, the one in the text or the one at the end?) Commented Mar 18, 2018 at 10:30
  • 1
    You could start with biblatex's style=numeric. Have a look at tex.stackexchange.com/q/13509/35864, tex.stackexchange.com/q/5091/35864, tex.stackexchange.com/q/154751/35864 if you have never worked with biblatex and need help to get started. A few things will have to be tweaked, but at least the name thing should be easy: tex.stackexchange.com/q/298630/35864
    – moewe
    Commented Mar 18, 2018 at 10:54

1 Answer 1

2

If at all possible you should look into using Biber instead of BibTeX. All you need to do with a modern TeX distribution is to run Biber instead of BibTeX, if you use an editor to compile things for you, have a look at Biblatex with Biber: Configuring my editor to avoid undefined citations.

The necessary changes can be found in the code below with a short note on what they do. Most of this should already be explained in more details elsewhere on this site.

\documentclass[12pt]{article}
\usepackage[backend=biber, style=authortitle]{biblatex}

\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{default}{family-given}

% family, given also in citations
\DeclareNameAlias{labelname}{family-given}

% Small caps only in bibliography
\AtBeginBibliography{\renewcommand*{\mkbibnamefamily}{\textsc}}

% colon
\DeclareDelimFormat*{nametitledelim}{\addcolon\space}
\DeclareDelimFormat[textcite]{nametitledelim}{\addspace}

% edition in round brackets
\DeclareFieldFormat{edition}{%
  \mkbibparens{%
    \ifinteger{#1}
      {\mkbibordedition{#1}~\bibstring{edition}}
      {#1\isdot}}}

% plain titles
\DeclareFieldFormat*{title}{#1}

\addbibresource{\jobname.bib}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{key,
  author    = {Anne Elk},
  year      = {2001},
  title     = {On the Theory of Brontosauruses},
  publisher = {Publisher},
  edition   = 3,
  address   = {Rotterdam},
}
\end{filecontents}


\begin{document}
\footcite[][15]{key}
\nocite{*}
\printbibliography
\end{document}

enter image description here

6
  • That is perfect. When I run that exact code, I get this error message though: This is BibTeX, Version 0.99d (MiKTeX 2.9.6210 64-bit) The top-level auxiliary file: OptimisationIn3DCG.aux I found no \citation commands---while reading file OptimisationIn3DCG.aux I found no \bibdata command---while reading file OptimisationIn3DCG.aux I found no \bibstyle command---while reading file OptimisationIn3DCG.aux (There were 3 error messages). I am using Texmaker. I had the same problem earlier, that's why I switched to bibtex in the first place (it works just fine there). Commented Mar 18, 2018 at 13:16
  • @FelixWindisch Yes, with that code you need to run Biber instead of BibTeX. See tex.stackexchange.com/q/154751/35864
    – moewe
    Commented Mar 18, 2018 at 13:18
  • My biblatex and biber versions are uncompatible... I can probably easily fix that on my own, but is there really a significant drawback to bibtex that makes it worthwhile? Commented Mar 18, 2018 at 13:22
  • @FelixWindisch Version incompatibilities should be easily solved by updating your TeX distribution (of course updates are always risky, so if you are very close to a deadline, you may want to defer the update). Biber has been biblatex's default backend for quite some time, and BibTeX is officially considered a 'legacy' backend now, meaning that it should not be used in new documents any more. Many of biblatex's advanced features can only be used with Biber. In the example here you can get away with not using Biber, but that can not be guaranteed if you want more involved stuff.
    – moewe
    Commented Mar 18, 2018 at 13:32
  • @FelixWindisch From your name I'm guessing you may be German-speaking. In that case Biber has the huge advantage that it can natively deal with Unicode and sorts umlauts properly. BibTeX is ill-equipped to deal with UTF-8 and can only sort ASCII chars properly.
    – moewe
    Commented Mar 18, 2018 at 13:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .