Bug 125415

Summary: Syntax hightlighting should honor citeA, citeyear, citeauthor, ... from package apacite
Product: [Applications] kile Reporter: Thomas Fischer <fischer>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: REPORTED ---    
Severity: wishlist CC: bugs.kde.org
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thomas Fischer 2006-04-12 12:07:28 UTC
Version:           1.9 (using KDE 3.3.2,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-13)
OS:                Linux (i686) release 2.6.8-2-386

The editor within Kile should highlight cite commands (citeA, citeyear, ...) from the apacite package like LaTeX's normal cite command. See http://www.tug.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf in section 3 (page 10) for a list of all cite commands.
Comment 1 Thomas Braun 2006-05-18 19:27:04 UTC
Hi,

currently we don't have any additional cite commands implemented into the syntax file because we don't want to create a huge (and therefor resource hungry ) highlightning file. With KDE 4 it will be possible to highlight arbitrary text at runtime, and we will definitly use it to highlight custom commands.

Until then you can edit the syntax file by yourself.
The file is called latex.xml and resides in debian at /usr/share/apps/katepart/syntax/latex.xml.
Alter the line <RegExpr String="\\(label|pageref|ref|vpageref|vref|cite)(?=[^a-zA-Z])" attribute="Structure" context="Label"/>
to something like 
<RegExpr String="\\(label|pageref|ref|vpageref|vref|cite|mycite|mycite2)(?=[^a-zA-Z])" attribute="Structure" context="Label"/>        ^^^^^^^^^^^^^^^

Regards,
Thomas
Comment 2 Erik Quaeghebeur 2006-09-27 22:53:20 UTC
I guess it will then be possible to create specific files for highlighting and specific functionality (like bringing up the citation pulldown menu) for popular LaTeX packages? (Which could be distributed with Kile or made by the users.)

Or how is this going to be implemented?
Comment 3 Thomas Braun 2009-05-27 00:06:00 UTC
The version 1.33 of the latex highlighting file supports much more cite commands as before.
Our current idea is to support biblatex commands properly as this is in my eyes the future.