Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-22 Thread Hongyi Zhao
On Mon, May 22, 2023 at 7:50 AM Mosè Giordano wrote: > > On Mon, 22 May 2023 at 00:45, Hongyi Zhao wrote: > > Mine is as follows: > > > > --8<---cut here---start->8--- > > $ runs the command cdlatex-dollar (found in cdlatex-mode-map), which > > is an

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Mon, May 22, 2023 at 7:50 AM Mosè Giordano wrote: > > On Mon, 22 May 2023 at 00:45, Hongyi Zhao wrote: > > Mine is as follows: > > > > --8<---cut here---start->8--- > > $ runs the command cdlatex-dollar (found in cdlatex-mode-map), which > > is an

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Mosè Giordano
On Mon, 22 May 2023 at 00:45, Hongyi Zhao wrote: > Mine is as follows: > > --8<---cut here---start->8--- > $ runs the command cdlatex-dollar (found in cdlatex-mode-map), which > is an interactive byte-compiled Lisp function in ‘cdlatex.el’. > > It is bound to

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Mon, May 22, 2023 at 12:35 AM Mosè Giordano wrote: > > On Sun, 21 May 2023 at 14:34, Hongyi Zhao wrote: > > But I still cannot observe the desired behavior, as shown in the > > attached screenshot. > > Are you sure that `$' is bound to `TeX-insert-dollar'? In a LaTeX > buffer, what does `C-h

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Mosè Giordano
On Sun, 21 May 2023 at 14:34, Hongyi Zhao wrote: > But I still cannot observe the desired behavior, as shown in the > attached screenshot. Are you sure that `$' is bound to `TeX-insert-dollar'? In a LaTeX buffer, what does `C-h k $' give you? I get --8<---cut

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Sun, May 21, 2023 at 9:33 PM Hongyi Zhao wrote: > > On Sun, May 21, 2023 at 7:14 PM Mosè Giordano wrote: > > > > Hi Zhao > > > > On Sun, 21 May 2023 at 09:41, Hongyi Zhao wrote: > > > I want to convert `bla` to `$bla$` automatically when be highlighted > > > and typeset a `$'. > > > > I

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Sun, May 21, 2023 at 7:14 PM Mosè Giordano wrote: > > Hi Zhao > > On Sun, 21 May 2023 at 09:41, Hongyi Zhao wrote: > > I want to convert `bla` to `$bla$` automatically when be highlighted > > and typeset a `$'. > > I believe you want to look at `TeX-electric-math' >

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Mosè Giordano
Hi Zhao On Sun, 21 May 2023 at 09:41, Hongyi Zhao wrote: > I want to convert `bla` to `$bla$` automatically when be highlighted > and typeset a `$'. I believe you want to look at `TeX-electric-math' (https://www.gnu.org/software/auctex/manual/auctex/Quotes.html#index-TeX_002delectric_002dmath):

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Sun, May 21, 2023 at 4:41 PM Hongyi Zhao wrote: > > Hi here, > > I want to convert `bla` to `$bla$` automatically when be highlighted > and typeset a `$'. > > Currently, my observed result is `bla$$`, which is not consistent with > the LaTeX math environment. I tried the following, but failed

Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
Hi here, I want to convert `bla` to `$bla$` automatically when be highlighted and typeset a `$'. Currently, my observed result is `bla$$`, which is not consistent with the LaTeX math environment. Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational