Re: how to add a caption to a Box inset?

2010-09-06 Thread Justin Wood
This works beautifully. Many thanks, Jürgen!


Re: suppressing Chapter labels in book class

2010-09-06 Thread Jürgen Spitzmüller
Graham Smith wrote:
 What I would like to be able to do is to replace
 
 Chapter 1
 Title of Chapter 1
 
 With
 
 1. Title of Chapter 1
 
 So it looks like another section

Either use the KOMA book class (that has this as default), or with the 
standard book class, use

\usepackage{anonchap}
\simplechapter

If you use the tocbibind package, you cannot use anonchap in parallel (but 
tocbibind provides the same \simplechapter command).

Jürgen


Re: suppressing Chapter labels in book class

2010-09-06 Thread Graham Smith
Jürgen

 Either use the KOMA book class (that has this as default), or with the
 standard book class, use

 \usepackage{anonchap}
 \simplechapter

 If you use the tocbibind package, you cannot use anonchap in parallel (but
 tocbibind provides the same \simplechapter command).

Thanks,  I am using  Book because I am running SWeave, which currenly
Lyx only supports in Book,Report and Article. I believe this is
changing in Lyx 2.0, but for now I am stuck with Book.

anonchap works fine for the text, but it still leaves Chapter 1,
Chapter 2 etc in the header.
I have had a look at the documenation for anonchap and tocbibind and I
can't see anything obvious to fix the header.

Can you suggest an approach for the header.

Thanks again,

Graham


Re: suppressing Chapter labels in book class

2010-09-06 Thread Jürgen Spitzmüller
Graham Smith wrote:
 Can you suggest an approach for the header.

Quick and dirty:
\d...@chapapp{\hspace*{-1ex}}

More elegant: set heading style to fancy and redefine the header to your 
needs (see fancyheadings manual).

Jürgen


Re: suppressing Chapter labels in book class

2010-09-06 Thread Graham Smith
Jürgen

 Quick and dirty:
 \d...@chapapp{\hspace*{-1ex}}

Excellent, quick and dirty is what I need right now.

 More elegant: set heading style to fancy and redefine the header to your
 needs (see fancyheadings manual).

I will look at this once I start to think in detail on how I want the
report presented, at the moment I was/am under pressure to get
something out the door.

So many thanks again.

Graham


Re: PS Tricks and LyX

2010-09-06 Thread Diego Gruber
Hi Julien,

Thank you very much for your suggestion, it worked perfectly!

Best,

Diego


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



Fwd: \cite, \ref

2010-09-06 Thread Hal Kierstead

Sorry, it is the citation dialog that does not work correctly.  Another problem 
I am having with it is that there seems to be no way to insert a bibtex 
reference with it.  I am forced to use the mini-buffer.  Is there another way?

Hal
 
 On Sep 6, 2010, at 12:19 PM, BH wrote:
 
 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: how to add a caption to a Box inset?

2010-09-06 Thread Justin Wood
This works beautifully. Many thanks, Jürgen!


Re: suppressing Chapter labels in book class

2010-09-06 Thread Jürgen Spitzmüller
Graham Smith wrote:
 What I would like to be able to do is to replace
 
 Chapter 1
 Title of Chapter 1
 
 With
 
 1. Title of Chapter 1
 
 So it looks like another section

Either use the KOMA book class (that has this as default), or with the 
standard book class, use

\usepackage{anonchap}
\simplechapter

If you use the tocbibind package, you cannot use anonchap in parallel (but 
tocbibind provides the same \simplechapter command).

Jürgen


Re: suppressing Chapter labels in book class

2010-09-06 Thread Graham Smith
Jürgen

 Either use the KOMA book class (that has this as default), or with the
 standard book class, use

 \usepackage{anonchap}
 \simplechapter

 If you use the tocbibind package, you cannot use anonchap in parallel (but
 tocbibind provides the same \simplechapter command).

Thanks,  I am using  Book because I am running SWeave, which currenly
Lyx only supports in Book,Report and Article. I believe this is
changing in Lyx 2.0, but for now I am stuck with Book.

anonchap works fine for the text, but it still leaves Chapter 1,
Chapter 2 etc in the header.
I have had a look at the documenation for anonchap and tocbibind and I
can't see anything obvious to fix the header.

Can you suggest an approach for the header.

Thanks again,

