alphapapa / outshine

Org-mode for non-Org buffers
GNU General Public License v2.0
212 stars 23 forks source link

Do we do LaTeX? #74

Open thblt opened 4 years ago

thblt commented 4 years ago

This is probably related to #63 . Outshine has a lot of infrastructure to support LaTeX editing, but it seems this infrastructure is totally isolated from the main code.

This issue is just a reminder for now.

thblt commented 4 years ago
  1. The LaTeX infrastructure seems indeed useless.
  2. Removing code in outshine--minor-mode-activate from (outshine-set-outline-regexp-base) to the end of the function makes outshine work with LaTeX

Solution: provide a secondary outshine mode, like outshine-respectful-mode or something, that doesn't try to compute the heading regexp. This can be done with a variable provided this variable gets set before outshine-mode is called.

alphapapa commented 4 years ago

Solution: provide a secondary outshine mode, like outshine-respectful-mode or something, that doesn't try to compute the heading regexp. This can be done with a variable provided this variable gets set before outshine-mode is called.

I like the sound of that!

tj64 commented 4 years ago

Hi @thblt , indeed I just started the LaTeX infrastructure when new professional opportunities turned my focus completely away from Emacs. So whats there cannot be more than some skeletons for some initial ideas wrt to LaTeX.

All those modes that define headlines themselves (Latex , html, ...) don't play too well with outshine I think. Its like "marking a headline as a headline" somehow.

outshine-respectful-mode sounds like a nice idea.

HumHongeKamyaab commented 3 years ago

Continuing #85 here.

So outshine-cycle wont work till this is fixed. Is there a quick fix which I can incorporate in my config so that 'outshine-cycle' work in latex. I just need this function, nothing else from outshine-latex features.

HumHongeKamyaab commented 3 years ago

I resolved it, please check https://github.com/alphapapa/outshine/issues/85#issuecomment-812295359