Re: \cite, \ref

2010-09-08 Thread Guenter Milde
On 2010-09-07, Pavel Sanda wrote:
 Guenter Milde wrote:
 The generic version of this would be an LFUN that re-lyxes the selection.
 As in math and relyx of files, any unknown construct will be converted to
 an ERT box.

 yes elegant solutions which looks even less invasive from the coding view. no
 new ert inset, just new lfun which checks whether we are inside ert and then
 replace inset with the result of relyx... 

For consistency with the current math conversions and ease of use, I
suggest the following behaviour (pseudo code):

if selection is defined:
   pass
elif we are inside an ERT inset:
   select ERT inset content
   dissolve ERT
else
   select word# word-backward; word-forward-select
   
relyx selection

replace selection with result


Maybe we can provide an even more generic interface with the lfuns:

  clipboard-paste import format
convert clipboard from format to LyX markup and insert

  copy-export format
copy selection 
convert into format
put into clipboard
  
  cut-export format
cut selection
convert into format
put into clipboard

were format can be everything LyX knows to import (LaTeX, HTML, CSV,
...).

Then we might define

  import-selection format
cut
clipboard-paste import format

and also

  relyx
cut
clipboard-paste import LaTeX

as special cases. However, this changes the clipboard content, so maybe a
separate implementation is better.

Günter
  



Re: \cite, \ref

2010-09-08 Thread Guenter Milde
On 2010-09-07, Pavel Sanda wrote:
 Guenter Milde wrote:
 The generic version of this would be an LFUN that re-lyxes the selection.
 As in math and relyx of files, any unknown construct will be converted to
 an ERT box.

 yes elegant solutions which looks even less invasive from the coding view. no
 new ert inset, just new lfun which checks whether we are inside ert and then
 replace inset with the result of relyx... 

For consistency with the current math conversions and ease of use, I
suggest the following behaviour (pseudo code):

if selection is defined:
   pass
elif we are inside an ERT inset:
   select ERT inset content
   dissolve ERT
else
   select word# word-backward; word-forward-select
   
relyx selection

replace selection with result


Maybe we can provide an even more generic interface with the lfuns:

  clipboard-paste import format
convert clipboard from format to LyX markup and insert

  copy-export format
copy selection 
convert into format
put into clipboard
  
  cut-export format
cut selection
convert into format
put into clipboard

were format can be everything LyX knows to import (LaTeX, HTML, CSV,
...).

Then we might define

  import-selection format
cut
clipboard-paste import format

and also

  relyx
cut
clipboard-paste import LaTeX

as special cases. However, this changes the clipboard content, so maybe a
separate implementation is better.

Günter
  



Re: \cite, \ref

2010-09-08 Thread Guenter Milde
On 2010-09-07, Pavel Sanda wrote:
> Guenter Milde wrote:
>> The generic version of this would be an LFUN that re-lyxes the selection.
>> As in math and relyx of files, any unknown construct will be converted to
>> an ERT box.

> yes elegant solutions which looks even less invasive from the coding view. no
> new ert inset, just new lfun which checks whether we are inside ert and then
> replace inset with the result of relyx... 

For consistency with the current math conversions and ease of use, I
suggest the following behaviour (pseudo code):

if "selection is defined":
   pass
elif "we are inside an ERT inset":
   select ERT inset content
   dissolve ERT
else
   select word# word-backward; word-forward-select
   
relyx selection

replace selection with result


Maybe we can provide an even more generic interface with the lfuns:

  clipboard-paste import 
convert clipboard from  to LyX markup and insert

  copy-export 
copy selection 
convert into 
put into clipboard
  
  cut-export 
cut selection
convert into 
put into clipboard

were  can be everything LyX knows to import (LaTeX, HTML, CSV,
...).

Then we might define

  import-selection 
cut
clipboard-paste import 

and also

  relyx
cut
clipboard-paste import LaTeX

as special cases. However, this changes the clipboard content, so maybe a
separate implementation is better.

Günter
  



Re: \cite, \ref

2010-09-07 Thread Pavel Sanda
Julien Rioux wrote:
 On 06/09/2010 1:38 PM, Hal Kierstead wrote:
 Still, for a wish list, it would be nice to have a special tex mode, sort 
 of like math mode, so that simple things like \noindent, \cite, etc. could 
 be automatically entered into LyX.

 That's on my wishlist too. For users coming from the TeX world this would 
 be wonderful.

hmm, that could be special derivate of ert inset, which would have
enough intelligence to mutate itself into other insets, like cite one
after pressing tab eg.

pavel


Re: \cite, \ref

2010-09-07 Thread Guenter Milde
On 2010-09-07, Pavel Sanda wrote:
 Julien Rioux wrote:
 On 06/09/2010 1:38 PM, Hal Kierstead wrote:
 Still, for a wish list, it would be nice to have a special tex mode, sort 
 of like math mode, so that simple things like \noindent, \cite, etc. could 
 be automatically entered into LyX.

 That's on my wishlist too. For users coming from the TeX world this would 
 be wonderful.

 hmm, that could be special derivate of ert inset, which would have
 enough intelligence to mutate itself into other insets, like cite one
 after pressing tab eg.

The generic version of this would be an LFUN that re-lyxes the selection.
As in math and relyx of files, any unknown construct will be converted to
an ERT box.

