Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comment symbol "%" remove #73

Open
Zhonglu opened this issue Nov 29, 2022 · 2 comments
Open

comment symbol "%" remove #73

Zhonglu opened this issue Nov 29, 2022 · 2 comments

Comments

@Zhonglu
Copy link

Zhonglu commented Nov 29, 2022

It is suggested that comments should not be replaced by blank, but be replaced by "%".

"%" can be important to hold some positions. Deleting it may cause error.

@jponttuset
Copy link
Collaborator

In principle, the behaviour of arXiv LaTeX cleaner does not affect the compiled results, since it keeps the "%" where needed. If you have an example that breaks, though, we can have a look at it

@piperfw
Copy link

piperfw commented May 8, 2024

Here's a minimal example that breaks due to removal of a % (note the spacing before '%' characters appears to be important?)

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
		%Z
	 %Y
		X
\end{align}
\end{document}

With the result

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}

		X
\end{align}
\end{document}

Is is possible to at least disable the deletion of lines containing 'only' a %? I have hundreds of instances of it failing in compiling a large document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants