LaTeX forum ⇒ BibTeX, biblatex and biberFormat for short Title in Bibliography Item

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

Format for short Title in Bibliography Item

Postby Buchling » Mon Apr 08, 2013 12:45 pm

Hey everyone!

  1. \begin{filecontents}{men.bib}
  2. @ARTICLE{Lewis2009,
  3. author = {Dustin A. Lewis},
  4. title = {Unrecognized Victims: Sexual Violence Against Men in Conflict Settings Under International Law},
  5. journal = {Wisconsin International Law Journal},
  6. year = {2009},
  7. volume = {27},
  8. pages = {1--49},
  9. keywords = {book},
  10. shorttitle = {2009},
  11. number = {1}
  12. }
  13.  
  14. @BOOK{ICRC2008,
  15. title = {How is the Term \enquote{Armed Conflict} Defined in International Humanitarian Law? Opinion Paper},
  16. author = {{International Committee of the Red Cross}},
  17. keywords = {book},
  18. shorttitle = {2008},
  19. shortauthor = {ICRC},
  20. date = {2008-03-17},
  21. url = {http://www.icrc.org/eng/assets/files/other/opinion-paper-armed-conflict.pdf},
  22. urldate = {2013-02-05}
  23. }
  24. \end{filecontents}
  25.  
  26. \documentclass[a4paper,12pt,bibtotoc,british]{scrartcl}
  27. \usepackage[british]{babel}
  28. \usepackage[utf8]{inputenc} %Zeichencodierung
  29. \usepackage[style=english]{csquotes} % ermöglicht Befehl \enquote{} für Zitate
  30. \usepackage[T1]{fontenc}
  31. \usepackage{lmodern} % schönere Schrift
  32.  
  33. \usepackage[
  34. backend=biber,
  35. citestyle=verbose-ibid,
  36. bibstyle=verbose,
  37. dashed=false,
  38. block=none,
  39. dateabbrev=false,
  40. alldates=long,
  41. pagetracker=true,
  42. citetracker=constrict,
  43. ibidtracker=constrict
  44. ]{biblatex}
  45.  
  46. \addbibresource{men}%
  47. \DeclareFieldFormat{shorttitle}{\fontnormal{#1}}
  48.  
  49. \begin{document}
  50.  
  51. bla\footcite[See][3]{ICRC2008} bla\footcite[58]{Lewis2009} bla\footcite{ICRC2008}
  52.  
  53. \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.
Reason: added inline code markup

Tags:

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

Postby Buchling » Sun Apr 14, 2013 10:00 pm

Nobody?

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

Postby Buchling » Mon Sep 23, 2013 2:25 pm

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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Sep 23, 2013 7:28 pm

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby cgnieder » Tue Sep 24, 2013 6:40 pm

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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Tue Sep 24, 2013 7:06 pm

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.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby Buchling » Mon Sep 30, 2013 2:17 pm

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.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 3 guests