This way I can write arbitrary LaTeX code, select it and then convert
it to LyX objects (just what we do with math when selecting a region an
pressing Ctrl-M).


Günter



Re: \cite, \ref

2010-09-07 Thread Pavel Sanda
Guenter Milde wrote:
 The generic version of this would be an LFUN that re-lyxes the selection.
 As in math and relyx of files, any unknown construct will be converted to
 an ERT box.

yes elegant solutions which looks even less invasive from the coding view. no
new ert inset, just new lfun which checks whether we are inside ert and then
replace inset with the result of relyx... 

pavel


Re: \cite, \ref

2010-09-07 Thread Pavel Sanda
Julien Rioux wrote:
 On 06/09/2010 1:38 PM, Hal Kierstead wrote:
 Still, for a wish list, it would be nice to have a special tex mode, sort 
 of like math mode, so that simple things like \noindent, \cite, etc. could 
 be automatically entered into LyX.

 That's on my wishlist too. For users coming from the TeX world this would 
 be wonderful.

hmm, that could be special derivate of ert inset, which would have
enough intelligence to mutate itself into other insets, like cite one
after pressing tab eg.

pavel


Re: \cite, \ref

2010-09-07 Thread Guenter Milde
On 2010-09-07, Pavel Sanda wrote:
 Julien Rioux wrote:
 On 06/09/2010 1:38 PM, Hal Kierstead wrote:
 Still, for a wish list, it would be nice to have a special tex mode, sort 
 of like math mode, so that simple things like \noindent, \cite, etc. could 
 be automatically entered into LyX.

 That's on my wishlist too. For users coming from the TeX world this would 
 be wonderful.

 hmm, that could be special derivate of ert inset, which would have
 enough intelligence to mutate itself into other insets, like cite one
 after pressing tab eg.

The generic version of this would be an LFUN that re-lyxes the selection.
As in math and relyx of files, any unknown construct will be converted to
an ERT box.

This way I can write arbitrary LaTeX code, select it and then convert
it to LyX objects (just what we do with math when selecting a region an
pressing Ctrl-M).


Günter



Re: \cite, \ref

2010-09-07 Thread Pavel Sanda
Guenter Milde wrote:
 The generic version of this would be an LFUN that re-lyxes the selection.
 As in math and relyx of files, any unknown construct will be converted to
 an ERT box.

yes elegant solutions which looks even less invasive from the coding view. no
new ert inset, just new lfun which checks whether we are inside ert and then
replace inset with the result of relyx... 

pavel


Re: \cite, \ref

2010-09-07 Thread Pavel Sanda
Julien Rioux wrote:
> On 06/09/2010 1:38 PM, Hal Kierstead wrote:
>> Still, for a wish list, it would be nice to have a special tex mode, sort 
>> of like math mode, so that simple things like \noindent, \cite, etc. could 
>> be automatically entered into LyX.
>
> That's on my wishlist too. For users coming from the TeX world this would 
> be wonderful.

hmm, that could be special derivate of ert inset, which would have
enough intelligence to mutate itself into other insets, like cite one
after pressing tab eg.

pavel


Re: \cite, \ref

2010-09-07 Thread Guenter Milde
On 2010-09-07, Pavel Sanda wrote:
> Julien Rioux wrote:
>> On 06/09/2010 1:38 PM, Hal Kierstead wrote:
>>> Still, for a wish list, it would be nice to have a special tex mode, sort 
>>> of like math mode, so that simple things like \noindent, \cite, etc. could 
>>> be automatically entered into LyX.

>> That's on my wishlist too. For users coming from the TeX world this would 
>> be wonderful.

> hmm, that could be special derivate of ert inset, which would have
> enough intelligence to mutate itself into other insets, like cite one
> after pressing tab eg.

The generic version of this would be an LFUN that re-lyxes the selection.
As in math and relyx of files, any unknown construct will be converted to
an ERT box.

This way I can write "arbitrary" LaTeX code, select it and then convert
it to LyX objects (just what we do with math when selecting a region an
pressing Ctrl-M).


Günter



Re: \cite, \ref

2010-09-07 Thread Pavel Sanda
Guenter Milde wrote:
> The generic version of this would be an LFUN that re-lyxes the selection.
> As in math and relyx of files, any unknown construct will be converted to
> an ERT box.

yes elegant solutions which looks even less invasive from the coding view. no
new ert inset, just new lfun which checks whether we are inside ert and then
replace inset with the result of relyx... 

pavel


Re: \cite, \ref

2010-09-06 Thread Richard Heck

On 09/04/2010 08:13 PM, Hal Kierstead wrote:

Pavel -

It does not work for me. Do you know the name of the function to which alt-o  
is mapped?

   
This would be one of the really stupid things about OSX: No shortcuts. 
Drives me insane when I use Macs.


rh



On Sep 4, 2010, at 5:04 PM, Pavel Sanda wrote:

   

Hal Kierstead wrote:
 

BH -

This certainly is progress---thanks.  Also dialog-show-new-inset citation opens 
the citation dialog.  Is there a way to jump directly to the OK button after 
choosing a cross-reference from the list in the dialog instead of pushing tab 6 
times?
   

alt+o, at least on linux...
pavel
 
   




Re: \cite, \ref

2010-09-06 Thread Pavel Sanda
Richard Heck wrote:
 This would be one of the really stupid things about OSX: No shortcuts. 

