In the following code, I would like to build an environment that just hides its content, this content can use any standard LaTeX code like enumerated lists, tables...
\documentclass[10pt]{article}
\newenvironment{forshort}{}{}
\begin{document}
Something in the whole course.
\begin{forshort}
Just a summary...
\end{forshort}
\end{document}
Is there a ready-to-use package ?
I have tried tagging
but this is only for "textual" contents : this not seems to work with the enumerate
environment.
The package scontents
could be hacked but the problem I've met is that I can't define an environment using \begin{scontents}[store-env = donotshow] ... \end{scontents}
.
version
2) defineforshort
with\newenvironment{forshort}{\relax}{\relax}
3) add in preamble\excludeversion{forshort}
scontents
has built-in\newenvsc
command that covers this specific case, you can use\newenvsc{forshort}[store-env=forshort,print-env=false]
.