Having previously used TeXstudio, I used the % BEGIN_FOLD
command to fold sections of code manually in the code representation, e.g. for loading packages etc. (see below). Now switching to Overleaf, I couldn't figure out how to do this - is there a way to achieve this? (I know it is possible for \begin{section}
etc. but I would like to achieve the same result for manually defined chunks (the % BEGIN_FOLD
and % END_FOLD
section in below code). Many thanks in advance.
\documentclass{article}
% BEGIN_FOLD -----------PACKAGES------------
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{lipsum}
% END_FOLD -----------PACKAGES------------
\begin{document}
\section{First section}
\paragraph{}
\lipsum[1]
\section{Second section}
\paragraph{}
\lipsum[2]
\end{document}
preamble.tex
) and then just do\input{preamble}
. Just please always keep\documentclass
and\begin{document}
in the main file (do not move these two into the preamble) or the Overleaf compiler would get confused.