On 22.04.05, Micha Feigin wrote:
> On Fri, 22 Apr 2005 07:33:18 +0000
> Angus Leeming <[EMAIL PROTECTED]> wrote:
> > Steve Litt wrote:
> > >> I have a small (< 1 page) section of my book which I'd like to
> > >> temporarily comment out. Is there an environment with which I can make
> > >> this text into a comment, so it can later easily be reincorporated as
> > >> Standard environment, but for now not be visible in the output?
> > 
> > > Never mind, I found it. It's an evironment called "Comment" in the
> > > standard Book document class.
> > 
> > I suggest that you don't use this in LyX. You'll lose all nested
> > environments. Use the "note" inset instead.
 
> I use a dirtier trick using ert.
> 
> I define a new command in the preamble:
> \newcommand{\ignore}[1]{}
> 
> and then before the start of the part I want to remove in at ert block
> \ignore{
> and after it in another ert block
> }

But why don't you just put \begin{comment} and \end{comment} as ERT around
the to-be-commented text? (Or Herberts tex commands)

Once I look at this, the LyXish solution would be to open a Comment
paragraph and nest the to-be-commented text in it. 

If the first line of the to-be-commented text is a Standard paragraph, this
can be converted to comment, if not, you need to insert some stuff so the
Comment paragraph is not removed before you are able to nest something in it.

Developers: 
-----------

 * could the Comment Style get a KeepEmpty 1 tag? 

 * What would be a command-sequence to open a Comment and nest the 
   selection in it (as opposed to setting all selected paragraphs to 
   Comment Style)?
   
   Or do we need a new lyx function for this.
   
G�nter   






-- 
G.Milde web.de

Reply via email to