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 have an entry in my bib file of the form

@conference{abc,
author = "Some name",
title = ""This is inside quote" and outside quote content",
.
.
.
}

when I check this entry through jabref, I get an error saying that = is expected but found '"'. This is because the inside quote is not escaped. I looked into it and I found that we can allow " by putting it inside {}, like {"}. But if I do that I don't get "This is inside quote" and outside quote content as title instead I get {"}This is inside quote{"} and outside quote content. Can anyone please suggest me how to handle this?

share|improve this question
2  
Try: title = {"This is inside quote" and outside quote content} –  PLK Jul 31 '12 at 10:17
7  
To distinguish between quotes as delimiters of a field within a bib entry and quotes with typographic meaning, you could write title = "``This is inside quote'' and outside quote content". Of course, if your typographic preference is to use single quotes rather than double quotes, you'd type title = "`This is inside quote' and outside quote content". Or, as @PLK suggests, you could elect not to use " as a field delimiter and employ { and } instead. –  Mico Jul 31 '12 at 10:23
2  
I always use {} as delimiters for all fields in .bib files - it saves confusion. –  PLK Jul 31 '12 at 11:15
2  
regardless of using quotes for the delimiters of a bibtex element, using the non-directional " with tex will almost always result in doubled closing quotes in the output. much better to do as @Mico suggests and use intentional directional quotes, single or double as appropriate. –  barbara beeton Jul 31 '12 at 12:32
1  
You could try marking up the quotes using a command. E.g. either \qq from textcmds or \enquote from csquotes –  Andrew Swann Jul 31 '12 at 13:54
show 1 more comment

1 Answer

up vote 9 down vote accepted

Mico and Barbara Beeton have already commented that using -- as appropriate -- double quotes (``/ '') or single quotes (`/') for quotes with typographic meaning will resolve your error. And Andrew Swann has suggested to use commands like \enquote from the csquotes package for marking quotes within .bib files. I'll add that for users of biblatex there's another reason to do so: Depending on your bibliography style, article titles (contrary to book titles) may be put inside (outer) quotes, which means you should use inner quotes within article titles, but outer quotes within book titles, but only for those bibliography styles. Simply using \enquote spares you the hassle of keeping track of style requirements and quote nesting levels.

\documentclass{article}

\usepackage{csquotes}

\usepackage{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{A01,
  author = {Author, A.},
  year = {2001},
  title = {An article title with a \enquote{quote}},
  journaltitle = {A journal},
  number = {1},
  pages = {1--4},
}
@book{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {A book title with a \enquote{quote}},
  location = {Somewhere},
  publisher = {A publisher},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}

\printbibliography

\end{document}

enter image description here

share|improve this answer
1  
The other reason is that some bibliographical styles require "American punctuation," like Chicago, while others rely on the 'British style', which biblatex and csquotes will handle correctly if one loads babel with the respective languages. –  jon Aug 8 '12 at 19:28
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.