Per Ting | 20 Oct 2006 05:25
Picon

Texmode does not reconize math mode automatically

I am using Winedit 5.5b2. I have installed the TeXmode macro but for some reason it does not automatically recognize the Mathmode and switch to it. I have to do it myself. I remember that an earlier version of Texmode was able to do it automatically but after I "updated" to the latest version it cannot do it anymore.

Any suggestions?

Thansk

RS | 20 Oct 2006 17:22
Picon

Re: Texmode does not reconize math mode automatically

On 20.10.2006 05:25, Per Ting wrote:
> I am using Winedit 5.5b2. I have installed the TeXmode macro but for
> some reason it does not automatically recognize the Mathmode and
> switch to it. I have to do it myself. I remember that an earlier
> version of Texmode was able to do it automatically but after I
> "updated" to the latest version it cannot do it anymore.

Actually, it's the other way round: With old versions, you had to toggle 
the mode manually, since version 1.5 from 21 August, math mode will be 
recognized automatically (with WinEdt 5.5).

Maybe you are using a math environment that isn't defined in the 
highlighting settings and in _TeXmode.edt?

Note that with WinEdt 5.5, the information in the status line does not 
necessarily reflect the current mode.

Regards,
Robert.

Per Ting | 20 Oct 2006 17:47
Picon

Re: Texmode does not reconize math mode automatically

Robert,

As I stated in my original posting, it worked fine in Aug. 21 release. When I upgraded to the latest version (Sept. 14 version) it stopped working. I have tried many enviornments, including $..$ and \[...\]. It has not worked with any environment I have tried.

Can you tell me what is the difference between 8/21 and 9/14 releases of Texmode? Is there a way that I can get a copy of the 8/21 release since it worked for me beautifully.

Thanks

Per

On 10/20/06, RS <w.m.l <at> gmx.net> wrote:
On 20.10.2006 05:25, Per Ting wrote:
> I am using Winedit 5.5b2. I have installed the TeXmode macro but for
> some reason it does not automatically recognize the Mathmode and
> switch to it. I have to do it myself. I remember that an earlier
> version of Texmode was able to do it automatically but after I
> "updated" to the latest version it cannot do it anymore.

Actually, it's the other way round: With old versions, you had to toggle
the mode manually, since version 1.5 from 21 August, math mode will be
recognized automatically (with WinEdt 5.5).

Maybe you are using a math environment that isn't defined in the
highlighting settings and in _TeXmode.edt?

Note that with WinEdt 5.5, the information in the status line does not
necessarily reflect the current mode.

Regards,
Robert.

RS | 20 Oct 2006 18:28
Picon

Re: Texmode does not reconize math mode automatically

On 20.10.2006 17:47, Per Ting wrote:
> Robert,
> 
> As I stated in my original posting, it worked fine in Aug. 21 release. When
> I upgraded to the latest version (Sept. 14 version) it stopped working. I
> have tried many enviornments, including $..$ and \[...\]. It has not worked
> with any environment I have tried.
> 
> Can you tell me what is the difference between 8/21 and 9/14 releases of
> Texmode? Is there a way that I can get a copy of the 8/21 release since it
> worked for me beautifully.

The *only* difference between these releases is in line 48 of _TeXmode.edt:

       IfOK(''Goto(9);CMD(|Next Bullet|);'');',>

where the previous version had:

       IfOK(''Goto(9);CMD(""Next Bullet"");'');',>

That shouldn't make a difference, though.

Could you send the _Installation.log, please?

To find out what goes wrong, you can temporarily replace the lines 24+ 
in _TeXmode.edt with:

:checkmath::
  FindInString("%%%!0%%","%%%!1%%",2,3);
  IfOK(!"Prompt('""%!1"" IN switch stack:%\%!0');JMP('math');",>
       !"Prompt('""%!1"" NOT in switch stack:%\%!0');");
Return;

For each of the defined switches, this will tell you whether it's in the 
stack of highlighting switches (a list separated with "%"). What does it 
say when you type "\(`a" (with the correct prefix)?

Regards,
Robert.

Per Ting | 20 Oct 2006 21:35
Picon

Re: Texmode does not reconize math mode automatically

Robert

Here is my _installation.log (after another removal and reinstallation today, problem still persisting!):

-*- ASCII -*-

   +===================================+
   =   `TeX Math Mode Macro Package'   =
   =       ( $Revision: 1.6 $ )        =
   +===================================+

 Successfully Installed on: 20. October 2006, 15:28

 Package directory is: %b\Macros\LaTeX

 Options:
 =========

   * Prefix: `
   * Installed Tools menu additions: Yes
   * Use Status Line to toggle TeX mode: No


 No Active String Clashes


 To uninstall the `TeX math mode macro package',
  execute the macro  "TeXmode_uninstall.edt".

Thanks

Per



On 10/20/06, RS <w.m.l <at> gmx.net> wrote:
On 20.10.2006 17:47, Per Ting wrote:
> Robert,
>
> As I stated in my original posting, it worked fine in Aug. 21 release. When
> I upgraded to the latest version (Sept. 14 version) it stopped working. I
> have tried many enviornments, including $..$ and \[...\]. It has not worked
> with any environment I have tried.
>
> Can you tell me what is the difference between 8/21 and 9/14 releases of
> Texmode? Is there a way that I can get a copy of the 8/21 release since it
> worked for me beautifully.

The *only* difference between these releases is in line 48 of _TeXmode.edt:

       IfOK(''Goto(9);CMD(|Next Bullet|);'');',>

where the previous version had:

       IfOK(''Goto(9);CMD(""Next Bullet"");'');',>

That shouldn't make a difference, though.

Could you send the _Installation.log, please?

To find out what goes wrong, you can temporarily replace the lines 24+
in _TeXmode.edt with:

:checkmath::
  FindInString("%%%!0%%","%%%!1%%",2,3);
  IfOK(!"Prompt('""%!1"" IN switch stack:%\%!0');JMP('math');",>
       !"Prompt('""%!1"" NOT in switch stack:%\%!0');");
Return;

For each of the defined switches, this will tell you whether it's in the
stack of highlighting switches (a list separated with "%"). What does it
say when you type "\(`a" (with the correct prefix)?

Regards,
Robert.

Per Ting | 20 Oct 2006 21:49
Picon

Re: Texmode does not reconize math mode automatically

Robert;

I tried your suggestion given below, the response to \(`a is: *$?$* NOT in switch stack:info

That is all it says. In all other environments, \[  \], \begin{equation}..., etc, it gives me the same error message: *$?$* NOT in ...

Thanks

Per


To find out what goes wrong, you can temporarily replace the lines 24+
in _TeXmode.edt with:

:checkmath::
  FindInString("%%%!0%%","%%%!1%%",2,3);
  IfOK(!"Prompt('""%!1"" IN switch stack:%\%!0');JMP('math');",>
       !"Prompt('""%!1"" NOT in switch stack:%\%!0');");
Return;

For each of the defined switches, this will tell you whether it's in the
stack of highlighting switches (a list separated with "%"). What does it
say when you type "\(`a" (with the correct prefix)?

Regards,
Robert.


Gmane