Setting paragraph style in document class

2009-07-29 Thread Luca Carlon
Hi! I'm writing a book with LyX using the document class book. I just would like
to change the style of the 'Example' paragraph type so that it appears italic.
Is this possible? I would like as well to reduce the font size of the text in
the caption of the images: is this possible too?
Thanks for any suggestion!



Re: Setting paragraph style in document class

2009-07-29 Thread Sam Liddicott
* Luca Carlon wrote, On 29/07/09 10:04:
 Hi! I'm writing a book with LyX using the document class book. I just would 
 like
 to change the style of the 'Example' paragraph type so that it appears italic.
 Is this possible? I would like as well to reduce the font size of the text in
 the caption of the images: is this possible too?
 Thanks for any suggestion!
 

Where did you get the 'Example' paragraph type from?
Book doesn't have this by default.

Sam


Re: Setting paragraph style in document class

2009-07-29 Thread Luca Carlon
Sam Liddicott s...@... writes:
 Where did you get the 'Example' paragraph type from?
 Book doesn't have this by default.
 
 Sam

Are you sure? I selected 'book' in document class in the document settings. I
selected then Example from the menu of LyX where the are also the types 'Part',
'Chapter', 'Section' etc... Maybe I was wrong and that is not the paragraph
type, sorry, I don't know how it's called. When I select 'Example' I get a new
paragraph with the text 'Example a.b'. I would like the text I write in that
paragraph to be italic. I see in most math and engineering books examples are
italic.
Thanks for your answer!



Re: Setting paragraph style in document class

2009-07-29 Thread Richard Heck

On 07/29/2009 06:53 AM, Luca Carlon wrote:

Sam Liddicotts...@...  writes:
   

Where did you get the 'Example' paragraph type from?
Book doesn't have this by default.

Sam
 


Are you sure? I selected 'book' in document class in the document settings. I
selected then Example from the menu of LyX where the are also the types 'Part',
'Chapter', 'Section' etc... Maybe I was wrong and that is not the paragraph
type, sorry, I don't know how it's called. When I select 'Example' I get a new
paragraph with the text 'Example a.b'. I would like the text I write in that
paragraph to be italic. I see in most math and engineering books examples are
italic.

   
You are using one of the theorem modules, or perhaps you are using the 
AMS book class. Anyway, yes, you can change it, but changing it will 
mean doing some LaTeX. I don't myself know off-hand how to do this, but 
if you look at the theorems-ams.inc file, you can see how the Example 
environment is defined. You will need to redefine the part marked 
Preamble to declare a different theorem style. Probably the easiest 
thing to do is to copy this file to your local user directory 
(.lyx/layouts on Linux---usually) and then make the changes there. 
Something like this:

Preamble
\theoremstyle{plain}
\newtheorem{example}[thm]{Example}
EndPreamble
may do.

rh



Setting paragraph style in document class

2009-07-29 Thread Luca Carlon
Hi! I'm writing a book with LyX using the document class book. I just would like
to change the style of the 'Example' paragraph type so that it appears italic.
Is this possible? I would like as well to reduce the font size of the text in
the caption of the images: is this possible too?
Thanks for any suggestion!



Re: Setting paragraph style in document class

2009-07-29 Thread Sam Liddicott
* Luca Carlon wrote, On 29/07/09 10:04:
 Hi! I'm writing a book with LyX using the document class book. I just would 
 like
 to change the style of the 'Example' paragraph type so that it appears italic.
 Is this possible? I would like as well to reduce the font size of the text in
 the caption of the images: is this possible too?
 Thanks for any suggestion!
 

Where did you get the 'Example' paragraph type from?
Book doesn't have this by default.

Sam


Re: Setting paragraph style in document class

2009-07-29 Thread Luca Carlon
Sam Liddicott s...@... writes:
 Where did you get the 'Example' paragraph type from?
 Book doesn't have this by default.
 
 Sam

Are you sure? I selected 'book' in document class in the document settings. I
selected then Example from the menu of LyX where the are also the types 'Part',
'Chapter', 'Section' etc... Maybe I was wrong and that is not the paragraph
type, sorry, I don't know how it's called. When I select 'Example' I get a new
paragraph with the text 'Example a.b'. I would like the text I write in that
paragraph to be italic. I see in most math and engineering books examples are
italic.
Thanks for your answer!



Re: Setting paragraph style in document class

2009-07-29 Thread Richard Heck

On 07/29/2009 06:53 AM, Luca Carlon wrote:

Sam Liddicotts...@...  writes:
   

Where did you get the 'Example' paragraph type from?
Book doesn't have this by default.

Sam
 


Are you sure? I selected 'book' in document class in the document settings. I
selected then Example from the menu of LyX where the are also the types 'Part',
'Chapter', 'Section' etc... Maybe I was wrong and that is not the paragraph
type, sorry, I don't know how it's called. When I select 'Example' I get a new
paragraph with the text 'Example a.b'. I would like the text I write in that
paragraph to be italic. I see in most math and engineering books examples are
italic.

   
You are using one of the theorem modules, or perhaps you are using the 
AMS book class. Anyway, yes, you can change it, but changing it will 
mean doing some LaTeX. I don't myself know off-hand how to do this, but 
if you look at the theorems-ams.inc file, you can see how the Example 
environment is defined. You will need to redefine the part marked 
Preamble to declare a different theorem style. Probably the easiest 
thing to do is to copy this file to your local user directory 
(.lyx/layouts on Linux---usually) and then make the changes there. 
Something like this:

Preamble
\theoremstyle{plain}
\newtheorem{example}[thm]{Example}
EndPreamble
may do.

rh



Setting paragraph style in document class

2009-07-29 Thread Luca Carlon
Hi! I'm writing a book with LyX using the document class book. I just would like
to change the style of the 'Example' paragraph type so that it appears italic.
Is this possible? I would like as well to reduce the font size of the text in
the caption of the images: is this possible too?
Thanks for any suggestion!



Re: Setting paragraph style in document class

2009-07-29 Thread Sam Liddicott
* Luca Carlon wrote, On 29/07/09 10:04:
> Hi! I'm writing a book with LyX using the document class book. I just would 
> like
> to change the style of the 'Example' paragraph type so that it appears italic.
> Is this possible? I would like as well to reduce the font size of the text in
> the caption of the images: is this possible too?
> Thanks for any suggestion!
> 

Where did you get the 'Example' paragraph type from?
Book doesn't have this by default.

Sam


Re: Setting paragraph style in document class

2009-07-29 Thread Luca Carlon
Sam Liddicott  writes:
> Where did you get the 'Example' paragraph type from?
> Book doesn't have this by default.
> 
> Sam

Are you sure? I selected 'book' in document class in the document settings. I
selected then Example from the menu of LyX where the are also the types 'Part',
'Chapter', 'Section' etc... Maybe I was wrong and that is not the paragraph
type, sorry, I don't know how it's called. When I select 'Example' I get a new
paragraph with the text 'Example a.b'. I would like the text I write in that
paragraph to be italic. I see in most math and engineering books examples are
italic.
Thanks for your answer!



Re: Setting paragraph style in document class

2009-07-29 Thread Richard Heck

On 07/29/2009 06:53 AM, Luca Carlon wrote:

Sam Liddicott  writes:
   

Where did you get the 'Example' paragraph type from?
Book doesn't have this by default.

Sam
 


Are you sure? I selected 'book' in document class in the document settings. I
selected then Example from the menu of LyX where the are also the types 'Part',
'Chapter', 'Section' etc... Maybe I was wrong and that is not the paragraph
type, sorry, I don't know how it's called. When I select 'Example' I get a new
paragraph with the text 'Example a.b'. I would like the text I write in that
paragraph to be italic. I see in most math and engineering books examples are
italic.

   
You are using one of the theorem modules, or perhaps you are using the 
AMS book class. Anyway, yes, you can change it, but changing it will 
mean doing some LaTeX. I don't myself know off-hand how to do this, but 
if you look at the theorems-ams.inc file, you can see how the Example 
environment is defined. You will need to redefine the part marked 
"Preamble" to declare a different theorem style. Probably the easiest 
thing to do is to copy this file to your local user directory 
(.lyx/layouts on Linux---usually) and then make the changes there. 
Something like this:

Preamble
\theoremstyle{plain}
\newtheorem{example}[thm]{Example}
EndPreamble
may do.

rh