Yogeshwarsing Calleecharan | 2 Oct 2009 11:49
Picon
Favicon

cleanTree macro

Hi to everybody,
                Recently we got an email from R. Schlicht about the 
Clean Tree macro, which is available at:

http://www.winedt.org/Config/Tree/CleanTree.php

I noticed that my BuildTreeAfter.edt in the winedt folder (%B) was 
actually in the Macros > Events folder and that I haven't a Events 
folder in the Local directory (still %B).

I make the necessary adjustments and followed the instructions of R. 
Schlicht. However, when I restarted WinEdt, I get the following error 
message:

Macro Stack overflow: 256 nested macros

I have WinEdt 5.6b. Has anyone been successful with installing the Clean 
Tree macro?

Thank you in anticipation,

With Kind Regards,
Yogeshwarsing

Robert | 2 Oct 2009 21:47
Picon

Re: cleanTree macro

On 02.10.2009 11:49 Uhr, Yogeshwarsing Calleecharan wrote:
> I noticed that my BuildTreeAfter.edt in the winedt folder (%B) was 
> actually in the Macros > Events folder and that I haven't a Events 
> folder in the Local directory (still %B).
> 
> I make the necessary adjustments and followed the instructions of R. 
> Schlicht. However, when I restarted WinEdt, I get the following error 
> message:
> 
> Macro Stack overflow: 256 nested macros

Ouch, sorry, wrong instructions. Remove everything from 
%b\Local\Events\BuildTreeAfter.edt, except for the following:

-----------------------------------------------------
// Local Tree Build Event Handler (After)

Exe("%b\Local\CleanTree.edt");

End;
-----------------------------------------------------

Regards,
--

-- 
  Robert

Ute Hahn | 2 Oct 2009 23:33
Picon
Picon

Bitmaps for icons+mask?

Hi all,

I am trying to create a bitmap (for an Asymptote menu item) to be placed 
in %B\Bitmaps\Images. I vaguely remember from the very old days that 
there existed a trick to include the mask into the bmp file, so that the 
icon background becomes transparent. Does anyone remember the trick?

Thanks!

Ute

Ute Hahn | 3 Oct 2009 00:39
Picon
Picon

Re: Bitmaps for icons+mask?

Just found a simple workaround: instead of a 16x16 bitmap, create a 
16x32 bitmap with a blank (white) lower half. But what is the official 
solution? Some of the files in %B\Bitmaps\Images are 886 bytes large, 
others 1846, but all are apparently 16x16 bitmaps.
Puzzled,

Ute

Ute Hahn wrote:
> Hi all,
>
> I am trying to create a bitmap (for an Asymptote menu item) to be 
> placed in %B\Bitmaps\Images. I vaguely remember from the very old days 
> that there existed a trick to include the mask into the bmp file, so 
> that the icon background becomes transparent. Does anyone remember the 
> trick?
>
> Thanks!
>
> Ute

Per Ting | 3 Oct 2009 03:40
Picon

How can I stop "Latex failed to create a dvi file,...." to appear after each error?

I have two installations of Miktex2.8+Winedt 5.5 in my office and at home. At work, when an error is encountered in the latex window, I press "e" and  go directly to the location of error in Winedt with no new windows opened and no error message. This is very convenient. At home, after I press "e", I go directly to error location in Winedit, but an error window saying "Latex failed to create a dvi file,...." appears which I find distracting. How can I prevent this window? I have tried to compare the two settings and change the setting at home, but could not find the difference?

Thanks

Per

Yogeshwarsing Calleecharan | 3 Oct 2009 12:27
Picon
Favicon

RE: cleanTree macro

Hi Robert,
          Thank you very much. It works fine now. It's a helpful add-on to WinEdt.

With Kind Regards,
Yogeshwarsing

-----Original Message-----
From: Robert [mailto:w.m.l <at> gmx.net]
Sent: Fri 2009-10-02 21:47
To: winedt+list <at> wsg.net
Subject: Re: [WinEdt] cleanTree macro

On 02.10.2009 11:49 Uhr, Yogeshwarsing Calleecharan wrote:
> I noticed that my BuildTreeAfter.edt in the winedt folder (%B) was
> actually in the Macros > Events folder and that I haven't a Events
> folder in the Local directory (still %B).
>
> I make the necessary adjustments and followed the instructions of R.
> Schlicht. However, when I restarted WinEdt, I get the following error
> message:
>
> Macro Stack overflow: 256 nested macros

Ouch, sorry, wrong instructions. Remove everything from
%b\Local\Events\BuildTreeAfter.edt, except for the following:

