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 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},
}
share|improve this question

1 Answer 1

up vote 7 down vote accepted

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}},
share|improve this answer
    
Thank you for your help! –  Mike Stumpf Jul 2 '12 at 14:04
    
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

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.