On 12 Dec, 2006, at 11:03 AM, Dominik Waßenhoven wrote:
[EMAIL PROTECTED] schrieb:
I don't know what this is about, but I'm guessing you can almost just
paste the following into the wiki page:
------------------------------------------------------------------
Or use this bit of code (in the preamble) to have them boxed on a
gray background. Not my code, btw. I picked it up somewhere on a
LaTeX sit and now forget where. Tested extensively. Works like a
charm but it complains if you do not have any comment environment in
your file.
Code to paste into the preamble
-> [@
\RequirePackage{colortbl, tabularx}
\renewenvironment{comment}
{% replaces \begin{comment}
\noindent
I would suggest to use "\par\medskip\noindent" here, otherwise the
comment could be to long and stick out to the right if the comment is
not placed as a separate paragraph.
\tabularx{\textwidth}{|>{\columncolor[gray]{0.9}}X|}
\hline
\emph{\textbf{Comment:}}
}
{% replaces \end{comment}
\endtabularx\hrule
Here again, I would suggest "\endtabularx\hrule\par\medskip" for the
same reason.
}
%
@]
------------------------------------------------------------------
What's missing is a description of the problem :-/
Maybe:
"If you want to be able to switch between printing and not printing
your comments, you could use LyX's comment environment and add the
following code to your preamble. [...] If you don't want the comments
to be printed, just put % signs in front of the code. Note that this
does not work if you have no comment in your document."
Just my 0,02 EUR.
Dominik.-
Nice corrections and nice description, Dominik! I'll integrate and post
to the wiki.
S.
__________________________________________________
Stefano Franchi
Department of Philosophy Ph: (64) 9 373-7599 x83940
University Of Auckland Fax: (64) 9 373-8768
Private Bag 92019 [EMAIL PROTECTED]
Auckland
New Zealand