looks like I spoke a bit too early. If I add
\usepackage{comment} \includecomment{comment}
to the preamble, TeX chokes after the first page and aborts, resulting in a on- page document. The LaTeX log files (appended below) says that there seems to be a problem with a missing closing brace. But I don't know whether to trust this message, and in any case I'd have no idea where to put the missing brace. Any suggestions from the users of the "comment" package in LyX would be really appreciated.
Best,
Stefano
On Mar 7, 2004, at 9:19 AM, Stefano Franchi wrote:
Thanks for the help. That's exactly what I was looking for. It certainly is not a replacement for true conditional text, but at least it will take care of my most immediate needs.
Best,
Stefano
On Mar 5, 2004, at 1:59 PM, Peter Harkins wrote:
On Fri, Mar 05, 2004 at 01:08:57PM -0800, Stefano Franchi wrote:I was wondering is there is way to switch "Comment" paragraphs on
and off the formatted output. What I am trying to do is to emulate the
"Conditional text" feature of FrameMaker (a more powerful version of
Word's "invisible text"). I looked through the documentation, FAQs,
etc., but could not find anything. Perhaps "Comment" is not the right
paragraph environment? Or perhaps I need an additional package? Any
help is greatly appreciated.
In the Document menu, choose Preamble and paste the following line:
\usepackage{comment}
And then one of the following two lines for if you want them printed or not.
\includecomment{comment} \excludecomment{comment}
This will work for what you describe, but LyX lacks proper conditional text
support. (Yes, I know the ifthen-package workaround, that's pretty ugly.)
__________________________________________________ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-7408 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
=================LaTeX Log file from LyX=====
This is TeX, Version 3.14159 (Web2C 7.4.5) (format=latex 2004.2.24) 7 MAR 2004 10:23
**Simon-and-game-theory-long.tex
(./Simon-and-game-theory-long.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/sw/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/sw/share/texmf/tex/latex/base/size10.clo
File: size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/sw/share/texmf/tex/latex/ae/ae.sty
Package: ae 2001/02/12 1.3 Almost European Computer Modern
(/sw/share/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package
(/sw/share/texmf/tex/latex/base/t1enc.def
File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 38.
)
LaTeX Font Info: Try loading font information for T1+aer on input line 95.
(/sw/share/texmf/tex/latex/ae/t1aer.fd
File: t1aer.fd 1997/11/16 Font definitions for T1/aer.
))) (/sw/share/texmf/tex/latex/ae/aecompl.sty
Package: aecompl 1998/07/23 0.9 T1 Complements for AE fonts (D. Roegel)
) (/sw/share/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package
(/sw/share/texmf/tex/latex/base/t1enc.def
File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 38.
)) (/sw/share/texmf/tex/latex/base/inputenc.sty
Package: inputenc 2001/07/10 v0.99a Input encoding file
(/sw/share/texmf/tex/latex/base/latin1.def
File: latin1.def 2001/07/10 v0.99a Input encoding file
)) (/sw/share/texmf/tex/latex/tools/verbatim.sty
Package: verbatim 2001/03/12 v1.5p LaTeX2e package for verbatim enhancements
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@stream=\read1
) (/sw/share/texmf/tex/latex/misc/comment.sty
\CommentStream=\write3
Excluding comment 'comment') Include comment 'comment' (/sw/share/texmf/tex/gen
eric/babel/babel.sty
Package: babel 2001/03/01 v3.7h The Babel package
(/sw/share/texmf/tex/generic/babel/english.ldf
Language: english 2001/04/15 v3.3l English support from the babel system
(/sw/share/texmf/tex/generic/babel/babel.def
File: babel.def 2001/03/01 v3.7h Babel common definitions
[EMAIL PROTECTED]
[EMAIL PROTECTED]
)
[EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED]
)) (./Simon-and-game-theory-long.aux)
\openout1 = `Simon-and-game-theory-long.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 21.
LaTeX Font Info: ... okay on input line 21.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 21.
LaTeX Font Info: ... okay on input line 21.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 21.
LaTeX Font Info: ... okay on input line 21.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 21.
LaTeX Font Info: ... okay on input line 21.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 21.
LaTeX Font Info: ... okay on input line 21.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 21.
LaTeX Font Info: ... okay on input line 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 29.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 29.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 29.
Overfull \hbox (38.20499pt too wide) in paragraph at lines 29--29 [][] []
\openout3 = `comment.cut'.
(./comment.cut) \openout3 = `comment.cut'.
(./comment.cut) \openout3 = `comment.cut'.
(./comment.cut) [1
] \openout3 = `comment.cut'.
(./comment.cut) \openout3 = `comment.cut'.
(./comment.cut) \openout3 = `comment.cut'.
(./comment.cut) \openout3 = `comment.cut'.
(./comment.cut) \openout3 = `comment.cut'.
(./comment.cut) \openout3 = `comment.cut'.
(./comment.cut) \openout3 = `comment.cut'.
) Runaway argument? ! File ended while scanning use of \next. <inserted text> \par <*> Simon-and-game-theory-long.tex
I suspect you have forgotten a `}', causing me to read past where you wanted me to stop. I'll try to recover; but if the error is serious, you'd better type `E' or `X' now and fix your file.
! Emergency stop. <*> Simon-and-game-theory-long.tex
*** (job aborted, no legal \end found)
Here is how much of TeX's memory you used:
909 strings out of 95847
10344 string characters out of 1196009
59884 words of memory out of 1000001
3852 multiletter control sequences out of 10000+50000
18390 words of font info for 31 fonts, out of 500000 for 1000
14 hyphenation exceptions out of 1000
28i,6n,19p,192b,209s stack positions out of 1500i,500n,5000p,200000b,5000s
Output written on Simon-and-game-theory-long.dvi (1 page, 3252 bytes).