Gunnar Lindholm wrote:
> If I use something like this, (a customized environment) 
>
> \newtheorem{uppg}{Uppgift}[section]
> \newenvironment{ug}{\begin{uppg}\normalfont}{\end{uppg}}
>
> Can I make LyX show the counter number of each ug environment?
>   
Yes, but you'll need to add the ug environment to whatever layout file
you are using. This should be fairly straightforward: You should be able
to copy and paste from layouts/amsmaths.inc, for the most part. Note
that, unfortunately, you have to do this into a completely customized
new layout. So if you're using, say, amsart.layout now, you'll have to
copy that to, say, layouts/myamsart.layout in your local directory;
change the configure line at the beginning, choosing some new name; and
then make your customizations. It's my fervent hope to make this more
modular once 1.5.0 is out: http://bugzilla.lyx.org/show_bug.cgi?id=2657.

Richard

-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to