On 07/29/2009 06:53 AM, Luca Carlon wrote:
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.
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