-----------------------------------------------------
// Local Tree Build Event Handler (After)

Exe("%b\Local\CleanTree.edt");

End;
-----------------------------------------------------

Regards,
--
  Robert

WinEdt Team | 5 Oct 2009 21:55

Re: How can I stop "Latex failed to create a dvi file,...." to appear after each error?

> I have two installations of Miktex2.8+Winedt 5.5 in my office
> and at home. At work, when an error is encountered in the latex
> window, I press "e" and go directly to the location of error in
> Winedt with no new windows opened and no error message. This is
> very convenient. At home, after I press "e", I go directly to
> error location in Winedit, but an error window saying "Latex
> failed to create a dvi file,...." appears which I find
> distracting. How can I prevent this window? I have tried to
> compare the two settings and change the setting at home, but
> could not find the difference?

I doubt that there is any difference in WinEdt settings or that
this is a WinEdt issue. I am aware of the following bug (that
could explain the difference) in MiKTeX 2.8:

If the path to the editor executable (as specified or
auto-detected in YAP -> Options -> Inverse Search) contains
spaces then "e" command from console doesn't work. If you read
carefully you'll see that TeX produces a message like

  'C:\Program' is not recognized as an internal or external
  command, operable program or batch file.

WinEdt may still highlight the error (based on info in the log
file) but the "e" command failed and that could well be the
difference between the two installations.

Inverse Search works fine because YAP uses double-quotes around
the name but TeX does not in the latest version of MiKTeX
(2.8). Perhaps somebody should report this bug on MiKTeX's
Mailing List after performing the test from the console and
confirming that this is indeed a problem.... WinEdt is
irrelevant here as the problem would persist with any editor
installed in Program Files folder.

Best regards,

alex

WinEdt Team | 5 Oct 2009 21:55

Re: Bitmaps for icons+mask?

> Just found a simple workaround: instead of a 16x16 bitmap,
> create a 16x32 bitmap with a blank (white) lower half. But what
> is the official solution? Some of the files in
> %B\Bitmaps\Images are 886 bytes large, others 1846, but all are
> apparently 16x16 bitmaps.

The size depends on how many and what kind of colors are used
(no need to be concerned or puzzled over that).

Bottom left corner is used to determine the transparent color.

Eventually, bitmaps will be replaced with pngs which can handle
transparency better than bitmaps. But this will have to wait
until WinEdt is ported to the new version of Delphi that
supports pngs (unicode will have higher priority).

Best regards,

alex

Ute Hahn | 5 Oct 2009 22:38
Picon
Picon

Re: Bitmaps for icons+mask?

Thanks a lot for your enlightening answer!
>> Just found a simple workaround: instead of a 16x16 bitmap,
>> create a 16x32 bitmap with a blank (white) lower half. But what
>> is the official solution? Some of the files in
>> %B\Bitmaps\Images are 886 bytes large, others 1846, but all are
>> apparently 16x16 bitmaps.
>
> The size depends on how many and what kind of colors are used
> (no need to be concerned or puzzled over that).
Ah, yes of course. Didn't think of looking at color depth. Is the 
difference of 48 to 24 bit visible at all? (just being curious)
> Bottom left corner is used to determine the transparent color.
So simple. You're right, no need to be puzzled!
> Eventually, bitmaps will be replaced with pngs which can handle
> transparency better than bitmaps. But this will have to wait
> until WinEdt is ported to the new version of Delphi that
> supports pngs (unicode will have higher priority).
>
Looking forward to it. Although I am still very happy with 5.5/5.6 :-)

Best wishes,

Ute
> Best regards,
>
> alex
>

Ulrike Fischer | 6 Oct 2009 09:32
Picon

Re: How can I stop "Latex failed to create a dvi file,...." to appear after each error?

am Samstag, 3. Oktober 2009 um 03:40 schrieb Per Ting:

> I have two installations of Miktex2.8+Winedt 5.5 in my office and at home.
> At work, when an error is encountered in the latex window, I press "e" and
> go directly to the location of error in Winedt with no new windows opened
> and no error message. This is very convenient. At home, after I press "e", I
> go directly to error location in Winedit, but an error window saying "Latex
> failed to create a dvi file,...." appears which I find distracting. How can
> I prevent this window? I have tried to compare the two settings and change
> the setting at home, but could not find the difference?

Perhaps it is the "detect exit code error" setting in Options ->
executions modes.

--

-- 
Mit freundlichen Grüßen
Ulrike Fischer


Gmane