When I open a new tex file and hit C-c C-e <RET> to create document environment, the message buffer shows
TeX-search-files-by-type: No TeX trees available; configure ‘TeX-tree-roots’.
It will then exit the environment input procedure and there is no automatically created \begin{document} \end{document}. How do I deal with this problem? This has not happened before.
I am using an M1 MacBook Pro running macOS Monterey 12.0.1
Emacs version: 27.2
AUCTeX version: 13.0.14
Edit: The problem appears only when using GUI. Emacs in terminal works fine.
kpsewhich
. You can check that by inserting(executable-find "kpsewhich")
in scratch buffer, putting the point after the)
and hittingC-x C-e
.