my goodness how is one supposed to work with keyboard?
p


Re: \cite, \ref

2010-09-06 Thread Hal Kierstead
The other dialogs in LyX work properly on Macs.  It is just this one.  The OK 
button should be highlighted so that hitting return accepts, but it is not.  
Moreover, even if you navigate to it so that it is highlighted, hitting return 
does not accept.  

I guess this is a bug.  Do you all agree?

Still, for a wish list, it would be nice to have a special tex mode, sort of 
like math mode, so that simple things like \noindent, \cite, etc. could be 
automatically entered into LyX.  One of the things about Scientific word and 
especially LyX, is that it provides a relatively painless way to learn tex.  Of 
course, the obvious huge benefit is that you can type your first draft in a 
human format. However, now I always make all my final tweaks in tex.

Hal

On Sep 6, 2010, at 7:50 AM, Pavel Sanda wrote:

 Richard Heck wrote:
 This would be one of the really stupid things about OSX: No shortcuts. 
 
 my goodness how is one supposed to work with keyboard?
 p



Re: \cite, \ref

2010-09-06 Thread BH
On Mon, Sep 6, 2010 at 1:38 PM, Hal Kierstead kierst...@asu.edu wrote:
 The other dialogs in LyX work properly on Macs.  It is just this one.  The OK 
 button should be highlighted so that hitting return accepts, but it is not.  
 Moreover, even if you navigate to it so that it is highlighted, hitting 
 return does not accept.

 I guess this is a bug.  Do you all agree?

What dialog are we talking about? The insert cross-reference dialog
works (mostly) fine for me. If I have a document with at least 2
labels, I can tab to the label list, type the initial letters of the
label name I'm interested in (or use the arrow keys), and once it's
selected hit return for OK. The keyboard works fine here.

The only problem is in a document with only one label: then, the
keyboard does not work for selecting the label name. That is a bug.

... Or are we talking about a different dialog?

BH


Re: \cite, \ref

2010-09-06 Thread Julien Rioux

On 06/09/2010 1:38 PM, Hal Kierstead wrote:

Still, for a wish list, it would be nice to have a special tex mode, sort of 
like math mode, so that simple things like \noindent, \cite, etc. could be 
automatically entered into LyX.


That's on my wishlist too. For users coming from the TeX world this 
would be wonderful.


--
Julien



Re: \cite, \ref

2010-09-06 Thread Richard Heck

On 09/04/2010 08:13 PM, Hal Kierstead wrote:

Pavel -

It does not work for me. Do you know the name of the function to which alt-o  
is mapped?

   
This would be one of the really stupid things about OSX: No shortcuts. 
Drives me insane when I use Macs.


rh



On Sep 4, 2010, at 5:04 PM, Pavel Sanda wrote:

   

Hal Kierstead wrote:
 

BH -

This certainly is progress---thanks.  Also dialog-show-new-inset citation opens 
the citation dialog.  Is there a way to jump directly to the OK button after 
choosing a cross-reference from the list in the dialog instead of pushing tab 6 
times?
   

alt+o, at least on linux...
pavel
 
   




Re: \cite, \ref

2010-09-06 Thread Pavel Sanda
Richard Heck wrote:
 This would be one of the really stupid things about OSX: No shortcuts. 

my goodness how is one supposed to work with keyboard?
p


Re: \cite, \ref

2010-09-06 Thread Hal Kierstead
The other dialogs in LyX work properly on Macs.  It is just this one.  The OK 
button should be highlighted so that hitting return accepts, but it is not.  
Moreover, even if you navigate to it so that it is highlighted, hitting return 
does not accept.  

I guess this is a bug.  Do you all agree?

Still, for a wish list, it would be nice to have a special tex mode, sort of 
like math mode, so that simple things like \noindent, \cite, etc. could be 
automatically entered into LyX.  One of the things about Scientific word and 
especially LyX, is that it provides a relatively painless way to learn tex.  Of 
course, the obvious huge benefit is that you can type your first draft in a 
human format. However, now I always make all my final tweaks in tex.

Hal

On Sep 6, 2010, at 7:50 AM, Pavel Sanda wrote:

 Richard Heck wrote:
 This would be one of the really stupid things about OSX: No shortcuts. 
 
 my goodness how is one supposed to work with keyboard?
 p



Re: \cite, \ref

2010-09-06 Thread BH
On Mon, Sep 6, 2010 at 1:38 PM, Hal Kierstead kierst...@asu.edu wrote:
 The other dialogs in LyX work properly on Macs.  It is just this one.  The OK 
 button should be highlighted so that hitting return accepts, but it is not.  
 Moreover, even if you navigate to it so that it is highlighted, hitting 
 return does not accept.

 I guess this is a bug.  Do you all agree?

What dialog are we talking about? The insert cross-reference dialog
works (mostly) fine for me. If I have a document with at least 2
labels, I can tab to the label list, type the initial letters of the
label name I'm interested in (or use the arrow keys), and once it's
selected hit return for OK. The keyboard works fine here.

The only problem is in a document with only one label: then, the
keyboard does not work for selecting the label name. That is a bug.

... Or are we talking about a different dialog?

BH


Re: \cite, \ref

2010-09-06 Thread Julien Rioux

