1

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).

0
6

You can use

%BEGIN_FOLD

your preamble

%END_FOLD
5

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.