WinEdt.org | 1 Dec 14:25

Mailing List Guidelines


      WinEdt Mailing List Guidelines
      ==============================

   These guidelines are sent to the WinEdt Mailing List once a month.
   Please keep them in mind when posting to the list.

   ---------------------------------------------------------------------

* What To Post

   The WinEdt Mailing List is for questions about the WinEdt editor. You
   should  not post questions concerning LaTeX, MiKTeX, BibTeX et al. to
   the mailing list. WinEdt is a shell/editor for  LaTeX  etc.  and  the
   list  is  intended  to  answer questions concerning WinEdt, not LaTeX
   etc.
   (Sometimes it might be difficult  to  decide  whether  a  problem  is
   related to WinEdt or to MiKTeX, LaTeX etc. A rule of thumb is: If you
   are having the same  problems  when  running  the  program  from  the
   command line, it is NOT related to WinEdt.)

   A lot of questions are being asked over and over  again.  Check  that
   your question isn't already answered in the WinEdt FAQ at
      <http://www.winedt.org/Doc/FAQ>
   or in the mailing list archives at
      <http://groups.yahoo.com/group/WinEdt>.

   When sending a question to the mailing list, try to be specific.
   Include (at least)
     + the Build number of your WinEdt (see "Help | About WinEdt...")
(Continue reading)

claus | 1 Dec 15:33
Picon

something like 'case'


I´m a really newbie and looking desperatly for a procedure like
'case..'  to  differ keystrokes, characters, integers  or so  like

case
  GetString(' press key ...') =  'A'   do somethingA,
  GetString(' press key ...') =  'b'   do somethingB,
  GetString(' press key ...') =  'C'   do somethingC,
end case ..

or so ...   -  I know, that the syntax differs from above ...  it´s
just for understanding what i mean..

