LyXBibTex source makes LyX produce error

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Matias
Posts: 20
Joined: Sun Jan 17, 2010 11:40 pm

BibTex source makes LyX produce error

Post by Matias »

Hi.

I use LyX 1.6 and JabRef 2.5.

Some entries (citations) in JabRef have an URL link. When citing these entries in LyX, I get an error:

Code: Select all

Error: Undefined sequence

Description:
 \newblock Available from: \url
                                   {http://dx.doi.org/10.1089/10445460175014...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Other citations work, but the citations with a URL link doesn't work. I think the difference in BibTeX source are these lines:

Code: Select all

doi = {10.1089/104454601750143546},
url = {http://dx.doi.org/10.1089/104454601750143546}
How do I fix this?
Last edited by Matias on Fri Jan 22, 2010 1:20 am, edited 2 times in total.

Recommended reading 2024:

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

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

Matias
Posts: 20
Joined: Sun Jan 17, 2010 11:40 pm

Re: BibTex source makes LyX produce error

Post by Matias »

Is this question specifically related to LyX, or is this LaTeX in general? I was thinking of making a post in the LaTeX forum for quicker response.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: BibTex source makes LyX produce error

Post by frabjous »

I don't know anything about LyX, but if there's any way to add the url or hyperref package(s), those might solve the problem.
Matias
Posts: 20
Joined: Sun Jan 17, 2010 11:40 pm

Re: BibTex source makes LyX produce error

Post by Matias »

Excellent, I got it working. I downloaded a package in the MiKTeX Package Manager called "urlbst". I then put \usepackage{url} in my document preamble.

However there is one thing I don't understand. Did the \usepackage{url} command load the "urlbst" package? I don't understand how I should know to use \usepackage{url} and not for example \usepackage{urlbst} (which I find more logical). I skimmed some through the package documentation and couldn't find anything about what command to load the package.
Post Reply