Re: Annotations
On Wed, 24 Jan 2001, Herbert Voss wrote:
> in latex preamble: \usepackage{comment}
> choose from the paragraph-style comment for your annotations.
>
> the first line of your text:
> \includecomment{comment}% annotations will be printed
> or
> \excludecomment{comment}% annotations will be ignored
Great, it is in 1.1.6! Now what LyX needs is:
- A checkbox somewhere in the menus to turn comments on and off.
- Automatically inserting \usepackage{comment} in the document
when needed.
Now I just need to find some time to code this :-)
(next millenium, I guess)
Re: Annotations
Herbert Voss wrote:
>
> > Bas Spitters wrote:
> > >
> > maybe that there's a better solution with the package comment.
>
> i had a look at it, and it's easier:
>
> in latex preamble: \usepackage{comment}
> choose from the paragraph-style comment for your annotations.
I can not find "comment" in the list of paragraph-styles (maybe it's the
LyX version I am using: 1.0.4).
I used
\begin{comment} (in TeX)
This a paragraph with annotations.
\end{comment} (in TeX)
This works fine.
Some things seem to go wrong when I place the \end{comment} on the same
line as the text, but I can easily avoid that.
> the first line of your text:
> \includecomment{comment}% annotations will be printed
> or
> \excludecomment{comment}% annotations will be ignored
Thanks, this does exactly what I want!
Bas Spitters
Re: Annotations
> Bas Spitters wrote:
> >
> maybe that there's a better solution with the package comment.
i had a look at it, and it's easier:
in latex preamble: \usepackage{comment}
choose from the paragraph-style comment for your annotations.
the first line of your text:
\includecomment{comment}% annotations will be printed
or
\excludecomment{comment}% annotations will be ignored
Herbert
--
[EMAIL PROTECTED]
http://perce.de/lyx/
Re: Annotations
Bas Spitters wrote:
>
> I would like to make annotations in an article, in such a way that I can
> print the article with or without the annotations. I.e. something like
> this:
>
> With annotations it would look like:
> This is the main text.
> This a paragraph with annotations.
> This is the main text again.
>
> Without annotations it would look like:
> This is the main text.
> This is the main text again.
>
> I can probably find a way of doing this in LaTeX, but is there a nice
> way of doing it in LyX?
in latex preamble
\usepackage{ifthen}
\newboolean{PrintAnnotation}
\setboolean{PrintAnnotation}{true}
your text looks like
--
This is the main text.
\ifthenelse{\boolean{PrintAnnotation}}{% <- in tex (red)
... This a paragraph with annotations ...
}{}% <- in tex (red)
This is the main text again.
--
that's all! when you change the boolean PrintAnnotation in latex
preamble to
\setboolean{PrintAnnotation}{false}
your annotations will be ignored!
the latex command write in tex (red)
\ifthenelse{\boolean{PrintAnnotation}}{ ... }{}
the dots stand for any text with any commands
maybe that there's a better solution with the package comment.
Herbert
--
[EMAIL PROTECTED]
http://perce.de/lyx/
