Notetaking with Latex and collapsing text for research papers
You could use Emacs/org-mode. Advantage: It is a simple yet powerful (and in principle infitely extendable) plain-text outliner with all the features that you require. Disadvantage: It requires some familiarity with the Emacs-editor, which has a relatively steep learning-curve.