I am using the versions.sty package and would like to process some text twice (or more times) in a different version configuration, but within the same document. So I use \excludeversion
and \includeversion
several times. Each use of these seems to define the environment with the same parameter as the name of the argument. So I get an annoying warning at every run, cluttering my LaTeX messages.
Here is a small example:
\documentclass{book}
\usepackage{versions}
\begin{document}
\includeversion{A}
\excludeversion{B}
\begin{A}a\end{A}
\begin{B}b\end{B}
\excludeversion{A}
\includeversion{B}
\begin{A}a\end{A}
\begin{B}b\end{B}
\end{document}
Produces the following warnings:
Package `Versions' Warning: Redefining environment `A' on input line 11.
Package `Versions' Warning: Redefining environment `B' on input line 12.
And the following output:
a
b
The output is fine. Is there a better way of doing what I am trying to achieve without this warnings?
(of course the idea is that the text that is repeated in MWE is included from the same file, so I obtain different run of latex over the same file).
versions
package. Could you provide the expected output of your minimal example?