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

Ilia Kurenkov ilia.kurenkov at gmail.com
Wed Sep 25 16:57:44 UTC 2019


Hi Andreas!

Thanks for this. I will test it out in the next few days. Unfortunately due
to a procrastination-induced emergency I won't make it this week to the
meetup (*sob*).

You should, however, present your wonderful extension there and already get
some feedback. I'm sure Laura, for instance, would reap daily benefit from
it!

All the best and till next time!
Ilia


On Tue, Sep 24, 2019 at 7:16 PM Andreas Röhler <
andreas.roehler at easy-emacs.de> wrote:

> 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>
> 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> 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
>> > https://mailb.org/mailman/listinfo/emacs-berlin
>> _______________________________________________
>> emacs-berlin mailing list
>> emacs-berlin at emacs-berlin.org
>> https://mailb.org/mailman/listinfo/emacs-berlin
>>
>
>
> --
> Ilia
>
> _______________________________________________
> emacs-berlin mailing listemacs-berlin at emacs-berlin.orghttps://mailb.org/mailman/listinfo/emacs-berlin
>
>

-- 
Ilia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailb.org/pipermail/emacs-berlin/attachments/20190925/08d03cb4/attachment.html>


More information about the emacs-berlin mailing list