Problems with LaTeX-Syntax-Highlighting

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Nordlicht
Posts: 2
Joined: Tue Nov 22, 2005 11:21 am
Location: North-Germany

Problems with LaTeX-Syntax-Highlighting

Post by Nordlicht »

I use Textpad 4.7.3 with syntax-highlighting to write LaTeX-files. The
following problem has ocurred: If I write after a keyword like \alpha an underscore to subscript the following symbol (eg. \alpha_k) the keyword isn't any longer highlighted. This problem doesn't occur with any other operator-symbols like ^ or {}. I added the underscore to the file "latex.syn" in line "OperatorChars" with no effect at all.
Is this problem a bug in TextPad and has anyone a solution to fix it? The only working trick I know is to write a space between the keyword and the underscore - but this looks very stupid. :(
User avatar
helios
Posts: 710
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Post by helios »

Assuming you have created a separate document class for LaTeX files, please implement the following procedure in TextPad:

From the Configure menu choose:

1. Preferences
2. "+" sign next to Document classes
3. "+" sign next to LaTeX
4. Syntax
5. Delete the underscore from "Other characters in words"
6. Click Apply / OK.

I hope this helps.
Helios Software Solutions
bhh
Posts: 7
Joined: Wed Apr 16, 2003 6:20 pm
Location: Leidschendam, Netherlands

Post by bhh »

I use TextPad heavily for LaTeX files.
I never really noticed the above mentioned problem. I didn't look properly.

Your solution is perfect.

Many thanks

Berend
Nordlicht
Posts: 2
Joined: Tue Nov 22, 2005 11:21 am
Location: North-Germany

Post by Nordlicht »

The solution helios has suggested works fine.

Many thanks
Post Reply