3

University textbooks are very expensive so that most of us need go to library to find the books listed in a reference. Hence, I would like to include call numbers (e.g., QA278.2.D38 2013) in my reference list so that people do not need to look that up themselves. Is there an easy way to do this in LaTeX, please? Thank you!

  • Look here for a quick solution tex.stackexchange.com/questions/87687/… – R. Schumacher May 5 '15 at 23:21
  • 2
    The note field? – egreg May 5 '15 at 23:34
  • Can you be a bit more specific about what bibliography system you use? Do you use BIbTeX (.bst styles), biblatex or another system? You can have a look at this question where we discuss a new "price" field (which can be adapted to your situation quite easily). – moewe May 6 '15 at 6:06
  • 1
    The biblatex documentation states that biblatex already has a library field for call numbers. No standard style prints this information by default though. So the only thing you would have to do is enable printing of that field, e.g. by \newbibmacro*{addendum+pubstate}{% \printfield{addendum}% \newunit\newblock \printfield{pubstate}% \newunit\newblock \printfield{library}} (modulo line breaks) – moewe May 6 '15 at 6:09
  • @egreg Thanks. note field is quite easy and flexible to use. – LaTeXFan May 6 '15 at 6:11
2

In a standard BibTeX environment the easiest solution is the note field, virtually all styles support this field and it is the place stuff goes if there is no field better suited.

You can also go down this route if you use biblatex, but biblatex has a library field. This field is not enabled in the standard styles, though, but with a few lines of code we can make it work.

\renewbibmacro*{addendum+pubstate}{%
  \printfield{addendum}%
  \newunit\newblock
  \printfield{pubstate}%
  \newunit\newblock
  \printfield{library}}

This is a copy of the "standard" addendum+pubstate macro present in all standard drivers with a directive to also print the library field at the end.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.