On 06/09/2010 1:38 PM, Hal Kierstead wrote:

Still, for a wish list, it would be nice to have a special tex mode, sort of 
like math mode, so that simple things like \noindent, \cite, etc. could be 
automatically entered into LyX.


That's on my wishlist too. For users coming from the TeX world this 
would be wonderful.


--
Julien



Re: \cite, \ref

2010-09-06 Thread Richard Heck

On 09/04/2010 08:13 PM, Hal Kierstead wrote:

Pavel -

It does not work for me. Do you know the name of the function to which alt-o  
is mapped?

   
This would be one of the really stupid things about OSX: No shortcuts. 
Drives me insane when I use Macs.


rh



On Sep 4, 2010, at 5:04 PM, Pavel Sanda wrote:

   

Hal Kierstead wrote:
 

BH -

This certainly is progress---thanks.  Also dialog-show-new-inset citation opens 
the citation dialog.  Is there a way to jump directly to the OK button after 
choosing a cross-reference from the list in the dialog instead of pushing tab 6 
times?
   

alt+o, at least on linux...
pavel
 
   




Re: \cite, \ref

2010-09-06 Thread Pavel Sanda
Richard Heck wrote:
> This would be one of the really stupid things about OSX: No shortcuts. 

my goodness how is one supposed to work with keyboard?
p


Re: \cite, \ref

2010-09-06 Thread Hal Kierstead
The other dialogs in LyX work properly on Macs.  It is just this one.  The OK 
button should be highlighted so that hitting return accepts, but it is not.  
Moreover, even if you navigate to it so that it is highlighted, hitting return 
does not accept.  

I guess this is a bug.  Do you all agree?

Still, for a wish list, it would be nice to have a special tex mode, sort of 
like math mode, so that simple things like \noindent, \cite, etc. could be 
automatically entered into LyX.  One of the things about Scientific word and 
especially LyX, is that it provides a relatively painless way to learn tex.  Of 
course, the obvious huge benefit is that you can type your first draft in a 
human format. However, now I always make all my final tweaks in tex.

Hal

On Sep 6, 2010, at 7:50 AM, Pavel Sanda wrote:

> Richard Heck wrote:
>> This would be one of the really stupid things about OSX: No shortcuts. 
> 
> my goodness how is one supposed to work with keyboard?
> p



Re: \cite, \ref

2010-09-06 Thread BH
On Mon, Sep 6, 2010 at 1:38 PM, Hal Kierstead  wrote:
> The other dialogs in LyX work properly on Macs.  It is just this one.  The OK 
> button should be highlighted so that hitting return accepts, but it is not.  
> Moreover, even if you navigate to it so that it is highlighted, hitting 
> return does not accept.
>
> I guess this is a bug.  Do you all agree?

What dialog are we talking about? The insert cross-reference dialog
works (mostly) fine for me. If I have a document with at least 2
labels, I can tab to the label list, type the initial letters of the
label name I'm interested in (or use the arrow keys), and once it's
selected hit return for . The keyboard works fine here.

The only problem is in a document with only one label: then, the
keyboard does not work for selecting the label name. That is a bug.

... Or are we talking about a different dialog?

BH


Re: \cite, \ref

2010-09-06 Thread Julien Rioux

On 06/09/2010 1:38 PM, Hal Kierstead wrote:

Still, for a wish list, it would be nice to have a special tex mode, sort of 
like math mode, so that simple things like \noindent, \cite, etc. could be 
automatically entered into LyX.


That's on my wishlist too. For users coming from the TeX world this 
would be wonderful.


--
Julien



Re: \cite, \ref

2010-09-04 Thread Paul Rubin
Hal Kierstead kierstead at asu.edu writes:

 
 Most of the time I already know what I want.  It would be really nice if I
could just type the tex command
 \cite{E} or \ref{d} or \eqref{w}, or something similar.
 
 Is there is already a way to do something similar?  Embedding tex does not
seem a good alternative.

If you open the minibuffer (alt-X or View  Toolbars  Command Buffer), you can
type 'citation-insert KEY' (no quotes), where KEY is the key you would use in
\cite.  The minibuffer remembers commands, so after the first time you can use
the scroll arrows to retrieve 'citation-insert KEY' and change the KEY (if you
prefer that retyping 'citation-insert').  Unfortunately, while you can bind a
key combination to citation-insert, the shortcut will not work in the minibuffer
(and if used in the text area will pop up the dialog you dislike).

/Paul





Re: \cite, \ref

2010-09-04 Thread BH
On Sat, Sep 4, 2010 at 3:54 PM, Hal Kierstead kierst...@asu.edu wrote:
 All -

 I find the pop-up windows for Insert-Citation and Insert-Cross-Reference 
 quite annoying.  It is nice to have a list of choices, and to be able to use 
 the mouse to choose among them, but this should not be required.  Most of the 
 time I already know what I want.  It would be really nice if I could just 
 type the tex command \cite{E} or \ref{d} or \eqref{w}, or something similar.

 Is there is already a way to do something similar?  Embedding tex does not 
 seem a good alternative.

 Currently it does not seem possible to make a shortcut for 
 Insert-Cross-Reference from within LyX.  I am using a Mac, and made a menu 
 shortcut in OSX.  This works fine, except that the first time I use I must 
 open it from the menu by hand.  Is this an OSX flaw or a LyX flaw?

Neither, actually. I have, for example, CmdShift-I R mapped to
dialog-show-new-inset ref in my custom shortcuts, and I can then
insert cross-references using only the keyboard. Look at LyX 
Preferences  Editing  Shortcuts (and see §C.2.2.2 of the User's
Guide).

BH


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
BH -

This certainly is progress---thanks.  Also dialog-show-new-inset citation opens 
the citation dialog.  Is there a way to jump directly to the OK button after 
choosing a cross-reference from the list in the dialog instead of pushing tab 6 
times?

Hal

On Sep 4, 2010, at 4:10 PM, BH wrote:

 On Sat, Sep 4, 2010 at 3:54 PM, Hal Kierstead kierst...@asu.edu wrote:
 All -
 
 I find the pop-up windows for Insert-Citation and Insert-Cross-Reference 
 quite annoying.  It is nice to have a list of choices, and to be able to use 
 the mouse to choose among them, but this should not be required.  Most of 
 the time I already know what I want.  It would be really nice if I could 
 just type the tex command \cite{E} or \ref{d} or \eqref{w}, or something 
 similar.
 
 Is there is already a way to do something similar?  Embedding tex does not 
 seem a good alternative.
 
 Currently it does not seem possible to make a shortcut for 
 Insert-Cross-Reference from within LyX.  I am using a Mac, and made a menu 
 shortcut in OSX.  This works fine, except that the first time I use I must 
 open it from the menu by hand.  Is this an OSX flaw or a LyX flaw?
 
 Neither, actually. I have, for example, CmdShift-I R mapped to
 dialog-show-new-inset ref in my custom shortcuts, and I can then
 insert cross-references using only the keyboard. Look at LyX 
 Preferences  Editing  Shortcuts (and see §C.2.2.2 of the User's
 Guide).
 
 BH



Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Thanks, but see my response to Paul's suggestion.

Hal

On Sep 4, 2010, at 3:06 PM, Paul Rubin wrote:

 Hal Kierstead kierstead at asu.edu writes:
 
 
 Most of the time I already know what I want.  It would be really nice if I
 could just type the tex command
 \cite{E} or \ref{d} or \eqref{w}, or something similar.
 
 Is there is already a way to do something similar?  Embedding tex does not
 seem a good alternative.
 
 If you open the minibuffer (alt-X or View  Toolbars  Command Buffer), you 
 can
 type 'citation-insert KEY' (no quotes), where KEY is the key you would use in
 \cite.  The minibuffer remembers commands, so after the first time you can use
 the scroll arrows to retrieve 'citation-insert KEY' and change the KEY (if you
 prefer that retyping 'citation-insert').  Unfortunately, while you can bind a
 key combination to citation-insert, the shortcut will not work in the 
 minibuffer
 (and if used in the text area will pop up the dialog you dislike).
 
 /Paul
 
 



Re: \cite, \ref

2010-09-04 Thread Pavel Sanda
Hal Kierstead wrote:
 BH -
 
 This certainly is progress---thanks.  Also dialog-show-new-inset citation 
 opens the citation dialog.  Is there a way to jump directly to the OK button 
 after choosing a cross-reference from the list in the dialog instead of 
 pushing tab 6 times?

alt+o, at least on linux...
pavel


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Pavel -

It does not work for me. Do you know the name of the function to which alt-o  
is mapped?

Thanks,

Hal

On Sep 4, 2010, at 5:04 PM, Pavel Sanda wrote:

 Hal Kierstead wrote:
 BH -
 
 This certainly is progress---thanks.  Also dialog-show-new-inset citation 
 opens the citation dialog.  Is there a way to jump directly to the OK button 
 after choosing a cross-reference from the list in the dialog instead of 
 pushing tab 6 times?
 
 alt+o, at least on linux...
 pavel



Re: \cite, \ref

2010-09-04 Thread Pavel Sanda
Hal Kierstead wrote:
 It does not work for me. Do you know the name of the function to which alt-o  
 is mapped?

this is no business of lyx, but Qt internal thing. most of menus and buttons in 
any
application has something called accelerator, reachable via alt+key. i bet this 
works on mac too, maybe just different key than alt is needed...
pavel


Re: \cite, \ref

2010-09-04 Thread BH
On Sat, Sep 4, 2010 at 7:57 PM, Hal Kierstead kierst...@asu.edu wrote:
 This certainly is progress---thanks.  Also dialog-show-new-inset citation 
 opens the citation dialog.  Is there a way to jump directly to the OK button 
 after choosing a cross-reference from the list in the dialog instead of 
 pushing tab 6 times?

How about return?

BH


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Return selects the highlighted button, but in this dialog no button is 
highlighted.

Hal

On Sep 4, 2010, at 6:28 PM, BH wrote:

 On Sat, Sep 4, 2010 at 7:57 PM, Hal Kierstead kierst...@asu.edu wrote:
 This certainly is progress---thanks.  Also dialog-show-new-inset citation 
 opens the citation dialog.  Is there a way to jump directly to the OK button 
 after choosing a cross-reference from the list in the dialog instead of 
 pushing tab 6 times?
 
 How about return?
 
 BH



Re: \cite, \ref

2010-09-04 Thread Paul Rubin
Hal Kierstead kierstead at asu.edu writes:

 
 Most of the time I already know what I want.  It would be really nice if I