my construct with

     IfIStr("%!1","g","=","DoSomethingG
l","(IfIStr("%!1","e","=","DoSomethingE","" )"));

does not work correctly (why?)  and if so, it wouldn´t be flexible
enough.
Is it not possible to have easily more than one choice ..

I read the online help thru, but the only conditional controls where  
if, loop and  and jump  - statements ..??

any  hint ?  or makro?

thanxalot,  claus

-->
(Continue reading)

Nicolas Vaughan | 1 Dec 16:58
Picon
Gravatar

Re: something like 'case'

Hi,
Just create a key-binding for each command/macro. You needn't the 'case' option. Do this by entering 'Menu setup' and adding the commands/macros key-bindings there. Consult the manual for details.
Regards,
Nicolas Vaughan

On Dec 1, 2007 9:33 AM, claus <c-wh <at> online.de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hai,

I´m a really newbie and looking desperatly for a procedure like
'case..'  to  differ keystrokes, characters, integers  or so  like

case
 GetString(' press key ...') =  'A'   do somethingA,
 GetString(' press key ...') =  'b'   do somethingB,
 GetString(' press key ...') =  'C'   do somethingC,
end case ..

or so ...   -  I know, that the syntax differs from above ...  it´s
just for understanding what i mean..

my construct with

    IfIStr("%!1","g","=","DoSomethingG
l","(IfIStr("%!1","e","=","DoSomethingE","" )"));

does not work correctly (why?)  and if so, it wouldn´t be flexible
enough.
Is it not possible to have easily more than one choice ..

I read the online help thru, but the only conditional controls where
if, loop and  and jump  - statements ..??


any  hint ?  or makro?

thanxalot,  claus




- -->
 i´m working on my own \tex environment  and would like to have a
behaviour like this one:

pressing ALT-key
inserts
\begin{}

\end{}
- -  w h i l e  holding the ALT-key pressing a second key  like
e  ->   would insert equation to the proper place ,
i   ->   itemize
t    ->  tabbing
c   ->  center
m ->  matharry and so on,

perhaps someone did so before ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHUXDPdNAbm03Zll8RApZ+AKC5LKm9UsRK6Ava7t10PWPEEESeyQCgkuV+
CWrPN+9upkVgkbwfOvOzvFQ=
=WXOn
-----END PGP SIGNATURE-----


Justin Zhu | 2 Dec 01:12
Picon
Picon
Favicon

error message does not match line number

Hi,

I have been using Winedt for a while. This was not a 
problem before. Recently, when I use 'latex' to compile, 
the line number indicated in the message does not match 
then line number displayed at the bottom left corner of 
the error location. I am wondering what may be the reason?

Justin

JOSE FLORES | 2 Dec 12:35
Picon
Favicon

RE: something like 'case'

Hello,
 
 
I have never modified  anything from my original WinEdt.
 
These seem like a great set of macros. Could you please give more details on the procedure or  a good example?


Jose D. Flores, PhD.
Professor of Mathematics
Department of Mathematical Sciences
The University of South Dakota
Vermillion, SD 57069.
www.usd.edu~jflores
"Si el saber no es un derecho seguro es izquierdo"  Silvio Rodriguez



Date: Sat, 1 Dec 2007 10:58:59 -0500
From: nivaca <at> gmail.com
To: winedt+list <at> wsg.net
Subject: Re: [WinEdt] something like 'case'

Hi,
Just create a key-binding for each command/macro. You needn't the 'case' option. Do this by entering 'Menu setup' and adding the commands/macros key-bindings there. Consult the manual for details.
Regards,
Nicolas Vaughan

On Dec 1, 2007 9:33 AM, claus <c-wh <at> online.de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hai,

I´m a really newbie and looking desperatly for a procedure like
'case..'  to  differ keystrokes, characters, integers  or so  like

case
 GetString(' press key ...') =  'A'   do somethingA,
 GetString(' press key ...') =  'b'   do somethingB,
 GetString(' press key ...') =  'C'   do somethingC,
end case ..

or so ...   -  I know, that the syntax differs from above ...  it´s
just for understanding what i mean..

my construct with

    IfIStr("%!1","g","=","DoSomethingG
l","(IfIStr("%!1","e","=","DoSomethingE","" )"));

does not work correctly (why?)  and if so, it wouldn´t be flexible
enough.
Is it not possible to have easily more than one choice ..

I read the online help thru, but the only conditional controls where
if, loop and  and jump  - statements ..??


any  hint ?  or makro?

thanxalot,  claus




- -->
 i´m working on my own \tex environment  and would like to have a
behaviour like this one:

pressing ALT-key
inserts
\begin{}

\end{}
- -  w h i l e  holding the ALT-key pressing a second key  like
e  ->   would insert equation to the proper place ,
i   ->   itemize
t    ->  tabbing
c   ->  center
m ->  matharry and so on,

perhaps someone did so before ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHUXDPdNAbm03Zll8RApZ+AKC5LKm9UsRK6Ava7t10PWPEEESeyQCgkuV+
CWrPN+9upkVgkbwfOvOzvFQ=
=WXOn
-----END PGP SIGNATURE-----


WinEdt Team | 2 Dec 22:39

Re: two small issues

> 1. in incremental search: the keyboard shortcut for
> Case-sensitive and Relaxed spacing is case-sensitive whereas in
> the other two options it is not. (it shouldn't be, I hope)

Click on the Popup Menu button in this dialog and select Modal
Dialog option. Then restart the dialog and everything will be
fine.

For non-modal dialogs Shortcuts that are used in the Main Menu
prevail against Hot Keys in the Dialog. That's why some hot
keys work and other don't (they are used in the Main Menu)...

> 2. not exactly winedt issue, but still: why sometimes it cannot
> generate the dvi file (gives an error message 'I can't write on
> file file-name.dvi'). When I press 'enter' everything continues
> fine and it creates the dvi file. Sometimes it has no problem
> when yap is open and sometimes it doesn't - I cannot figure out
> when.

This only happens if yap is opened. WinEdt does not lock the
dvi file (it has no reason to do so as it cannot read or
interpret this file in any way). Thus there is not much that
WinEdt can do about this.

Best regards,

alex

WinEdt Team | 2 Dec 22:40

Re: error message does not match line number

> I have been using Winedt for a while. This was not a
> problem before. Recently, when I use 'latex' to compile,
> the line number indicated in the message does not match
> then line number displayed at the bottom left corner of
> the error location. I am wondering what may be the reason?

The only reason that comes to mind is that you might have
changed the method of wrapping and you are now using soft
wrapping. Check the configuration wizard for more information
on wrapping: some users consider anything but soft wrapping a
bug while others take advantage of "smart" wrapping.

However, if you choose to show line numbers in the left panel
(Ctrl+= or use a popup menu after clicking on the left margin)
you'll see line "proper" numbers as seen by TeX even if you are
using soft wrapping.

Best regards,

alex

WinEdt Team | 2 Dec 22:43

Re: something like 'case'

>  i´m working on my own \tex environment  and would like to have a
> behaviour like this one:
>
> pressing ALT-key
> inserts
> \begin{}
>
> \end{}
> - -  w h i l e  holding the ALT-key pressing a second key  like
> e  ->   would insert equation to the proper place ,
> i   ->   itemize
> t    ->  tabbing
> c   ->  center
> m ->  matharry and so on,
>
> perhaps someone did so before ?

This cannot be done because responding to Alt Key Down event
with a custom action would be against all Windows keyboard
interface guidelines. Alt key can be used as a qualifier to
other keys (Alt+Tab, for example, is a Windows Command and Alt
Down and Up is reserved to enter a menu and Alt+key is used to
respond to hot characters in the menu or dialogs)...

However, the closest interface to what you want that is
available in WinEdt is a double-shortcut mechanism (one would
quickly run out of single shortcuts). This is very similar to
emacs interface: the first shortcut activates an invisible
popup menu and the second one executes the item inside this
menu. There already is such a popup menu called Environments
(see the Menu Setup Dialog). By default no shortcut is assigned
but you can change this by assigning Alt+E (or some other key
to it). After that Alt+E+(Alt)+E will inserts an equation
environment etc...

You can also customize the available environments inside this
menu. This is as close as you'll get to your idea of inserting
environments (or other items) through (double) shortcuts. The
help in the Menu Setup Dialog explains how this mechanism
works...

Best regards,

alex

> or so ...   -  I know, that the syntax differs from above ...  it´s
> just for understanding what i mean..
>
> my construct with
>
>     IfIStr("%!1","g","=","DoSomethingG
> l","(IfIStr("%!1","e","=","DoSomethingE","" )"));
>
> does not work correctly (why?)  and if so, it wouldn´t be flexible
> enough.
> Is it not possible to have easily more than one choice ..
>
> I read the online help thru, but the only conditional controls where
> if, loop and  and jump  - statements ..??

Of course, you can not read the string Alt+X or anything like
this so this would not be particularly useful. The problem with
IfElse macros is that the code itself is a passed as a string
parameter which makes nesting such code impractical.

   IfIStr("%!1","g","=","DoSomethingG;JMP('Done');");
   IfIStr("%!1","e","=","DoSomethingE;JMP('Done');");
   etc...
:Done:: =========================

or if there is nothing else to do after:

   IfIStr("%!1","g","=","DoSomethingG;Exit;");
   IfIStr("%!1","e","=","DoSomethingE;Exit;");
   etc...

However, you will not be able to read shortcuts into a string
so this is not what you really need for your interface...

Justin Zhu | 3 Dec 00:25
Picon
Picon
Favicon

line space in section headings

Hi,

I am wondering if there is a way to change the vertical 
space between lines in a section heading? I know how to do 
that in a paragraph, but not sure about section headings. 
I have a long section heading which extend to a few lines. 
Currently, the space between the lines is too large.

Thank you.

Justin

Nicolas Vaughan | 3 Dec 01:15
Picon
Gravatar

Re: line space in section headings

Hi,
I think that's a non-WinEdt question. Anyway, you can use the LaTeX titlesec package. See documentation here:
http://www.ctan.org/get/macros/latex/contrib/titlesec/titlesec.pdf

Regards,
Nicolas Vaughan

On Dec 2, 2007 6:25 PM, Justin Zhu <j.zhu <at> imb.uq.edu.au> wrote:
Hi,

I am wondering if there is a way to change the vertical
space between lines in a section heading? I know how to do
that in a paragraph, but not sure about section headings.
I have a long section heading which extend to a few lines.
Currently, the space between the lines is too large.

Thank you.

Justin



Gmane