andre added


> The attached patch allows  'M-x math-greek a'  to produce an \alpha if
> typed (or bound to a key) outside mathed.

Thanks.  My hero :)

Do we apply directly or is my cvs building it in as I speak?

> I personally don't like it. IMO somebody who wants math should say so by
> typing M-m first, but there are obviously people with a strong feeling that
> this is wrong...

Keystrokes.  It's all about keystrokes.  M-g (or M-m g) as a prefix for 
a greek character in the middle of a sentence is trivial enough for 
finger-memory, and doesn't interrupt the flow of thought. By the time 
you're getting to a third keystroke, it's getting in the way, and you 
stop mid sentence.

Except for editing equations with arrays of super-, sub-, sub-super-, 
etc.- scripts, raw LaTeX is fits my way of thinking more.  LyX gets rid 
of all those horrid keystrokes.  This also plays heavily  
into my use of vim rather than emacs.  

hawk, who will drool uncontrollably if someone suggests a way to mix 
vim commands into lyx . . .


> And there is a problem with the cursor position (ends up in front of the
> created math inset instead after it), but this should be fixable from withi
> mathed...
> 
> Andre'
> 
> -- 
> André Pönitz ............................................. [EMAIL PROTECTED]
> 
> --jI8keyz6grp/JLjh
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: attachment; filename="greek.diff"
> 
> Index: BufferView_pimpl.C
> ===================================================================
> RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView_pimpl.C,v
> retrieving revision 1.160
> diff -u -p -r1.160 BufferView_pimpl.C
> --- BufferView_pimpl.C        2001/08/23 09:04:41     1.160
> +++ BufferView_pimpl.C        2001/08/30 09:40:16
> @@ -2913,6 +2913,12 @@ bool BufferView::Pimpl::Dispatch(kb_acti
>       case LFUN_MATH_MODE:             // Open or create an inlined math inset 
>               mathDispatchMathMode(bv_, argument);
>               break;
> +
> +     // on special request of Richard Hawkins this should stay accessible
> +     // directly from the "outside world"
> +     case LFUN_GREEK: 
> +             mathDispatchGreek(bv_, argument);
> +             break;
>               
>       case LFUN_CITATION_INSERT:
>       {
> 
> --jI8keyz6grp/JLjh--
> 

-- 
Prof. Richard E. Hawkins, Esq.                  /"\   ASCII ribbon campaign 
[EMAIL PROTECTED]  Smeal 178  (814) 375-4700      \ /   against HTML mail
These opinions will not be those of              X    and postings 
Penn State until it pays my retainer.           / \ 


Reply via email to