could just type the tex command
 \cite{E} or \ref{d} or \eqref{w}, or something similar.
 
 Is there is already a way to do something similar?  Embedding tex does not
seem a good alternative.

If you open the minibuffer (alt-X or View  Toolbars  Command Buffer), you can
type 'citation-insert KEY' (no quotes), where KEY is the key you would use in
\cite.  The minibuffer remembers commands, so after the first time you can use
the scroll arrows to retrieve 'citation-insert KEY' and change the KEY (if you
prefer that retyping 'citation-insert').  Unfortunately, while you can bind a
key combination to citation-insert, the shortcut will not work in the minibuffer
(and if used in the text area will pop up the dialog you dislike).

/Paul





Re: \cite, \ref

2010-09-04 Thread BH
On Sat, Sep 4, 2010 at 3:54 PM, Hal Kierstead kierst...@asu.edu wrote:
 All -

 I find the pop-up windows for Insert-Citation and Insert-Cross-Reference 
 quite annoying.  It is nice to have a list of choices, and to be able to use 
 the mouse to choose among them, but this should not be required.  Most of the 
 time I already know what I want.  It would be really nice if I could just 
 type the tex command \cite{E} or \ref{d} or \eqref{w}, or something similar.

 Is there is already a way to do something similar?  Embedding tex does not 
 seem a good alternative.

 Currently it does not seem possible to make a shortcut for 
 Insert-Cross-Reference from within LyX.  I am using a Mac, and made a menu 
 shortcut in OSX.  This works fine, except that the first time I use I must 
 open it from the menu by hand.  Is this an OSX flaw or a LyX flaw?

Neither, actually. I have, for example, CmdShift-I R mapped to
dialog-show-new-inset ref in my custom shortcuts, and I can then
insert cross-references using only the keyboard. Look at LyX 
Preferences  Editing  Shortcuts (and see §C.2.2.2 of the User's
Guide).

BH


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
BH -

This certainly is progress---thanks.  Also dialog-show-new-inset citation opens 
the citation dialog.  Is there a way to jump directly to the OK button after 
choosing a cross-reference from the list in the dialog instead of pushing tab 6 
times?

Hal

On Sep 4, 2010, at 4:10 PM, BH wrote:

 On Sat, Sep 4, 2010 at 3:54 PM, Hal Kierstead kierst...@asu.edu wrote:
 All -
 
 I find the pop-up windows for Insert-Citation and Insert-Cross-Reference 
 quite annoying.  It is nice to have a list of choices, and to be able to use 
 the mouse to choose among them, but this should not be required.  Most of 
 the time I already know what I want.  It would be really nice if I could 
 just type the tex command \cite{E} or \ref{d} or \eqref{w}, or something 
 similar.
 
 Is there is already a way to do something similar?  Embedding tex does not 
 seem a good alternative.
 
 Currently it does not seem possible to make a shortcut for 
 Insert-Cross-Reference from within LyX.  I am using a Mac, and made a menu 
 shortcut in OSX.  This works fine, except that the first time I use I must 
 open it from the menu by hand.  Is this an OSX flaw or a LyX flaw?
 
 Neither, actually. I have, for example, CmdShift-I R mapped to
 dialog-show-new-inset ref in my custom shortcuts, and I can then
 insert cross-references using only the keyboard. Look at LyX 
 Preferences  Editing  Shortcuts (and see §C.2.2.2 of the User's
 Guide).
 
 BH



Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Thanks, but see my response to Paul's suggestion.

Hal

On Sep 4, 2010, at 3:06 PM, Paul Rubin wrote:

 Hal Kierstead kierstead at asu.edu writes:
 
 
 Most of the time I already know what I want.  It would be really nice if I
 could just type the tex command
 \cite{E} or \ref{d} or \eqref{w}, or something similar.
 
 Is there is already a way to do something similar?  Embedding tex does not
 seem a good alternative.
 
 If you open the minibuffer (alt-X or View  Toolbars  Command Buffer), you 
 can
 type 'citation-insert KEY' (no quotes), where KEY is the key you would use in
 \cite.  The minibuffer remembers commands, so after the first time you can use
 the scroll arrows to retrieve 'citation-insert KEY' and change the KEY (if you
 prefer that retyping 'citation-insert').  Unfortunately, while you can bind a
 key combination to citation-insert, the shortcut will not work in the 
 minibuffer
 (and if used in the text area will pop up the dialog you dislike).
 
 /Paul
 
 



Re: \cite, \ref

2010-09-04 Thread Pavel Sanda
Hal Kierstead wrote:
 BH -
 
 This certainly is progress---thanks.  Also dialog-show-new-inset citation 
 opens the citation dialog.  Is there a way to jump directly to the OK button 
 after choosing a cross-reference from the list in the dialog instead of 
 pushing tab 6 times?

alt+o, at least on linux...
pavel


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Pavel -

It does not work for me. Do you know the name of the function to which alt-o  
is mapped?

Thanks,

Hal

On Sep 4, 2010, at 5:04 PM, Pavel Sanda wrote:

 Hal Kierstead wrote:
 BH -
 
 This certainly is progress---thanks.  Also dialog-show-new-inset citation 
 opens the citation dialog.  Is there a way to jump directly to the OK button 
 after choosing a cross-reference from the list in the dialog instead of 
 pushing tab 6 times?
 
 alt+o, at least on linux...
 pavel



