TeX - LaTeX Asked on March 7, 2021
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}
Not a solution but, as a workaround, I am for now using the way described here, using a separate file starting with ProvidesPackage{costumname}
which is saved as costumname.sty
and used in the main document with usepackage{costumname}
.
Answered by Ivo on March 7, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP