Is there any Latex editor which supports hoisting a section or subsection? Most outlining softwares have hoisting feature. I don't find any Latex editor with hoisting feature. Any?

Note: Hoisting is not about collapsible headings. It is about completely blocking out the rest of the text and zooming into one heading.

Here is a good example from FoldingText.

Collapsed headings look like this: enter image description here


enter image description here

  • What exactly do you mean with "hoisting"? – TeXnician Mar 30 '17 at 12:25
  • 4
    Emacs has such a facility called outline-mode. It offers plenty of visibility commands. – Arash Esbati Mar 30 '17 at 14:24
  • 1
    Geany is a general purpose programming editor, with IDE features such as a compile button, a document tree, etc. There are also specific plugins for LaTeX editing, for symbols, referencing, and so on. And it has code folding, which can be used for 'hoisting'. – Marijn Mar 30 '17 at 15:08
  • 2
    WinEdt has the Fold Node, Fold All and Fold Surrounding Nodes functionalities. – Bernard Mar 30 '17 at 16:29
  • 1
    Emacs also has narrowing — I think that's closer to what you're looking for. – ShreevatsaR Apr 12 '17 at 22:16

In TeXStudio you can find in the View menu:

  1. Collapse->Everything

    enter image description here

  2. And to expand the current block Expand->Nearest Block, however the coverage of this block can also be smaller then the whole subsection, if you are inside other collapse-able structures.

    enter image description here

It's also possible to assign keyboard shortcuts to these commands -- probably you can also do a macro which does both at once, but I did not test this.

Or totally different approach: Have every section in a separate file which is input into the main file. If you use TeXstudios masterfile functionality, you can close all other files (including the main file) and concentrate on a single section.

  • Thank you for the answer. I am familiar with the Expand Everything feature of Texstudio. I will do as you suggested. – Dellu Apr 12 '17 at 22:00

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.