auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be compl


From: Hongyi Zhao
Subject: Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.
Date: Fri, 10 Dec 2021 11:20:38 +0800

On Fri, Dec 10, 2021 at 11:10 AM Ikumi Keita <ikumi@ikumi.que.jp> wrote:
>
> >>>>> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> >> >  For \boldsymbol, it works for me when I put point inside a
> >> > (inline) math environment and type \bol (i.e., $\bol*$ * being point)
> >> > and hit C-M-i, then I get \boldsymbol.
> >>
> >> I got the following completion result while testing your above example:
> >>
> >> $\biol$
>
> > But I can get \boldsymbol{alpha} completion by the following method
> > regardless I'm in inline math environment:
>
> > M-x LaTeX-math-boldsymbol RET alpha RET
>
> Standard LaTeX doesn't provide \boldsymbol, while amsmath does. You will
> obtain completion support for \boldsymbol in AUCTeX when you add
> \usepackage{amsmath} in the preamble (and enable `TeX-parse-self' option).

Yes. All these conditions are met in my tests.

HZ



-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



reply via email to

[Prev in Thread] Current Thread [Next in Thread]