BibTeX, biblatex and biberProblem with BiBTeX @electronic entry

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
alpha
Posts: 5
Joined: Tue Aug 11, 2009 10:28 am

Problem with BiBTeX @electronic entry

Post by alpha »

Hello!

I am new to this forum as well as BiBTeX. I am writing a research paper in which I want the following citation:

Code: Select all

@electronic{xplaneworks,
  title         = "How {X}-{P}lane {W}orks",
  url           = "http://www.x-plane.com/pg_reviews.html",
  month		= "August",
  year          = "2009"
}
This generates strange errors upon compilation. If I remove "pg" from the url, like:

Code: Select all

@electronic{xplaneworks,
  title         = "How {X}-{P}lane {W}orks",
  url           = "http://www.x-plane.com/reviews.html",
  month		= "August",
  year          = "2009"
}
this works fine. Can any one help? Why is BiBTeX doing this?

I am using Texmaker under Windows XP. The error generated by Texmaker during compilation is:

Code: Select all

! Missing $ inserted.
<inserted text>
$
l.153 ...l{http://www.x-plane.com/pg_reviews.html}
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 153.
! Missing $ inserted.
<inserted text>
$
l.155
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Missing } inserted.
<inserted text>
}
l.155
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Extra }, or forgotten \endgroup.
\par ...m \@noitemerr {\@@par }\fi \else {\@@par }
\fi
l.155
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
)
If we do not care about the environment now, it is going to be too late too soon !
(What you do not know about Pakistan http://www.pakpositive.com)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with BiBTeX @electronic entry

Post by localghost »

The underscore in the URL is the cause. This character is reserved for subscripts in math mode. In case you are using hyperref, you can use its \url command to avoid this error. The url package would be an alternative and provides the same command.


Best regards and welcome to the board
Thorsten
alpha
Posts: 5
Joined: Tue Aug 11, 2009 10:28 am

Re: Problem with BiBTeX @electronic entry

Post by alpha »

Thank you. I will try this out and get back if the problem persists.
If we do not care about the environment now, it is going to be too late too soon !
(What you do not know about Pakistan http://www.pakpositive.com)
alpha
Posts: 5
Joined: Tue Aug 11, 2009 10:28 am

Re: Problem with BiBTeX @electronic entry

Post by alpha »

I found a simpler way:

url = "http://www.x-plane.com/pg\textunderscore reviews.html"
If we do not care about the environment now, it is going to be too late too soon !
(What you do not know about Pakistan http://www.pakpositive.com)
Post Reply