Highlight for LaTeX-equations

General questions about using TextPad

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

Post Reply
Billi
Posts: 9
Joined: Mon Jun 16, 2003 8:48 am
Location: Radebeul, Germany
Contact:

Highlight for LaTeX-equations

Post by Billi »

Hello TextPad-World,

I am using TextPad for editing LaTeX-files. The Highlight-Syntax works fine.
But there is one wish:

How can TextPad highlight equations (inline $...$, and as a block \begin{equation} ... \end{equation}) with a background-color, without loosing the nomal highlightning of the text?

sample (bold as a different bgcolor in TextPad):
bla bla bla $ \delta x = \beta^{2}$ bla bla \em{Thank you}

instead of
bla bla bla $\deltax = \beta^{2}$ bla bla \em{Thank you}
bhh
Posts: 7
Joined: Wed Apr 16, 2003 6:20 pm
Location: Leidschendam, Netherlands

Post by bhh »

If you want to change the background colour for a complete inline equation
do the following:

Menu: Configure, Preferences, Document Classes and click on the +.
Select LaTeX, Colors. Next select Comments 2 and then change the background colour.

You can change the background colour of all syntax highlighted keywords
just by going through the Menu: Configure, Preferences, Document Classes, click on the + and then select LaTeX, Colors and start changing.

If you want to change the background colour for math commands such as
\alpha etc. it would be best to gather all these commands and put them in a separate keyword section of latex.syn (create a new one before you start changing). Then change the colours for that keyword section.

Berend
Billi
Posts: 9
Joined: Mon Jun 16, 2003 8:48 am
Location: Radebeul, Germany
Contact:

sorry but thats not the answer I looked for...

Post by Billi »

Thx for your message. I know how to change colors/bgcolors of keywords and so on. I allready did that.
But what i want is that the whole equation is highlighted with a special bgcolor and that the LaTeX-Code inside the equation has the normal highlightning.

If i put all my mathematic keywords in different Keywordclases, i can highlight them and i can change the bgcolor of them.
But text, thats not a keyword would be without the bgcolor. :?

Billi
Billi
Posts: 9
Joined: Mon Jun 16, 2003 8:48 am
Location: Radebeul, Germany
Contact:

Ist i t really so difficult?

Post by Billi »

I never expected to get no helpful answers... but maybe it's nt possible...ANY IDEAS OUT THERE ?

Thanks Billi
bhh
Posts: 7
Joined: Wed Apr 16, 2003 6:20 pm
Location: Leidschendam, Netherlands

Post by bhh »

Ok. What you want is impossible.

Berend
Billi
Posts: 9
Joined: Mon Jun 16, 2003 8:48 am
Location: Radebeul, Germany
Contact:

Post by Billi »

That's a pitty... :cry:
Billi
Post Reply