arxiv-latex-cleaner icon indicating copy to clipboard operation
arxiv-latex-cleaner copied to clipboard

Commands_to_delete ignores commands with options

Open MarcinNaw opened this issue 2 years ago • 2 comments

It seems that commands with preceding options are not filtered, e.g.:

arxiv_latex_cleaner "${dir}" --commands_to_delete "todo"

This will not drop the following command:

\todo[inline]{valve pls fix}

Did I use the wrong command?

PS: Thank you for this great tool.

MarcinNaw avatar Sep 02 '21 17:09 MarcinNaw

You're right, we did not consider this case. Marking as bug.

jponttuset avatar Sep 07 '21 10:09 jponttuset

Also for sth like:\begin{table*}[!t]

Waterkin avatar Oct 10 '23 12:10 Waterkin

It looks like this bug still exists on the main branch. I believe it is due to regex not matching some edge cases as described above. I am happy to work on it.

dylduhamel avatar Feb 06 '24 21:02 dylduhamel