I'm using the package extract
and I'm facing the following problem:
I try to extract only equation in align
environnement (only A and not B, see the code), but it does not work. I have read the extract
documentation but didn't find any answer. I would appreciate your help.
P.S. The code works well when there is no align*
environement (but unfortunately I need it).
\documentclass[a4paper]{report}
\usepackage[active,
generate=test,
extract-env={align}]{extract}
\usepackage{amsthm}
\usepackage{amsmath}
\begin{document}
% % % % A
\begin{align}
x^2 + y^2 &= 1
\\ y &= \sqrt{1 - x^2}.
\end{align}
% % % % B
\begin{align*}
x^2 + y^2 &= 1
\\ y &= \sqrt{1 - x^2}.
\end{align*}
\end{document}
In the error log I got this message:
\begin{align*} on input line 23 ended by \end{XTRalign}. \end{align*}
P.S. I'm wondering if it is maybe a limitation because with the equation
environment the following code works:
\documentclass[a4paper]{report}
\usepackage[active,
generate=test,
extract-env={equation}]{extract}
\usepackage{amsthm}
\usepackage{amsmath}
\begin{document}
% % % % A
\begin{equation}
x^2 + y^2
\end{equation}
% % % % B
\begin{equation*}
x^2 + y^2
\end{equation*}
\end{document}
extract
package.extract
package before, so I have no idea what it does, but thealign
construction is rather special in that AFAIR it explicitly looks for the string\end{align}
to end it, so what ever `extract is doing may mess this up.