Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to include in a bibliography with biblatex the location field in an inproceedings entry. A minimal working example is the following

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[sorting=ynt,bibstyle=authoryear-comp,defernumbers=true,maxnames=300,firstinits=true,uniquename=init,backend=biber,dashed=false,arxiv=abs]{biblatex}
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat[article]{pages}{#1}
\DeclareFieldFormat[inproceedings]{pages}{\lowercase{pp.}#1}
\DeclareFieldFormat[incollection]{pages}{\lowercase{pp.}#1}
\DeclareFieldFormat[article]{volume}{\textbf{#1}}
\DeclareFieldFormat[article]{number}{(#1)}
\DeclareFieldFormat[inproceedings]{title}{#1}
\DeclareFieldFormat{shorthandwidth}{#1}
\DeclareNameAlias{sortname}{first-last}

\DeclareBibliographyDriver{inproceedings}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/editor}%
\setunit{\labelnamepunct}\nopunct
\usebibmacro{title}
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{byeditor+others}%
\newunit\newblock
\usebibmacro{in:}%
\printfield{booktitle}%
\setunit{\bibpagespunct}%
\printfield{pages}
\newunit\newblock
\printfield{issn}%
\newunit\newblock
\printfield{location}%
\newunit\newblock
\usebibmacro{pageref}%
\usebibmacro{finentry}}

\begin{filecontents}{\jobname.bib}
@inproceedings{trial,
location = {Venice, Italy},
author = {Doe, J and Mouse, M},  
booktitle = {Proceedings of my conference},
pages = {133--158},
title = {A possible title},
year = {2001}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

Unfortunately I'm not able to make the location entry to appear in the bibliography. Any clue?

share|improve this question
    
Possible duplicate? tex.stackexchange.com/questions/76566/… –  Dan Jul 2 '13 at 12:56
1  
@Dan The question you link is about BibTeX, not biblatex –  egreg Jul 2 '13 at 13:04
    
although the answer is for bibtex, in this case it is also valid for biblatex. In biblatex location and address are the same and venue is used to refer to the location of the event. –  ArTourter Jul 2 '13 at 13:57
    
Sorry but as far as I understood it does not answer my question the linked answer. BTW I've also tried to use venue in the bibtex entry and using \printfield{venue} but it does not work. –  Nicola Vianello Jul 2 '13 at 14:11
add comment

1 Answer 1

up vote 3 down vote accepted

The location field is of the literal list data type. Since all formatting directives are specific to the data type, replace \printfield{location} with \printlist{location}.

A list of fields with their data type in the default data model can be found in the Database Guide of the biblatex manual.

share|improve this answer
    
I've tried to replace \printfield{location} with \printlist{location} but it did not solve my problem –  Nicola Vianello Jul 2 '13 at 15:09
    
@NicolaVianello In the example you provided? It solves the problem on my end. –  Audrey Jul 2 '13 at 15:51
    
Sorry I was wrong. Now it works, for me it is solved. thank you –  Nicola Vianello Jul 2 '13 at 16:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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