Page 1 of 1

Highlight for LaTeX-equations

Posted: Mon Jun 16, 2003 9:11 am
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}

Posted: Tue Jun 17, 2003 9:20 am
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

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

Posted: Tue Jun 17, 2003 9:45 am
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

Ist i t really so difficult?

Posted: Thu Jun 19, 2003 8:26 am
by Billi
I never expected to get no helpful answers... but maybe it's nt possible...ANY IDEAS OUT THERE ?

Thanks Billi

Posted: Fri Jun 20, 2003 7:21 am
by bhh
Ok. What you want is impossible.

Berend

Posted: Fri Jun 20, 2003 7:44 am
by Billi
That's a pitty... :cry:
Billi