HOL icon indicating copy to clipboard operation
HOL copied to clipboard

HOL munger should not translate inside LaTeX comments

Open mn200 opened this issue 14 years ago • 2 comments

The built-in lexer should know when it has just passed over a %... On the other hand, having to spot that it's inside a verbatim type environment is a very hard prospect.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

mn200 avatar Nov 02 '11 00:11 mn200

Actually, if users are just forbidden from using verbatim, this wouldn't be so bad. Inside an alltt they can use \% to get a % that isn't stripped as a comment by the munger. Percent signs inside a \verb remain a problem, but I guess that usage is pretty uncommon.

mn200 avatar Jan 25 '14 00:01 mn200

Encountered the same issue. HOL munger would produce output which would be displayed in the PDF despite the relevant statement being inside a comment. Workaround: mangle the command so that it cannot be understood by the HOL munger, but it's still obvious what the intent is after the code is uncommented

Eric-C-Hall avatar Feb 25 '25 08:02 Eric-C-Hall