You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thank you for your work on textidote, it works beautifully on many of my tex files.
I'm however hitting a strange behaviour of some files: multiline math environment (and some environment that I'd like to see removed) are not correctly stripped by textidote if they come after a one line math environment.
Consider this MWE:
\begin{document}
One line math:
\[\int_{1}^{2}x \mathrm{d}x}\]
Tikzpicture:
\begin{tikzpicture}
\draw (0,0);
\end{tikzpicture}
Multi line math:
\[
\int_{1}^{2}x \mathrm{d}x}
\]
One line math:
\[\int_{1}^{2}x \mathrm{d}x}\]
\end{document}
If I run textidote --clean --remove tikzpicture test.tex, I get the following output:
TeXtidote v0.8.3 - A linter for LaTeX documents and others
(C) 2018-2021 Sylvain Hallé - All rights reserved
One line math:
Tikzpicture:
tikzpicture
\draw (0,0);
tikzpicture
Multi line math:
\[
1^2x dx
\]
One line math:
However, if I remove the first math environment, tikzpicture environment and multiline math are correctly removed:
TeXtidote v0.8.3 - A linter for LaTeX documents and others
(C) 2018-2021 Sylvain Hallé - All rights reserved
Tikzpicture:
Multi line math:
One line math:
Am I missing something?
The text was updated successfully, but these errors were encountered:
jc1bert
changed the title
Multiline math and environment not striped after first math environment
Multiline math and environment not stripped after first math environment
Dec 10, 2022
Hi,
I just gave v0.9 a try with the MWE provided earlier. The first math environment is still problematic regarding the removal of the tikzpicture environment and the multiline math.
Hi,
Thank you for your work on textidote, it works beautifully on many of my tex files.
I'm however hitting a strange behaviour of some files: multiline math environment (and some environment that I'd like to see removed) are not correctly stripped by textidote if they come after a one line math environment.
Consider this MWE:
If I run
textidote --clean --remove tikzpicture test.tex
, I get the following output:However, if I remove the first math environment, tikzpicture environment and multiline math are correctly removed:
Am I missing something?
The text was updated successfully, but these errors were encountered: