ZoneO-tips for Mandriva Linux

Kile and Natbib

Kile does not recognize the \citep keyword from Natbib! What can I do?

 
 

Kile, the TeX/LaTeX editor for the KDE became pretty good now, and I'm on the way of giving up emacs for my editing.

There was something I found annoying, though, especially when editing a file with the Natbib bibliographic style, for journals such as those from AGU:

  • first, it did not recognize citep as a keyword.
  • second, all authors in a citep command were included in the spellchecking.
Well, there is a way around it.

To change the synthax highlighting, you can edit the file

/path/to/kde/share/apps/katepart/syntax/latex.xml
where /path/to/kde is given by
kde-config --prefix
and add citep everywhere you can find cite.

For the spellchecking, create a file .aspell.conf in your home directory and include the line

add-tex-command citep p
And you should be done...

12/2004
Edited and reformated 12/2005
 

ZoneO, 14 January 2005

By the way, this only works properly if you start spellchecking from the menu "Edit". If you start the spellchecking from "Tools", you end up spellchecking LaTeX commands...

Mattias, 13 July 2007

Thanks!

Great tip. For me it works from the "Tools" menu as well.

Add a comment

Name:
Email or URL: (optional)
Security code
Code shown above:
 
 
© ZoneO-soft - Contact us - Start page