Texstudio offers the handy option to wrap the code corresponding to whole sections, environments, etc.
Is there a way to the same with a documents' preamble?
I have tried embedding the whole preamble into curly braces { whole preamble }
, stopping right before \begin{document}
. That allows me to wrap the preamble, but it generates and error when compiling.
Also, I know I could export the preamble to another document and use \include
or \input
, but I am specifically looking for a solution that keeps the whole document unified, with the actual preamble at the top (but "wrappable" in the editor).