Just to clarify, to solve this, I have to create a hook to LaTeX-mode that
looks as follows, ensuring that I fontify the buffer before it is folded

(defun juanjo:latex-hook ()
           (turn-on-reftex)
           (TeX-fold-mode +1)
           (font-lock-mode +1)
           (TeX-fold-buffer))

If I simply use use-package with two :hook statements, one for
TeX-fold-mode and one for TeX-fold-buffer, this does not work.


On Sat, Apr 28, 2018 at 6:36 PM, Juan Jose Garcia-Ripoll <
[email protected]> wrote:

> I have a \section{} in LaTeX which is properly fontified in ordinary
> LaTeX-mode. If I fold the buffer, the outcome looks pretty different
> I can see the usual fontified text if I move with the cursor over the text
> and once I exit I recover the face that should have been there from the
> beginning
>
> I assume this is a bug in how TeX-fold works but I am having a hard time
> debugging it.
>
> Juanjo​
>
> --
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
>



-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to