Gilbert Ritschard | 8 Feb 18:21
Picon
Picon
Favicon

menu item for deleting directory with all its content

Hello everybody,

I would like to add a menu item for deleting a directory with all its 
content and subfolders (namely the Cache_ directory created by CacheSweave).

RemoveDirectory(folder) only works for an empty folder and is not 
applicable.

I tried to add the following in MainMenu.ini and cannot figure out while 
it does not work.

   ITEM="Delete_cache"
     CAPTION="Delete Cache_"
     IMAGE="Delete"
     MACRO="WinExe('','rd /Q /S Cache_','%P','Deleting Cache_');"
     SAVE_INPUT=1
     REQ_FILTER="%P\%N.Rnw"

The command line "rd /Q /S Cache_" makes the expected job in the Command 
window.

Any hint would be welcome.
Cheers.
Gilbert

PS: I am using WinEdt 6 Build: 20110315  (v. 6.0)

WinEdt Team | 9 Feb 01:17

Re: menu item for deleting directory with all its content

> I would like to add a menu item for deleting a directory with all
> its content and subfolders (namely the Cache_ directory created by
> CacheSweave).
>
> RemoveDirectory(folder) only works for an empty folder and is not
> applicable.
>
> I tried to add the following in MainMenu.ini and cannot figure out
> while it does not work.
>
>    ITEM="Delete_cache"
>      CAPTION="Delete Cache_"
>      IMAGE="Delete"
>      MACRO="WinExe('','rd /Q /S Cache_','%P','Deleting Cache_');"
>      SAVE_INPUT=1
>      REQ_FILTER="%P\%N.Rnw"
>
> The command line "rd /Q /S Cache_" makes the expected job in the
> Command window.

This cannot possibly work:-)

You should either write a batch file containing the command

rd /Q /S Cache_

and execute it with WinExe or Run macro from WinEdt. Or else change
the definition to (something like):

  MACRO="WinExe('','cmd.exe /C rd /Q /S Cache_','%P','Deleting Cache_');"
(Continue reading)

Sebastian Ziesche | 9 Feb 08:24
Favicon

Escaping from Compiling

Hi,
I wondered if there is a shortcut (or if I can create one) to quit the
compiling after an error prompt?

I need this for example if I use PDFLatex with .eps pictures in my file,
then I get an error prompt for each picture and just want to compile again
into DVI without caring about the errors.

Which leads me to my second question, how can I tell WinEdt6 to compile a
DVI, then turn it into a PDF and then open Sumatra for viewing this PDF?

Thanks in advance
Sebastian

Gilbert Ritschard | 9 Feb 09:14
Picon
Picon
Favicon

Re: menu item for deleting directory with all its content

Many thanks Alex.
Obviously, I have to use cmd.exe /C to launch DOS commands.
Kind regards.
Gilbert

On 09-Feb-12 1:17, WinEdt Team wrote:
>> I would like to add a menu item for deleting a directory with all
>> its content and subfolders (namely the Cache_ directory created by
>> CacheSweave).
>>
>> RemoveDirectory(folder) only works for an empty folder and is not
>> applicable.
>>
>> I tried to add the following in MainMenu.ini and cannot figure out
>> while it does not work.
>>
>>    ITEM="Delete_cache"
>>      CAPTION="Delete Cache_"
>>      IMAGE="Delete"
>>      MACRO="WinExe('','rd /Q /S Cache_','%P','Deleting Cache_');"
>>      SAVE_INPUT=1
>>      REQ_FILTER="%P\%N.Rnw"
>>
>> The command line "rd /Q /S Cache_" makes the expected job in the
>> Command window.
>
> This cannot possibly work:-)
>
> You should either write a batch file containing the command
>
(Continue reading)

Sotiris Fragkiskos | 9 Feb 09:36
Picon
Gravatar

Re: Escaping from Compiling

Hello,
if I understand your question correctly, you just have to press X at
the prompt, to stop compiling completely, or press S to continue
compiling, ignoring all future errors.

cheers,
Sotiris

On Thu, Feb 9, 2012 at 08:24, Sebastian Ziesche
<sebastian.ziesche <at> kit.edu> wrote:
> Hi,
> I wondered if there is a shortcut (or if I can create one) to quit the
> compiling after an error prompt?
>
> I need this for example if I use PDFLatex with .eps pictures in my file,
> then I get an error prompt for each picture and just want to compile again
> into DVI without caring about the errors.
>
> Which leads me to my second question, how can I tell WinEdt6 to compile a
> DVI, then turn it into a PDF and then open Sumatra for viewing this PDF?
>
> Thanks in advance
> Sebastian

WinEdt Team | 9 Feb 20:25

