On 07/06/2012 05:58 AM, Kasper Jermiin Knudsen wrote:
Re: Refference error when creatinmg pdf: keyboard character used is
undefined Hi Richard
Thank you for your reply.
I dont know how any unknown character slipped in. The exact name of
the file is "Role of the TMPRSS2--ERG Gene Fusion in Prostate Cancer".
Any bad characters here?
The dash. If you look at the error, you can see that's the one it's
choking on. It's some kind of Unicode character.
I use Mendeley reference manager to create a bibtex file from my
references. Do you think that the probles lies here? And is there
anyway to circumvent this in Lyx?
This is a common problem. Mendeley, JabRef, etc, are perfectly happy to
save your file as Unicode, but BibTeX does not like it. Really, the
BibTeX file has to be in the same encoding as the original file, and
there is even a bug about this on trac. But it turns out it is actually
impossible to detect file encoding reliably.
Richard
PS Keep discussions on the list, so it will be available to others.
On 7/5/12 5:47 PM, "Richard Heck" <rgh...@lyx.org> wrote:
On 07/05/2012 07:33 AM, Kasper Jermiin Knudsen wrote:
Refference error when creatinmg pdf: keyboard character used
is undefined Hi
I have a problem whit one of my bibtex references, when
making a pdf from my lyx document.
I get 2 error messages that each reads:
1:
Package inputenc Error: Keyboard character used is undefined
\newblock {Role of the TMPRSS2
ERG Gene Fusion in
Prostate Cancer}.
You need to provide a definition with \DeclareInputText
or \DeclareInputMath before using this key.
2:
Package inputenc Error: Keyboard character used is undefined
\newblock {Role of the TMPRSS2--
ERG Gene Fusion in
Prostate Cancer}.
You need to provide a definition with \DeclareInputText
or \DeclareInputMath before using this key.
How do make a definition for the unknown character that the
error message mentions?
The better solution is not to use that character. BibTeX files
should be pure ASCII.
Richard
--------------------------------
Kasper Jermiin Knudsen
PhD student
BRIC -- Biotech Research and Innovation Centre
Ole Maaløesvej 5
2200 København N
35325633