[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.-

Reply via email to