4

I am trying to write this

title = {c:\wp\file.txt\_05:41\_10-07-98},

as the title of a book in BibTeX except that it enters into math mode when I put it in like that using \. I tried \textbackslash but it ended up in a similar mode. Any thoughts?

EDIT

\documentclass[12pt]{article}
\usepackage{baskervald}
\usepackage[T1]{fontenc}
\usepackage[notes]{biblatex-chicago}
\DefineBibliographyStrings{english}{references = {Works Cited}}
\DeclareBibliographyCategory{primary}
\usepackage{filecontents}
\usepackage{microtype}
\addbibresource{bibliography.bib}
\begin{document}
Hello World!
\nocite{*}
\end{document}

file.bib

@incollection {taylor2000,
author = {Gary Taylor},
title = {c:\wp\file.txt\_05:41\_10-07-98},
crossref = {murphy2000},
pages = {44-54},
}
@book {murphy2000,
editor = {Andrew Murphy},
title = {The Renaissance Text: Theory, Editing, Textuality},
publisher = {Great Britain: Manchester University Press},
year = {2000},
}
7

With

title={\verb|c:\wp\file.txt_05:41_10-07-98|},

there should be no problem, if you use normal BibTeX styles. With biblatex based bibliography styles the thing is different, because the title will always be the argument to a command and so \verb will not work.

The simplest way out is to input that "title" as

title = {\texttt{c:\textbackslash wp\textbackslash file.txt\_05:41\_10-07-98}},
  • Sorry, I thought it worked but it did not. What do you think? – Mike Stumpf Jul 2 '12 at 16:51
  • @Wrigley242 Without a real example it's very difficult to give more help. – egreg Jul 2 '12 at 16:54
  • I put the example above. That is the exact phrase but I am not sure how to write it out. \verb sent off another error when I used it so I am trying to work around it. – Mike Stumpf Jul 2 '12 at 16:55
  • @Wrigley242 Sorry, but that's not an example. It's impossible to guess what you're using: document class, packages, bibliography manager (BibTeX or biblatex) and many other details. – egreg Jul 2 '12 at 16:57
  • Sorry! I added it above. Let me know if any of that helps. Thanks – Mike Stumpf Jul 2 '12 at 17:02

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.