BibTeX, biblatex and biberCitation of short titles

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ianw
Posts: 3
Joined: Thu Nov 26, 2015 11:51 pm

Citation of short titles

Post by ianw »

Hello,

I am using biblatex for my citations and bibliography, with citations placed in end notes and am using the authortitle style. I am required to cite a single work in the notes with just a reference to the author, but if that author has multiple works in the bibliography, I need to use the the combination of author and short title in the citation.

For example:

12. Smith, p.10.
13. Jones, "Gone with the Wind", p.11.
14. Smith, p.23.
15. Jones, "No longer windy", p.2.
etc

I have successfully implemented the Jones, "Gone with the Wind", p.11 type of entry, but I get this format for all my entries, including those for Smith. How do I drop the short title from the Smith-type entries, that is, those authors with only single titles in the bibliography?

Thank you for any suggestions.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Citation of short titles

Post by Johannes_B »

Hi and welcome,

you said you managed to achieve something already. Why not sharing tha with us, so we have something to work with? Better than starting from scratch providing a solution that might be incompatible with your current bib-setup.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ianw
Posts: 3
Joined: Thu Nov 26, 2015 11:51 pm

Citation of short titles

Post by ianw »

Thank you for the welcome.

Here are some brief excerpts from my current document (with a great deal of the preamble removed for simplicity). The key bits related to biblatex are shown.

Code: Select all

\documentclass[11pt, article, oneside]{memoir}


\usepackage{endnotes}
\let\footnote=\endnote
\renewcommand{\notesname}{}

\usepackage[citestyle=authortitle-ibid, bibstyle=authortitle, sorting=nyt, 
block=space, terseinits=true, backend=biber]{biblatex}
\defbibheading{memoir}{}

\bibliography{/Volumes/Current/work/core/biblio14}

\DefineBibliographyStrings{australian}{% 
bibliography = {References},
shorthands = {Abbreviations}, 
editor = {editor}, 
editors = {editors},
techreport = {},
in = {~}, 
}

\newbibmacro*{shorttitle}{%
  \setunit*{\addcomma\space}%
  \printlist{shorttitle}%
  \setunit*{\addcomma\space}
  \newunit}


\begin{document}

blah blah blah \footnote{\cite[247]{Kaufmann2014b}}
blah blah blah


\newpage
\addcontentsline{toc}{chapter}{Notes}
\chapter*{Notes}
% 
\begingroup
\renewcommand{\makeenmark}{\hbox{\theenmark}.\quad}
\parindent 0pt
\parskip 2ex
\def\enotesize{\normalsize}
\theendnotes
\endgroup

\chapter*{References}
\raggedright
\printbibliography[heading=memoir]

\end{document}
I know this is not a MWE, but I'm hoping somebody already knows the answer to my query. I don't see my problem as trying to solve a bug in my LaTeX code so much as tap into someone's prior experience.

Thank you.
ianw
Posts: 3
Joined: Thu Nov 26, 2015 11:51 pm

Citation of short titles

Post by ianw »

I have since received the following suggestion on another list and it solves the problem perfectly.

Code: Select all

\documentclass[11pt, article, oneside]{memoir}
\usepackage[australian]{babel}
\usepackage{csquotes}
\usepackage{endnotes}
\let\footnote=\endnote
\renewcommand{\notesname}{}
\usepackage[style=authortitle-ibid, terseinits=true, block=space, backend=biber, singletitle]{biblatex}
\defbibheading{memoir}{}

\addbibresource{biblatex-examples.bib}

\DefineBibliographyStrings{australian}{% 
bibliography = {References},
shorthands = {Abbreviations}, 
editor = {editor}, 
editors = {editors},
techreport = {},
}

\renewbibmacro{in:}{}

\renewbibmacro*{cite}{%
  \global\boolfalse{cbx:loccit}%
  \iffieldundef{shorthand}
    {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
       {\usebibmacro{cite:ibid}}
       {\ifnameundef{labelname}
          {}
          {\printnames{labelname}%
           \ifsingletitle{}{\setunit{\nametitledelim}}}%
        \usebibmacro{cite:title}}}%
    {\usebibmacro{cite:shorthand}}}

\renewbibmacro*{cite:title}{%
  \ifsingletitle
    {}
    {\printtext[bibhyperref]{%
       \printfield[citetitle]{labeltitle}}}}


\begin{document}

blah\footcite[12]{sigfridsson} blah\footcite{worman,pines} blah\footcite[34]{knuth:ct:b}
blah\footcite[56]{geer} blah\footcite[78]{knuth:ct:c} blah.


\newpage
\addcontentsline{toc}{chapter}{Notes}
\chapter*{Notes}
% 
\begingroup
\renewcommand{\makeenmark}{\hbox{\theenmark}.\quad}
\parindent 0pt
\parskip 2ex
\def\enotesize{\normalsize}
\theendnotes
\endgroup

\chapter*{References}
\raggedright
\printbibliography[heading=memoir]

\end{document}

example output: cut of the note section
Post Reply