On 19.04.05, LB wrote:
> Hi
> 
> Thank you for the help.  I can get \appendices to work using ERT.  If I 
> inserted the environment APPENDICES using LyX drop down menu the word 
> APPENDICES appears in the document, but it disappears as soon as I move the 
> cursor to any other line.  Is it a bug in LyX?

Yes. LyX automatically closes empty paragraphs if not told otherwise by the
KeepEmpty keyword in the layout file.

A fast workaround is to fool LyX by putting something invisible into the
APPENDICES paragraph, e.g. "{}" or "% some comment" as ERT.

The Right Thing is to copy IEEEtran.layout to your local lyx directory
(usually ~/.lyx/layouts) and apply the following patch:

--- /usr/share/lyx/layouts/IEEEtran.layout      2004-07-25 07:39:20.000000000 
+0200
+++ /home/milde/.lyx/layouts/IEEEtran.layout    2005-04-20 10:34:59.000000000 
+0200
@@ -440,6 +440,7 @@
   LatexType            Command
   InTitle              0
   LatexName            appendices
+  KeepEmpty            1
   ParSkip              0.4
   BottomSep            1.5
   ParSep               1.5
 

Guenter

-- 
G.Milde web.de

Reply via email to