Skip to content

Instantly share code, notes, and snippets.

@josemanuelcarretero
Created November 14, 2020 14:00
Show Gist options
  • Save josemanuelcarretero/e1b9dc0ef68a5db7ffc10fae55dd781e to your computer and use it in GitHub Desktop.
Save josemanuelcarretero/e1b9dc0ef68a5db7ffc10fae55dd781e to your computer and use it in GitHub Desktop.
Adding region commenting feature for Latex in Intellij editor(No tested in other editors)
%% Not work out document environment
\newenvironment{region}[1][]{}{}
\documentclass[12pt]{article}
\newenvironment{region}[1][]{}{}
\begin{document}
\begin{region}[This will not be shown on the screen]
but this will
\end{region}
\begin{region}[This will not be shown on the screen]
but also this will
\end{region}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment