Thhanks, Paul and Julien. Your replies do what I was looking for.

Julien Rioux wrote:
> [...]
> You can control the "scope", as you say, of your theorem from within 
> LyX. Position your cursor within the enumerate environment and use the 
> toolbar button "Increase depth" (or the shortcut Alt+Shift+Right). This 
> will put the enumerate environment within the previous environment when 
> possible, in this case theorem.
> 
> Cheers,
> Julien

I knew the "increase depth" feature, but I thought it was only for
enumerate/itemize lists. Not only does it what I needed, but it's effect
is also reflected in the LyX window. I love this software!

Paul Rubin wrote: 
> The theorem module uses the amsthm package.  If you check check section 4.3 of
> the manual for ammsthm, you'll find the syntax for the \newtheoremstyle 
> command.
>  You will want to hack the include file to put code in the preamble creating 
> new
> theorem styles with names you supply (e.g., myThm) and then replace any
> instances of \theoremstyle{plain} with \theoremstyle{myThm} (or whatever
> modified style you want for that type of environment).
> 
Paul, I have noticed there is a "Preamble" section in the theorems.inc
file. If it's about \theoremstyle and \newtheoremstyle commands, maybe I
can them there? (I'm thinking of reducing the number of files to be
hacked.) I more or less understand that the contents of this "preamble"
section is used by LyX for its internal TeX job.

Thanks again,
-- 
Daniel CLEMENT


Reply via email to