BibTeX, biblatex and biberFormat for short Title in Bibliography Item

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Buchling
Posts: 16
Joined: Thu Jan 24, 2013 2:14 pm

Format for short Title in Bibliography Item

Post by Buchling »

Hey everyone!

Code: Select all

\begin{filecontents}{men.bib}
@ARTICLE{Lewis2009,
  author = {Dustin A. Lewis},
  title = {Unrecognized Victims: Sexual Violence Against Men in Conflict Settings Under International Law},
  journal = {Wisconsin International Law Journal},
  year = {2009},
  volume = {27},
  pages = {1--49},
  keywords = {book},
  shorttitle = {2009},
  number = {1}
}

@BOOK{ICRC2008,
  title = {How is the Term \enquote{Armed Conflict} Defined in International Humanitarian Law? Opinion Paper},
  author = {{International Committee of the Red Cross}},
  keywords = {book},
  shorttitle = {2008},
  shortauthor = {ICRC},
  date = {2008-03-17},
  url = {http://www.icrc.org/eng/assets/files/other/opinion-paper-armed-conflict.pdf},
  urldate = {2013-02-05}
}
\end{filecontents}

\documentclass[a4paper,12pt,bibtotoc,british]{scrartcl}
\usepackage[british]{babel}
\usepackage[utf8]{inputenc} %Zeichencodierung
\usepackage[style=english]{csquotes} % ermöglicht Befehl \enquote{} für Zitate
\usepackage[T1]{fontenc}
\usepackage{lmodern} % schönere Schrift

\usepackage[
  backend=biber,
  citestyle=verbose-ibid,
  bibstyle=verbose,
  dashed=false,
  block=none,
  dateabbrev=false,
  alldates=long,
  pagetracker=true,
  citetracker=constrict,
  ibidtracker=constrict
]{biblatex}

\addbibresource{men}%
\DeclareFieldFormat{shorttitle}{\fontnormal{#1}}

\begin{document}

bla\footcite[See][3]{ICRC2008} bla\footcite[58]{Lewis2009} bla\footcite{ICRC2008}

\end{document}
As you can see, I am using the shorttitle field to cite articles and books as shortauthor, year. Unfortunately, the title field for books has to be in italics, which means that the shorttitle is also printed in italics. It shouldn't, though. Including \DeclareFieldFormat{shorttitle}{\fontnormal{#1}} in the preamble didn't help. How can I change that?

I am using TeX Live with TeXmaker, biblatex and Biber.

Thanks a lot!

Cheers, Buchling
Last edited by localghost on Sun Apr 14, 2013 10:36 pm, edited 2 times in total.

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

Buchling
Posts: 16
Joined: Thu Jan 24, 2013 2:14 pm

Re: Format for short Title in Bibliography Item

Post by Buchling »

Nobody?
Buchling
Posts: 16
Joined: Thu Jan 24, 2013 2:14 pm

Format for short Title in Bibliography Item

Post by Buchling »

Unfortunately, I'm gonna have to bring this up again since I still haven't been able to solve the problem. I would be really grateful for any advice or input.

As an alternative to only changing the font of the shorttitle, it would also be acceptable to quote books and articles with the short form right from the beginning and then the title for the footnotes could be normal font altogether - not in the bibliography though. Is it possible to do that?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Format for short Title in Bibliography Item

Post by localghost »

The reason why you didn't get an answer yet is quite simple, thus not surprising. Your question lacks an adequate problem description by a self-contained and minimal example. Code fragments like the one you presented are not really helpful.


Thorsten
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Format for short Title in Bibliography Item

Post by cgnieder »

localghost wrote:Your question lacks an adequate problem description by a self-contained and minimal example. Code fragments like the one you presented are not really helpful.
I disagree: the MWE misses the ending .bib in \addbibresource but appart from that it shows the issue. It may be misleading that the short titles are years but when I change them into something more recognizable like short A and short B I can reproduce the issue clearly. Sadly I don't have an answer how to solve the problem, though.

Regards
site moderator & package author
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Format for short Title in Bibliography Item

Post by localghost »

cgnieder wrote:[…] I disagree: the MWE misses the ending .bib in \addbibresource but appart from that it shows the issue. […]
Argh! Stupid me. I should have scrolled the source code and not only read the first lines.
Buchling
Posts: 16
Joined: Thu Jan 24, 2013 2:14 pm

Format for short Title in Bibliography Item

Post by Buchling »

Sorry for the missing .bib!
And I'll be happy to provide more information if anyone feels they might be able to help with more input.
Post Reply