Re: \cite, \ref

2010-09-04 Thread Pavel Sanda
Hal Kierstead wrote:
 It does not work for me. Do you know the name of the function to which alt-o  
 is mapped?

this is no business of lyx, but Qt internal thing. most of menus and buttons in 
any
application has something called accelerator, reachable via alt+key. i bet this 
works on mac too, maybe just different key than alt is needed...
pavel


Re: \cite, \ref

2010-09-04 Thread BH
On Sat, Sep 4, 2010 at 7:57 PM, Hal Kierstead kierst...@asu.edu wrote:
 This certainly is progress---thanks.  Also dialog-show-new-inset citation 
 opens the citation dialog.  Is there a way to jump directly to the OK button 
 after choosing a cross-reference from the list in the dialog instead of 
 pushing tab 6 times?

How about return?

BH


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Return selects the highlighted button, but in this dialog no button is 
highlighted.

Hal

On Sep 4, 2010, at 6:28 PM, BH wrote:

 On Sat, Sep 4, 2010 at 7:57 PM, Hal Kierstead kierst...@asu.edu wrote:
 This certainly is progress---thanks.  Also dialog-show-new-inset citation 
 opens the citation dialog.  Is there a way to jump directly to the OK button 
 after choosing a cross-reference from the list in the dialog instead of 
 pushing tab 6 times?
 
 How about return?
 
 BH



Re: \cite, \ref

2010-09-04 Thread Paul Rubin
Hal Kierstead  asu.edu> writes:

 
> Most of the time I already know what I want.  It would be really nice if I
could just type the tex command
> \cite{E} or \ref{d} or \eqref{w}, or something similar.
> 
> Is there is already a way to do something similar?  Embedding tex does not
seem a good alternative.

If you open the minibuffer (alt-X or View > Toolbars > Command Buffer), you can
type 'citation-insert KEY' (no quotes), where KEY is the key you would use in
\cite.  The minibuffer remembers commands, so after the first time you can use
the scroll arrows to retrieve 'citation-insert KEY' and change the KEY (if you
prefer that retyping 'citation-insert').  Unfortunately, while you can bind a
key combination to citation-insert, the shortcut will not work in the minibuffer
(and if used in the text area will pop up the dialog you dislike).

/Paul





Re: \cite, \ref

2010-09-04 Thread BH
On Sat, Sep 4, 2010 at 3:54 PM, Hal Kierstead  wrote:
> All -
>
> I find the pop-up windows for Insert-Citation and Insert-Cross-Reference 
> quite annoying.  It is nice to have a list of choices, and to be able to use 
> the mouse to choose among them, but this should not be required.  Most of the 
> time I already know what I want.  It would be really nice if I could just 
> type the tex command \cite{E} or \ref{d} or \eqref{w}, or something similar.
>
> Is there is already a way to do something similar?  Embedding tex does not 
> seem a good alternative.
>
> Currently it does not seem possible to make a shortcut for 
> Insert-Cross-Reference from within LyX.  I am using a Mac, and made a menu 
> shortcut in OSX.  This works fine, except that the first time I use I must 
> open it from the menu by hand.  Is this an OSX flaw or a LyX flaw?

Neither, actually. I have, for example, -I R mapped to
dialog-show-new-inset ref in my custom shortcuts, and I can then
insert cross-references using only the keyboard. Look at LyX >
Preferences > Editing > Shortcuts (and see §C.2.2.2 of the User's
Guide).

BH


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
BH -

This certainly is progress---thanks.  Also dialog-show-new-inset citation opens 
the citation dialog.  Is there a way to jump directly to the OK button after 
choosing a cross-reference from the list in the dialog instead of pushing tab 6 
times?

Hal

On Sep 4, 2010, at 4:10 PM, BH wrote:

> On Sat, Sep 4, 2010 at 3:54 PM, Hal Kierstead  wrote:
>> All -
>> 
>> I find the pop-up windows for Insert-Citation and Insert-Cross-Reference 
>> quite annoying.  It is nice to have a list of choices, and to be able to use 
>> the mouse to choose among them, but this should not be required.  Most of 
>> the time I already know what I want.  It would be really nice if I could 
>> just type the tex command \cite{E} or \ref{d} or \eqref{w}, or something 
>> similar.
>> 
>> Is there is already a way to do something similar?  Embedding tex does not 
>> seem a good alternative.
>> 
>> Currently it does not seem possible to make a shortcut for 
>> Insert-Cross-Reference from within LyX.  I am using a Mac, and made a menu 
>> shortcut in OSX.  This works fine, except that the first time I use I must 
>> open it from the menu by hand.  Is this an OSX flaw or a LyX flaw?
> 
> Neither, actually. I have, for example, -I R mapped to
> dialog-show-new-inset ref in my custom shortcuts, and I can then
> insert cross-references using only the keyboard. Look at LyX >
> Preferences > Editing > Shortcuts (and see §C.2.2.2 of the User's
> Guide).
> 
> BH



Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Thanks, but see my response to Paul's suggestion.

Hal

On Sep 4, 2010, at 3:06 PM, Paul Rubin wrote:

