[texworks] syntax pattern for inmath

Herbert Schulz herbs at wideopenwest.com
Wed Feb 3 14:19:36 CET 2010


On Feb 3, 2010, at 7:11 AM, Alain Delmotte wrote:

> Hi!
> 
> Reinhard Kotucha a écrit :
>> On 2 February 2010 Alain Delmotte wrote:
>> 
>> > Hello!
>> >  > I'd like to have syntax-pattern for inmath expressions like $e=mc^2$.
>> > I have this:
>> >     limegreen    N      \$.+\$
>> > but if there are more than one math expression, everything is coloured  > between the first $ (of the first expression) and the last $ (of the  > last expression).
>> 
>> Does something like \$[^\$]+\$ work?
>> 
>> Regards,
>>  Reinhard
>>  
> Thanks Reinhard and Stefan, this expression works.
> 
> Alain
> 
> 

Howdy,

For curiosities sake... what happens if you use $$...$$ for displayed math equations? I see this quite a bit even with LaTeX.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the texworks mailing list