Re: Escaping from Compiling

> Which leads me to my second question, how can I tell WinEdt6 to
> compile a DVI, then turn it into a PDF and then open Sumatra for
> viewing this PDF?

Options Menu -> Execution Modes. It can all be configured there (in
your case TeX Options| PDFTeXify method).

HINT: If you are new to this, press the Help button in Execution
modes dialog -- you will learn a few things!

Best regards,

alex

Sebastian Ziesche | 14 Feb 11:00
Favicon

Re: Escaping from Compiling

hi again,
I've read the help now and search a bit through all the options, but I
couldn't solve my Problem completely.

What I managed was to get sumatra open my file with .eps pictures after
checking the dvi->pdf option. That was really what I wanted, but. I don't
allways want that =) because if there are no pictures in the file, I still
want the fast direct way without using dvi step.

So what I would like to have is:
- on pressing CTRL+SHIFT+L he should start compiling using dvi->pdf mode
and
- on pressing CTRL+SHIFT+P he should compile with normal PDFTexify

is this possible without too much macro-hacking =) ? (I hope I just missed
an option)

thanks

Am 09.02.2012, 20:25 Uhr, schrieb WinEdt Team <support <at> winedt.com>:

>> Which leads me to my second question, how can I tell WinEdt6 to
>> compile a DVI, then turn it into a PDF and then open Sumatra for
>> viewing this PDF?
>
> Options Menu -> Execution Modes. It can all be configured there (in
> your case TeX Options| PDFTeXify method).
>
> HINT: If you are new to this, press the Help button in Execution
> modes dialog -- you will learn a few things!
(Continue reading)

Yue Zhao | 14 Feb 15:03
Favicon

Fail to create dvi

The winedt6 can compile pdf, but fail to create dvi file.
Is there a setup in the execution modes?
Thanks
SOphie

Sophie Yue Zhao
Outcomes Research and Assessment Group
Duke Clinical Research Institute
North Pavilion 6565
Phone: (919) 668-8528

-----Original Message-----
From: Sebastian Ziesche [mailto:sebastian.ziesche <at> kit.edu] 
Sent: Tuesday, February 14, 2012 5:01 AM
To: winedt+list <at> wsg.net
Subject: Re: [WinEdt] Escaping from Compiling

hi again,
I've read the help now and search a bit through all the options, but I couldn't solve my Problem completely.

What I managed was to get sumatra open my file with .eps pictures after checking the dvi->pdf option. That
was really what I wanted, but. I don't allways want that =) because if there are no pictures in the file, I
still want the fast direct way without using dvi step.

So what I would like to have is:
- on pressing CTRL+SHIFT+L he should start compiling using dvi->pdf mode and
- on pressing CTRL+SHIFT+P he should compile with normal PDFTexify

is this possible without too much macro-hacking =) ? (I hope I just missed an option)

(Continue reading)

Ulrike Fischer | 14 Feb 15:08
Picon

Re: Fail to create dvi

Am Tue, 14 Feb 2012 14:03:04 +0000 schrieb Yue Zhao:

> The winedt6 can compile pdf, but fail to create dvi file.
> Is there a setup in the execution modes?

Winedt6 can create dvi files without problems if the document is
correct. Quite probably your document is faulty, but without more
informations (example, error message, log-file) nobody will be able
to help you. 

--

-- 
Ulrike Fischer 

WinEdt Team | 14 Feb 19:07

Re: Escaping from Compiling

> So what I would like to have is:
> - on pressing CTRL+SHIFT+L he should start compiling using dvi->pdf mode
> and
> - on pressing CTRL+SHIFT+P he should compile with normal PDFTexify
>
> is this possible without too much macro-hacking =) ? (I hope I just missed
> an option)

This can be done by defining two menu items (one is already there)
and assign different shortcuts to them.

  MACRO="Assign(!'PDFTeXify-Method'!'2');Exe('%b\Exec\TeX\PDFTeXify.edt');"

will use dvi -> pdf and

  MACRO="Assign(!'PDFTeXify-Method'!'0');Exe('%b\Exec\TeX\PDFTeXify.edt');"

will use PDFLaTeX...

> What I managed was to get sumatra open my file with .eps pictures
> after checking the dvi->pdf option. That was really what I wanted,
> but. I don't allways want that =) because if there are no pictures
> in the file, I still want the fast direct way without using dvi
> step.

So you are a victim of your image which that is not compatible
with pdf. When you use your dvi "method" all eps files are
converted (using GS) every time you compile your document. That's
why it is slow and it makes no sense to be doing things like this.
If you have eps pictures but want to produce pdf document you
(Continue reading)


Gmane