[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Entering maths
From: |
Denis Bitouzé |
Subject: |
Re: [AUCTeX] Entering maths |
Date: |
Tue, 13 Jun 2017 14:21:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Le 13/06/17 à 13h09, Mosè Giordano a écrit :
> Hi Denis,
Hi Mosé,
> 2017-06-13 12:51 GMT+02:00 Denis Bitouzé <address@hidden>:
>> Hi,
>>
>> does AUCTeX provide something making life easier for inline-math
>> expressions (`|' standing for the cursor position):
>>
>> - `\(|\)',
>> - `$|$' (OK, it's easy to type two dollar signs and go back to write the
>> expression between the dollar signs, but would be better if done by
>> a shortcut)?
>
> Yes, of course ;-) You have to customize the `TeX-electric-math'
> option
> (https://www.gnu.org/software/auctex/manual/auctex.html#index-TeX_002delectric_002dmath):
>
> [...]
Ooops, sorry for the noise: I looked at the AUCTeX documentation, but
not at the right place:
┌────
│ https://www.gnu.org/software/auctex/manual/auctex/Mathematics.html
└────
IMHO, too bad TeX-electric-math is nil by default...
As an extra question, documentation says:
By pressing repeatedly $ while the region is active you can toggle
between an inline equation, a display equation, and no equation. To be
precise, ‘$...$’ is replaced by ‘$$...$$’, whereas ‘\(...\)’ is
replaced by ‘\[...\]’.
But how to get:
- ‘$|$’ with an "unrepeated" `$',
- ‘\[|\]’ with an "repeated" `$'?
>> In the same vein, I know constructing display-math expressions with
>> `\[...\]':
>>
>> - has some drawbacks if `amsmath' is not loaded,
>
> I believe this is fixed if you have a recent LaTeX version (2015/01/01
> or newer, which is in TeX Live 2016).
Ah, good to know!
>> - is synonym to `\begin{equation*}...\end{equation*}' if `amsmath' is
>> loaded,
>>
>> but does AUCTeX provide something for `\[|\]'?
>
> If you set `LaTeX-electric-left-right-brace'
> (https://www.gnu.org/software/auctex/manual/auctex.html#index-LaTeX_002delectric_002dleft_002dright_002dbrace)
> to non nil, as you as you type "\[", the closing "\]" is inserted
> after point.
OK.
Thanks!
--
Denis
- [AUCTeX] Entering maths, Denis Bitouzé, 2017/06/13
- Re: [AUCTeX] Entering maths, Mosè Giordano, 2017/06/13
- Re: [AUCTeX] Entering maths,
Denis Bitouzé <=
- Re: [AUCTeX] Entering maths, Mosè Giordano, 2017/06/13
- Re: [AUCTeX] Entering maths, Denis Bitouzé, 2017/06/13
- Re: [AUCTeX] Entering maths, gojjoe, 2017/06/13
- Re: [AUCTeX] Entering maths, Denis Bitouzé, 2017/06/13
- Re: [AUCTeX] Entering maths, Jean-Jacques Rétorré, 2017/06/13
- Re: [AUCTeX] Entering maths, gojjoe, 2017/06/13
- Re: [AUCTeX] Entering maths, Denis Bitouzé, 2017/06/14
- Re: [AUCTeX] Entering maths, Denis Bitouzé, 2017/06/14
- Re: [AUCTeX] Entering maths, David Kastrup, 2017/06/14
- Re: [AUCTeX] Entering maths, Denis Bitouzé, 2017/06/14