Hongsheng Zhao | 1 Nov 05:06
Picon
Favicon

Setup a customized application start toolbar by Run Macro.

Dear Winedters,

I want to use the PowerCmd program, which is a more powerful tool than the CMD, to substitute the default
command promt within winedt.  So I  setup a Macro menu like this:

-----------------
Menu Items:
PowerCmd

Macro:
Run('C:\Program Files\PowerCmd\PowerCmd.exe','%P');

Start in:
%P 
-----------------

I want the PowerCmd started in the current activated tex file's directory.  But I found that with the above
setting I can only make the PowerCmd started in a changeless location.  Why does this happen?  What should I
adjust the invoke parameters of my Run Macro menu to achieve the following aims:

1- If the main tex file is set, the PowerCmd will always be started in the directory of the main tex file.

2- If not main tex file exist, the PowerCmd will always be started in the current activated tex file's directory.

Thanks in advance.

Regards,
--

-- 
Hongsheng Zhao <zhaohscas <at> yahoo.com.cn> 
Xinjiang Technical Institute of Physics and Chemistry
(Continue reading)

Nicolas Vaughan | 1 Nov 06:05
Picon
Gravatar

Re: Setup a customized application start toolbar by Run Macro.

Hi,
Try this:

Macro:
Run('C:\PowerCmd\PowerCmd.exe','%!P',0,0,'%$("CMDTitle");',1,1);

Start in:
%!P

It worked for me.
Cheers!

Nicolas Vaughan

BTW, nice command-prompt replacement. I think I'll keep it.



On Fri, Oct 31, 2008 at 11:06 PM, Hongsheng Zhao <zhaohscas <at> yahoo.com.cn> wrote:
Dear Winedters,

I want to use the PowerCmd program, which is a more powerful tool than the CMD, to substitute the default command promt within winedt.  So I  setup a Macro menu like this:

-----------------
Menu Items:
PowerCmd

Macro:
Run('C:\Program Files\PowerCmd\PowerCmd.exe','%P');

Start in:
%P
-----------------

I want the PowerCmd started in the current activated tex file's directory.  But I found that with the above setting I can only make the PowerCmd started in a changeless location.  Why does this happen?  What should I adjust the invoke parameters of my Run Macro menu to achieve the following aims:

1- If the main tex file is set, the PowerCmd will always be started in the directory of the main tex file.

2- If not main tex file exist, the PowerCmd will always be started in the current activated tex file's directory.

Thanks in advance.

Regards,
--
Hongsheng Zhao <zhaohscas <at> yahoo.com.cn>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493
2008-11-1


Hongsheng Zhao | 1 Nov 11:17
Picon
Favicon

[BULK] Re[2]: [WinEdt] Setup a customized application start toolbar by Run Macro.

On Saturday, November 1, 2008 at 13:05, nivaca <at> gmail.com wrote:
> Hi,
> Try this:

> Macro:
> Run('C:\PowerCmd\PowerCmd.exe','%!P',0,0,'%$("CMDTitle");',1,1);

According the requirements I've posted here in my last mail, it should
be written like this:

Run('C:\Program Files\PowerCmd\PowerCmd.exe /P=%P');

> Start in:
> %!P

> It worked for me.
> Cheers!

> Nicolas Vaughan

> BTW, nice command-prompt replacement. I think I'll keep it.

> On Fri, Oct 31, 2008 at 11:06 PM, Hongsheng Zhao <zhaohscas <at> yahoo.com.cn> wrote:
> Dear Winedters,

> I want to use the PowerCmd program, which is a more powerful tool
> than the CMD, to substitute the default command promt within winedt.
> So I  setup a Macro menu like this:

> -----------------
> Menu Items:
> PowerCmd

> Macro:
> Run('C:\Program Files\PowerCmd\PowerCmd.exe','%P');

> Start in:
> %P
> -----------------

> I want the PowerCmd started in the current activated tex file's
> directory.  But I found that with the above setting I can only make
> the PowerCmd started in a changeless location.  Why does this
> happen?  What should I adjust the invoke parameters of my Run Macro
> menu to achieve the following aims:

> 1- If the main tex file is set, the PowerCmd will always be started
> in the directory of the main tex file.

> 2- If not main tex file exist, the PowerCmd will always be started
> in the current activated tex file's directory.

> Thanks in advance.

> Regards,
> --
> Hongsheng Zhao <zhaohscas <at> yahoo.com.cn>
> Xinjiang Technical Institute of Physics and Chemistry
> Chinese Academy of Sciences
> GnuPG DSA: 0xD108493
> 2008-11-1

--

-- 
Hongsheng Zhao <zhaohscas <at> yahoo.com.cn> 
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences 
GnuPG DSA: 0xD108493
2008-11-1

Hongsheng Zhao | 1 Nov 16:15
Picon
Favicon

Re: [BULK] Re[2]: [WinEdt] Setup a customized application start toolbar by Run Macro.

On Saturday, November 1, 2008 at 18:17, zhaohscas <at> yahoo.com.cn wrote:
> On Saturday, November 1, 2008 at 13:05, nivaca <at> gmail.com wrote:
>> Hi,
>> Try this:

>> Macro:
>> Run('C:\PowerCmd\PowerCmd.exe','%!P',0,0,'%$("CMDTitle");',1,1);

> According the requirements I've posted here in my last mail, it should
> be written like this:

