Is there a setting in auctex that can hide (fold) comments (paragraphs which start with %)?


You can use TeX-fold-comment (C-c C-o C-c) to hide the comment. You need to enable TeX-fold-mode to make use of this functionality.

See the AUCTeX manual on folding macros and environments for more information.

| improve this answer | |
  • Can I comment all instead of a single line? Also this does not work if there is a tab or space before %is it a normal behavior? – alper May 8 at 13:38
  • This also does not fold comments as following pattern \begin{comment} comment \end{comment} – alper May 8 at 13:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.