On Wed, Dec 8, 2021 at 8:34 PM Hongyi Zhao <[email protected]> wrote: > > On Wed, Dec 8, 2021 at 6:53 PM Jean-Jacques Rétorré > <[email protected]> wrote: > > > > mer. 08 déc. 2021, Denis Bitouzé <[email protected]> disait : > > > > > Le 08/12/21 à 11h34, Hongyi Zhao a écrit : > > > > > >> On Ubuntu 20.04.3 LTS, I use the self-compiled git master version of > > >> Emacs and installed AUCTeX, company-math, cdlatex, etc. as a > > >> LaTeX-based document preparation environment. > > >> > > >> But I still found there are some LaTeX commands, such as \boldsymbol > > >> and \hspace, which can't completed automatically when I type some of > > >> their opening characters. > > > > > > Another one, among a lot of others: \linewidth. > > > > > >> Any hints for solving this problem? > > > > > > Compared to LaTeX IDE, e.g. TeXstudio, AUCTeX is much less handy from > > > this point of view. Would be nice for this aspect to be improved :) > > > > > > Regards. > > > > Adds > > > > (TeX-add-symbols '("linewidth")) :.... > > > > in your intit file, and all symbol who lacks. > > Usually they come with the style file associated to a package > > > > (info "(auctex)Adding Support for Macros") > > But I meet the following error while running the above command by `M-: > (info "(auctex)Adding Support for Macros") RET`: > > user-error: Info file ‘auctex’ does not exist; consider installing it
I have also checked the variable `Info-directory-list`, and see the following entry in it: "/home/werner/.emacs.d/straight/build/auctex/" Then I checked the doc directory as shown below: $ ls /home/werner/.emacs.d/straight/build/auctex/doc/ auctex.info history.texi preview-faq.texi tex-ref.pdf auctex.info-1 install.texi preview-latex.info tex-ref.tex auctex.info-2 intro.texi preview-latex.texi todo.texi auctex.texi macros.texi preview-problems.texi version.texi changes.texi Makefile preview-readme.texi wininstall.texi copying.texi Makefile.in preview-todo.texi faq.texi preview-dtxdoc.pl quickstart.texi fdl.texi preview-dtxdoc.texi tex-ref.log Regards, HZ
