CuriousTo Learn | 24 Aug 14:16

Modify Greek Letter Shortcut in Winedt

Hello,

Winedt has this very useful capability of entering greek letters using the
shortcut "Alt+G" followed by say "a" for "\alpha ", or "Alt+G" followed by say
"b" for "\beta " (all, without the quotes). 

The problem is that this adds a space at the end of the greek letter term. For
example, it gives "\alpha ", but I would like to have "\alpha", i.e., without
the space at the end. Does anyone know what I need to change? 

Thanks very much.

Philip TAYLOR (Ret'd | 24 Aug 14:35

Re: Modify Greek Letter Shortcut in Winedt

It's very unlikely that you would want
"\alpha " without the trailing space;
if it /were/ "\alpha", and were immediately
followed by another letter (as in
"I am \alphaand\omega"), the first "\alpha"
would not be recognised as such and you
would generate an "unrecognised control word
'\alphaand'".  As the space in "\alpha " can
never generate a real space in the output
(within a standard catcode regime), the
space is actually beneficial rather than
deleterious.

Philip TAYLOR
--------
CuriousTo Learn wrote:
 > Hello,
 >
 > Winedt has this very useful capability of entering greek letters using the
 > shortcut "Alt+G" followed by say "a" for "\alpha ", or "Alt+G" followed by say
 > "b" for "\beta " (all, without the quotes).
 >
 > The problem is that this adds a space at the end of the greek letter term. For
 > example, it gives "\alpha ", but I would like to have "\alpha", i.e., without
 > the space at the end. Does anyone know what I need to change?
 >
 > Thanks very much.
 >
 >

(Continue reading)

CuriousTo Learn | 24 Aug 16:48

Re: Modify Greek Letter Shortcut in Winedt

Philip, thanks for your response. Actually, often use these greek letters with
subscripts or superscripts. In those cases, I do not need the space. For
example, I want say "\alpha_{i}". Also, when I need the space it seems easier to
press the space-bar than it is easier to press backspace. 

I would appreciate if you are anyone could let me know if this change can be
made very easily. If not, then I will forget about it. But I would like to try
these letters without the trailing space.

Thanks.

Philip TAYLOR | 24 Aug 17:03

Re: Re: Modify Greek Letter Shortcut in Winedt


CuriousTo Learn wrote:
> Philip, thanks for your response. Actually, often use these greek letters with
> subscripts or superscripts. In those cases, I do not need the space. For
> example, I want say "\alpha_{i}". Also, when I need the space it seems easier to
> press the space-bar than it is easier to press backspace. 

Ah, but you need /never/ press the backspace !  \alpha _{i} still
cannot introduce an unwanted space into the typeset output, since
the control-word scanner will soak up the space following \alpha
before it ever gets into the typesettable input stream :-)

> I would appreciate if you are anyone could let me know if this change can be
> made very easily. If not, then I will forget about it. But I would like to try
> these letters without the trailing space.

I am afraid I am very much a WinEDT beginner.

** Phil.

Kuznetsov A.N. | 24 Aug 18:00
Favicon

Re: Re: Modify Greek Letter Shortcut in Winedt


Hello, CuriousTo Learn,
 24.08.2008 18:48 you wrote:
> I would appreciate if you are anyone could let me know if this change can be
> made very easily. If not, then I will forget about it. But I would like to try
> these letters without the trailing space.
You should edit macro commands for this hotkeys. By default, in WinEdt 5.5
"Alt+G" shortcut is binded with "Greek" popup menu, so, you should edit this menu:

Open "Options->Menu Setup..." dialog and choose "Popup menus" page.
Then in "Items" list choose "Greek" and press "Edit menu..." button (or Edit..."
in right click menu for this item).
Now you can edit associated macro commands.

For example, "&Delta" item have "Shift+D" shortcut and 'Ins("\Delta ")' macro
(change it to Ins("\Delta")).
You should delete spaces in macro commands for all items of this popup menu.

Sorry for my English.
--
Best regards,
 Kuznetsov Andrey           pm_kan <at> mail.ru
CuriousTo Learn | 25 Aug 01:11

Re: Modify Greek Letter Shortcut in Winedt


Thanks very much Andrey. That worked great. Yesterday, 
through my search I figured out that this information was 
somewhere in the "Greek" Popup menu. I went to Options->Menu Setup 
and saw the "Popups" entry in the "Main Menu" page. 
Of course, I could not find anything to do with greek letters 
there, and had to give up. 

Regards,
curioustolearn


Gmane