Discussion:
Finding cause of error preventing preview
Rich Shepard
2014-10-02 22:23:54 UTC
Permalink
Near the top of my document I have a citation imported from JabRef. When I
try to compile the document as a dvi preview an error is generated and a
block of text a few lines below that citation is highlighted:
------------------------------------------------------------
\newblock {\em Ecology}, 94(12):26780--
2687.
You need to provide a definition with \DeclareInputText
or \DeclareInputMath before using this key.
------------------------------------------------------------

The citation above the blocked text is not from Ecology and I cannot find
that reference in the JabRef database.

Please provide suggestions how I can find the source of this error.

TIA,

Rich
Rich Shepard
2014-10-02 22:35:19 UTC
Permalink
Post by Rich Shepard
\newblock {\em Ecology}, 94(12):26780--
I removed the final 0 from the above reference in JabRef but the LyX
document still won't compile.

When I click the button to copy the error log to the clipboard, where do I
find it?

Rich
Rich Shepard
2014-10-02 22:40:51 UTC
Permalink
Post by Rich Shepard
When I click the button to copy the error log to the clipboard, where do I
find it?
Got it: opened a new doc and pasted with ^y.

The error is apparently a JabRef -> LyX issue:

"Package natbib Warning: Citation `Sanchez2013' on page 6 undefined on input
line 76."

Any ideas?

Rich
Rich Shepard
2014-10-02 22:51:33 UTC
Permalink
Post by Rich Shepard
Near the top of my document I have a citation imported from JabRef. When I
try to compile the document as a dvi preview an error is generated and a
------------------------------------------------------------
\newblock {\em Ecology}, 94(12):26780--
2687.
You need to provide a definition with \DeclareInputText or \DeclareInputMath
before using this key.
------------------------------------------------------------
If it matters, the bibliography environment is the same in this document
as it is in another document which does compile.

Rich
Rich Shepard
2014-10-03 13:39:21 UTC
Permalink
Post by Rich Shepard
You need to provide a definition with \DeclareInputText or
\DeclareInputMath before using this key.
Fixed. Changed settings -> language from 'use language default' to 'use
language default (no inputenc)'.

Rich

Loading...