[emacs-berlin] Hide LaTeX section, subsection etc.

Andreas Röhler andreas.roehler at easy-emacs.de
Tue Sep 24 17:19:36 UTC 2019


Hi Ilia,

stuff should be available at:

https://github.com/emacs-berlin/tex-hide-show

Built as minor-mode above hs-minor-mode.

M-x tex-hide-show-mode RET enables it in current buffer.

Command ‘eb-tex-hide-show-section’ toggles visibility of a section at
point. With optional "\C-u" also subsections are affected.

When ‘eb-tex-hide-cycle-p’ is customized to ‘t’, cycles levels resp.
unhides as org-mode's cycling does.

‘eb-tex-hide-cycle-p’ defaults to nil.

Bug-reports are welcome at 
https://github.com/emacs-berlin/tex-hide-show/issues

Enjoy,

Andreas


On 20.09.19 16:35, Ilia Kurenkov wrote:
> Hi Andreas!
>
> Thanks for the interest. There's not much code to post, since what I'm 
> interested in is rather behavior.
> I would like to be able to place my cursor at a LaTeX \section or 
> \subsection line then hit Tab and have the section collapse like its 
> equivalent would do in org-mode. In short, I want org-mode section 
> navigation/manipulation support for LaTeX. The Spacemacs latex layer 
> (which installs Auctex by default) has no support for this, not even 
> if I enable hs-minor-mode or outline-minor-mode.
>
> All that being said, this isn't a direly needed feature because for my 
> thesis I have a configuration I'm comfortable with:
> I do all my writing in org-mode, then export *only the body* to a tex 
> file which is then loaded via \input by another tex file that contains 
> the preamble, the references, and appendix, all of which were easier 
> to rig up in LaTeX and which don't really change after initial setup. 
> All of this mess is source-controlled.
>
> Cheers,
> Ilia
>
> On Wed, Sep 4, 2019 at 5:16 PM Niclas Meyer <niclas at countingsort.com 
> <mailto:niclas at countingsort.com>> wrote:
>
>     In case someone is using use-package, they need `(use-package tex
>     :ensure auctex)`, as auctex overrides Emacs' tex package.
>
>     > Andreas Röhler <andreas.roehler at easy-emacs.de
>     <mailto:andreas.roehler at easy-emacs.de>> hat am 4. September 2019
>     um 10:35 geschrieben:
>     >
>     >
>     >
>     > On 04.09.19 09:13, Andreas Röhler wrote:
>     > >
>     > > Installed here calling "aptitude install auctex"
>     > >
>     >
>     > Which actually failed, but install from Elpa succeeded.
>     >
>     > Now appears "LaTeX" in menu instead of "Tex"
>     >
>     > _______________________________________________
>     > emacs-berlin mailing list
>     > emacs-berlin at emacs-berlin.org <mailto:emacs-berlin at emacs-berlin.org>
>     > https://mailb.org/mailman/listinfo/emacs-berlin
>     _______________________________________________
>     emacs-berlin mailing list
>     emacs-berlin at emacs-berlin.org <mailto:emacs-berlin at emacs-berlin.org>
>     https://mailb.org/mailman/listinfo/emacs-berlin
>
>
>
> -- 
> Ilia
>
> _______________________________________________
> emacs-berlin mailing list
> emacs-berlin at emacs-berlin.org
> https://mailb.org/mailman/listinfo/emacs-berlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailb.org/pipermail/emacs-berlin/attachments/20190924/8f0e241a/attachment.html>


More information about the emacs-berlin mailing list