LyXLyx cannot compile because of citation

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
sydd
Posts: 1
Joined: Mon Dec 13, 2010 5:29 am

Lyx cannot compile because of citation

Post by sydd »

Hi

im trying to include a citation in my document, but i get the following error when compiling:
Missing \endcsname inserted.

The description of the error is:

Code: Select all

 \cite{káli2005distinct}
                             
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
And the corresponding bib citation:

Code: Select all

@article{káli2005distinct,
  title={{Distinct properties of two major excitatory inputs to hippocampal pyramidal cells: a computational study}},
  author={K{\'a}li, S. and Freund, T.F.},
  journal={European Journal of Neuroscience},
  volume={22},
  number={8},
  pages={2027--2048},
  issn={1460-9568},
  year={2005},
  publisher={John Wiley \& Sons}
}
The problem is that Lyx or Latex does not like the "á" character in the article reference. im using the default (numeric) bibliography style.
The error goes away if i rewrite the .bib file to

@article{kali2005distinct, ...

Any way to solve this, or i need to rewrite the .bib file?

Thanks

Recommended reading 2024:

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

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Lyx cannot compile because of citation

Post by meho_r »

You need to rewrite the .bib file. Even when using utf8 encoding (unicode) for both .lyx and .bib files, with BibTeX you should always take caution about accents and enter them LaTeX-way. And there is really no reason to put accented letters in "bibtexkey" (i.e. káli2005distinct), so avoid doing that.
Post Reply