Graham


Re: suppressing Chapter labels in book class

2010-09-06 Thread Jürgen Spitzmüller
Graham Smith wrote:
 Can you suggest an approach for the header.

Quick and dirty:
\d...@chapapp{\hspace*{-1ex}}

More elegant: set heading style to fancy and redefine the header to your 
needs (see fancyheadings manual).

Jürgen


Re: suppressing Chapter labels in book class

2010-09-06 Thread Graham Smith
Jürgen

 Quick and dirty:
 \d...@chapapp{\hspace*{-1ex}}

Excellent, quick and dirty is what I need right now.

 More elegant: set heading style to fancy and redefine the header to your
 needs (see fancyheadings manual).

I will look at this once I start to think in detail on how I want the
report presented, at the moment I was/am under pressure to get
something out the door.

So many thanks again.

Graham


Re: PS Tricks and LyX

2010-09-06 Thread Diego Gruber
Hi Julien,

Thank you very much for your suggestion, it worked perfectly!

Best,

Diego


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



Fwd: \cite, \ref

2010-09-06 Thread Hal Kierstead

Sorry, it is the citation dialog that does not work correctly.  Another problem 
I am having with it is that there seems to be no way to insert a bibtex 
reference with it.  I am forced to use the mini-buffer.  Is there another way?

Hal
 
 On Sep 6, 2010, at 12:19 PM, BH wrote:
 
 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: how to add a caption to a Box inset?

2010-09-06 Thread Justin Wood
This works beautifully. Many thanks, Jürgen!


Re: suppressing "Chapter" labels in book class

2010-09-06 Thread Jürgen Spitzmüller
Graham Smith wrote:
> What I would like to be able to do is to replace
> 
> Chapter 1
> Title of Chapter 1
> 
> With
> 
> 1. Title of Chapter 1
> 
> So it looks like another section

Either use the KOMA book class (that has this as default), or with the 
standard book class, use

\usepackage{anonchap}
\simplechapter

If you use the tocbibind package, you cannot use anonchap in parallel (but 
tocbibind provides the same \simplechapter command).

Jürgen


Re: suppressing "Chapter" labels in book class

2010-09-06 Thread Graham Smith
Jürgen

> Either use the KOMA book class (that has this as default), or with the
> standard book class, use
>
> \usepackage{anonchap}
> \simplechapter
>
> If you use the tocbibind package, you cannot use anonchap in parallel (but
> tocbibind provides the same \simplechapter command).

Thanks,  I am using  Book because I am running SWeave, which currenly
Lyx only supports in Book,Report and Article. I believe this is
changing in Lyx 2.0, but for now I am stuck with Book.

anonchap works fine for the text, but it still leaves Chapter 1,
Chapter 2 etc in the header.
I have had a look at the documenation for anonchap and tocbibind and I
can't see anything obvious to fix the header.

Can you suggest an approach for the header.

Thanks again,

Graham


Re: suppressing "Chapter" labels in book class

2010-09-06 Thread Jürgen Spitzmüller
Graham Smith wrote:
> Can you suggest an approach for the header.

Quick and dirty:
\d...@chapapp{\hspace*{-1ex}}

More elegant: set heading style to "fancy" and redefine the header to your 
needs (see fancyheadings manual).

Jürgen


Re: suppressing "Chapter" labels in book class

2010-09-06 Thread Graham Smith
Jürgen

> Quick and dirty:
> \d...@chapapp{\hspace*{-1ex}}

Excellent, quick and dirty is what I need right now.
>
> More elegant: set heading style to "fancy" and redefine the header to your
> needs (see fancyheadings manual).

I will look at this once I start to think in detail on how I want the
report presented, at the moment I was/am under pressure to get
something out the door.

So many thanks again.

Graham


Re: PS Tricks and LyX

2010-09-06 Thread Diego Gruber
Hi Julien,

Thank you very much for your suggestion, it worked perfectly!

Best,

Diego


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



Fwd: \cite, \ref

2010-09-06 Thread Hal Kierstead

Sorry, it is the citation dialog that does not work correctly.  Another problem 
I am having with it is that there seems to be no way to insert a bibtex 
reference with it.  I am forced to use the mini-buffer.  Is there another way?

Hal
> 
> On Sep 6, 2010, at 12:19 PM, BH wrote:
> 
>> 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
>