> Hal Kierstead  asu.edu> writes:
> 
> 
>> Most of the time I already know what I want.  It would be really nice if I
> could just type the tex command
>> \cite{E} or \ref{d} or \eqref{w}, or something similar.
>> 
>> Is there is already a way to do something similar?  Embedding tex does not
> seem a good alternative.
> 
> If you open the minibuffer (alt-X or View > Toolbars > Command Buffer), you 
> can
> type 'citation-insert KEY' (no quotes), where KEY is the key you would use in
> \cite.  The minibuffer remembers commands, so after the first time you can use
> the scroll arrows to retrieve 'citation-insert KEY' and change the KEY (if you
> prefer that retyping 'citation-insert').  Unfortunately, while you can bind a
> key combination to citation-insert, the shortcut will not work in the 
> minibuffer
> (and if used in the text area will pop up the dialog you dislike).
> 
> /Paul
> 
> 



Re: \cite, \ref

2010-09-04 Thread Pavel Sanda
Hal Kierstead wrote:
> BH -
> 
> This certainly is progress---thanks.  Also dialog-show-new-inset citation 
> opens the citation dialog.  Is there a way to jump directly to the OK button 
> after choosing a cross-reference from the list in the dialog instead of 
> pushing tab 6 times?

alt+o, at least on linux...
pavel


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Pavel -

It does not work for me. Do you know the name of the function to which alt-o  
is mapped?

Thanks,

Hal

On Sep 4, 2010, at 5:04 PM, Pavel Sanda wrote:

> Hal Kierstead wrote:
>> BH -
>> 
>> This certainly is progress---thanks.  Also dialog-show-new-inset citation 
>> opens the citation dialog.  Is there a way to jump directly to the OK button 
>> after choosing a cross-reference from the list in the dialog instead of 
>> pushing tab 6 times?
> 
> alt+o, at least on linux...
> pavel



Re: \cite, \ref

2010-09-04 Thread Pavel Sanda
Hal Kierstead wrote:
> It does not work for me. Do you know the name of the function to which alt-o  
> is mapped?

this is no business of lyx, but Qt internal thing. most of menus and buttons in 
any
application has something called accelerator, reachable via alt+key. i bet this 
works on mac too, maybe just different key than alt is needed...
pavel


Re: \cite, \ref

2010-09-04 Thread BH
On Sat, Sep 4, 2010 at 7:57 PM, Hal Kierstead  wrote:
> This certainly is progress---thanks.  Also dialog-show-new-inset citation 
> opens the citation dialog.  Is there a way to jump directly to the OK button 
> after choosing a cross-reference from the list in the dialog instead of 
> pushing tab 6 times?

How about ?

BH


Re: \cite, \ref

2010-09-04 Thread Hal Kierstead
Return selects the highlighted button, but in this dialog no button is 
highlighted.

Hal

On Sep 4, 2010, at 6:28 PM, BH wrote:

> On Sat, Sep 4, 2010 at 7:57 PM, Hal Kierstead  wrote:
>> This certainly is progress---thanks.  Also dialog-show-new-inset citation 
>> opens the citation dialog.  Is there a way to jump directly to the OK button 
>> after choosing a cross-reference from the list in the dialog instead of 
>> pushing tab 6 times?
> 
> How about ?
> 
> BH



Re: cite-ref problem - no whitespace between authorname and et al.

2005-02-23 Thread Jean-Marc Lasgouttes
 Martin == Martin A Hansen [EMAIL PROTECTED] writes:

Martin hi when i insert a citation reference (using natbib with
Martin author-year selected) with more than two authors, then the
Martin first author name is displayed in lyx (1.3.4) inside a grey
Martin box along with et al., and the year. but for some reason there
Martin is not whitespace between the author name and the et al.
Martin part:

Martin Hansonet al., 2000 is displayed instead of Hanson et al.,
Martin 2000.

Martin the dvi does not have this problem.

Hello,

You found a cosmetic bug in LyX. I will fix it for next version.

JMarc


Re: cite-ref problem - no whitespace between authorname and et al.

2005-02-23 Thread Jean-Marc Lasgouttes
 Martin == Martin A Hansen [EMAIL PROTECTED] writes:

Martin hi when i insert a citation reference (using natbib with
Martin author-year selected) with more than two authors, then the
Martin first author name is displayed in lyx (1.3.4) inside a grey
Martin box along with et al., and the year. but for some reason there
Martin is not whitespace between the author name and the et al.
Martin part:

Martin Hansonet al., 2000 is displayed instead of Hanson et al.,
Martin 2000.

Martin the dvi does not have this problem.

Hello,

You found a cosmetic bug in LyX. I will fix it for next version.

JMarc


Re: cite-ref problem -> no whitespace between authorname and et al.

2005-02-23 Thread Jean-Marc Lasgouttes
> "Martin" == Martin A Hansen <[EMAIL PROTECTED]> writes:

Martin> hi when i insert a citation reference (using natbib with
Martin> author-year selected) with more than two authors, then the
Martin> first author name is displayed in lyx (1.3.4) inside a grey
Martin> box along with et al., and the year. but for some reason there
Martin> is not whitespace between the author name and the "et al."
Martin> part:

Martin> Hansonet al., 2000 is displayed instead of Hanson et al.,
Martin> 2000.

Martin> the dvi does not have this problem.

Hello,

You found a cosmetic bug in LyX. I will fix it for next version.

JMarc