[texworks] syntax pattern for inmath
Alain Delmotte
esperanto at swing.be
Wed Feb 3 16:30:01 CET 2010
Hi!
Herbert Schulz a écrit :
> 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.
>
It also works, but I'll say partly: I mean the inner $maths$ is
highlighted but the outer $ not so I get $*$maths$*$.
The expression suggested by Stefan (\$+[^\$]+\$+), for both cases,
doesn't work at all; the $ are just blue (other syntax-pattern for
special characters).
Thanks,
Alain
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
>
>
>
>
>
>
More information about the texworks
mailing list