Robert B. Gozzoli | 28 Jan 05:55
Picon

Trying to create a shortcut for selecting a font

Dear List members,
i am trying to create a shortcut, in order to select a particular font
in xelatex.

I would like to define a short cut that insert this string.

{\Hiero }, as I am using a particular font for the transliteration of
Egyptian hieroglyphs different from the main font.

I would like to select as shortcut something like CTRL+ALT+h

If someone can help me and show how such thing can be achieved, I will
be extremely grateful.

Roberto Gozzoli

Karl Koeller | 28 Jan 07:52

Re: Trying to create a shortcut for selecting a font

Il 28/01/2012 5.55, Robert B. Gozzoli ha scritto:
> Dear List members,
> i am trying to create a shortcut, in order to select a particular font
> in xelatex.
>
> I would like to define a short cut that insert this string.
>
> {\Hiero }, as I am using a particular font for the transliteration of
> Egyptian hieroglyphs different from the main font.
>
> I would like to select as shortcut something like CTRL+ALT+h
>
> If someone can help me and show how such thing can be achieved, I will
> be extremely grateful.
>
> Roberto Gozzoli
>

In MainMenu.ini, after the lines

MENU="Alternatives"
   CAPTION="Alternatives"
   INVISIBLE=1

insert this:

   ITEM="$Hiero"
     CAPTION="Hiero"
     MACRO="IfSel(2,'>',!'SetSel(0);');InsLabel('','{\Hiero ','}');"
     SHORTCUT="41032::Shift+Alt+H"
(Continue reading)

Robert B. Gozzoli | 28 Jan 23:06
Picon

Re: Trying to create a shortcut for selecting a font

Karl,
I thank you. It works perfectly.

Roberto

On 28 January 2012 13:52, Karl Koeller <karlkoeller <at> googlemail.com> wrote:
> Il 28/01/2012 5.55, Robert B. Gozzoli ha scritto:
>
>> Dear List members,
>> i am trying to create a shortcut, in order to select a particular font
>> in xelatex.
>>
>> I would like to define a short cut that insert this string.
>>
>> {\Hiero }, as I am using a particular font for the transliteration of
>> Egyptian hieroglyphs different from the main font.
>>
>> I would like to select as shortcut something like CTRL+ALT+h
>>
>> If someone can help me and show how such thing can be achieved, I will
>> be extremely grateful.
>>
>> Roberto Gozzoli
>>
>
> In MainMenu.ini, after the lines
>
> MENU="Alternatives"
>  CAPTION="Alternatives"
>  INVISIBLE=1
(Continue reading)

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)

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)

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

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)

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