3

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

Hoisted:

enter image description here

Dellu
  • 847
  • 1
  • 9
  • 21
  • What exactly do you mean with "hoisting"? – TeXnician Mar 30 '17 at 12:25
  • "hoisting" seems to be a javascript idea. I don't understand what it might do in a LaTeX editor. Please provide an example showing what you would like to have. Just the name isn't enough. – Ethan Bolker Mar 30 '17 at 12:25
  • Presumably you are looking for a collapsible outliner: certainly some of the entries in http://tex.stackexchange.com/questions/339/latex-editors-ides have such a feature – Joseph Wright Mar 30 '17 at 12:26
  • NO, it is not about collapsible headings. It is about zooming into a heading or section. The editor would hide the rest of the text outside of the heading. It is very useful to block out the rest of the text and focus on only a specific chapter/section/heading. – Dellu Mar 30 '17 at 12:29
  • Here is an example using FoldingText: 1. unhoisted

    2. Hoisted

    – Dellu Mar 30 '17 at 12:37
  • In Geany you can use Document-Fold all, then press, e.g., spacebar to unfold only the current block, then press backspace to undo the inserted space. You can make a macro out of this to use a single shortcut key. – Marijn Mar 30 '17 at 13:41
  • is Geany Tex editor? I never heard of it. – Dellu Mar 30 '17 at 14:04
  • 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
  • I still remember the wonderfull "hoisting" of FrameWork II ... (sometime seconds after the BigBang), but today I will suggest the outline panel of LyX. It is not a true LaTeX editor, and it does not collapse anything, but you can focus instantly any section, change their level or move it safely, without a dangerous cut & paste. – Fran Mar 30 '17 at 18:47
  • Thank you for the suggestions. I am now trying to break down my file to focus on subsections. I don't think I will use Lyx. I need the standard Tex. – Dellu Apr 12 '17 at 22:03
  • 2
    Emacs also has narrowing — I think that's closer to what you're looking for. – ShreevatsaR Apr 12 '17 at 22:16

1 Answers1

3

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