Using special characters as keywords in latex listings package
Posted
by sha
on Stack Overflow
See other posts from Stack Overflow
or by sha
Published on 2010-06-09T01:25:12Z
Indexed on
2010/06/09
1:32 UTC
Read the original article
Hit count: 222
Hi,
I am using the listings package for latex. I am using the SQL language definition and am adding some new keywords that I need, using morekeywords=.
I have trouble defining some special characters as keywords, for example, I need [], <>, &, and -> to be considered as keywords and use the keyword style.
I have tried adding these verbatim or with a preceding backslash.
It did not work.
Your help would be greatly appreciated.
Thanks.
© Stack Overflow or respective owner