> Run('C:\Program Files\PowerCmd\PowerCmd.exe /P=%P');

In order to manipulate the directory which include
spaces, the above should change to this:

 Run('C:\Program Files\PowerCmd\PowerCmd.exe /P="%P"');

Regards,
--

-- 
Hongsheng Zhao <zhaohscas <at> yahoo.com.cn> 
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences 
GnuPG DSA: 0xD108493
2008-11-1

Robert | 3 Nov 07:32
Picon

Re: The "set mail file" makes some of the customized toolbars disappear.

On 31.10.2008 4:00 Uhr, Hongsheng Zhao wrote:
> On Monday, October 27, 2008 at 1:54, w.m.l <at> gmx.net wrote:
>> Check whether the files BuildTreeAfter.edt or BuildTreeBefore.edt exist
>> in %b\Local\Events or %B\Local\Events. If so, what do they contain?
> 
> In the above locations in my system, I cann't find any of the above
> files.

That's fine.
What about "%B\Macros\Events\BuildTree{After,Before}.edt" (sorry, forgot 
to ask last time)?

And, more importantly, what about my other question:

>> Strange. Try the following:
> 
>> * select Macros | Define and Run Macro...
>> * enter
>>        CMD("Set Main File");
>>    and click OK
> 
>> Does the toolbar change?
> 
>> Try the same with "BuildTree;". Does the toolbar change?

Regards,
--

-- 
  Robert

Paolo Cavallo | 5 Nov 17:07
Picon

TeX4ht

Salve a tutti,

qualcuno ha realizzato una procedura per lanciare TeX4HT da WinEdt?

Grazie,

Paolo

Lones Smith | 6 Nov 05:13
Picon
Favicon

10 project maximum

How do I raise the 10 project maximum? (Every time I add a new project, 
the 10th gets killed.)

Nicolas Vaughan | 8 Nov 21:12
Picon
Gravatar

Footnote macro problem

Hi,
I wrote the following WinEdt macro for inserting footnotes:

BeginGroup;
Chr(37,"%");
CMD("Enter");
CMD("Indent");
InsText("\footnote{");
CMD("Enter");
InsText("} %");
CMD("Enter");
CMD("Select To Beginning Of Line");
CMD("Backspace");
CMD("Backspace");
CMD('Line Up');
CMD("Go To End Of Line");
EndGroup;
End;

In WinEdt v.5.5 it worked perfectly, but in v.5.6b1 I've got the following problem. Suppose I want to insert a footnote in the following text (a caret marks the place):

In 1298 Alauddin Khilji by deceit had taken Ratan Singh ruler of Chittorgarh as prisoner.^ In ransom Khilji wanted nothing else but Padmini...

In v.5.5 I would get:

In 1298 Alauddin Khilji by deceit had taken Ratan Singh ruler of Chittorgarh as prisoner.%
  \footnote{
  } %
In ransom Khilji wanted nothing else but Padmini...

But in v.5.6b1 I get:

In 1298 Alauddin Khilji by deceit had taken Ratan Singh ruler of Chittorgarh as prisoner.%
  \footnote{
  } % In ransom Khilji wanted nothing else but Padmini...

which I don't want, for the last line ('In ransom...') is now commented.

I believe the problem has something to do with the wrapping/indenting settings. But I haven't a clue as to its solution.
Any clues? Or a better footnote-inserting macro?
Thanks in advance!
Cheers!
icolas Vaughan
Hongsheng Zhao | 9 Nov 13:48
Picon
Favicon

Write a maro for string substitute operation within winedt.

Dear Winedters,

I want to substitute more in-line equations which have the form:

$_my_equation_$ into the following form:

~$\rm{_my_equation_}$~

If I do all of these manually, it would be a drudgery.  Would someone please give me some hints on writing a maro
for string substitute operation to deal with the above case?

Thanks in advance.  

Regards,
--

-- 
Hongsheng Zhao <zhaohscas <at> yahoo.com.cn> 
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences 
GnuPG DSA: 0xD108493
2008-11-9

Nicolas Vaughan | 9 Nov 19:23
Picon
Gravatar

Re: Write a maro for string substitute operation within winedt.

Hi,
Try this:

BeginGroup;
IfSel('0','=',>
      'SelWord(1);>
       IfSel(''0'',''='',>
             ''Ins("~$\rm{__}$~");>
               CMD("Char Left");'',>
             ''InsLabel("~$\rm","{__","__}$~")'');',>
      'InsLabel("~$\rm","{__","__}$~");');
EndGroup;
End;

Hope it works.
Cheers!
Nicolas Vaughan


---------- Forwarded message ----------
From: Hongsheng Zhao <zhaohscas <at> yahoo.com.cn>
Date: Sun, Nov 9, 2008 at 7:48 AM
Subject: [WinEdt] Write a maro for string substitute operation within winedt.
To: "winedt+list <at> wsg.net" <winedt+list <at> wsg.net>


Dear Winedters,

I want to substitute more in-line equations which have the form:

$_my_equation_$ into the following form:

~$\rm{_my_equation_}$~

If I do all of these manually, it would be a drudgery.  Would someone please give me some hints on writing a maro for string substitute operation to deal with the above case?

Thanks in advance.

Regards,
--
Hongsheng Zhao <zhaohscas <at> yahoo.com.cn>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493
2008-11-9



Gmane