Hello,
I’ve encountered some unwanted behaviour with the auto-indent behaviour for
tabular environments. Suppose I have the following source, (with the cursor at
* on the next-to-last line):
\begin{tabular}{p{4cm}ccc}
\citet{Moses/Letnes:2004,Moses/Letnes:2005} & Complete
& 73.6 & 96.5\\
& Partial & 29.3 & 54.8\\*
\end{tabular}
If I type C-j to add a new line and auto-indent, I end up with the following
(cursor at *):
\begin{tabular}{p{4cm}ccc}
\citet{Moses/Letnes:2004,Moses/Letnes:2005} & Complete
& 73.6 & 96.5\\
& Partial & 29.3 & 54.8\\
*
\end{tabular}
I would like to turn off this behaviour, because it can make the source text
hard to read — especially if there is a lot of text before the first column
indicator. And I’ve noticed that this not only affects the tabular
environment, but amsmath environments like align as well.
I’ve googled and tried to find the relevant option to suppress this, but I’ve
been unsuccessful. Any recommendations would be appreciated!
Best wishes,
Jason
> On 20 Mar 2022, at 16:00, [email protected] wrote:
>
> Send auctex mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/auctex
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of auctex digest..."
>
>
> Today's Topics:
>
> 1. Re: Indenting the code written in square brackets as optional
> parameters (Arash Esbati)
> 2. Re: Indenting the code written in square brackets as optional
> parameters (Ikumi Keita)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 19 Mar 2022 18:33:09 +0100
> From: Arash Esbati <[email protected]>
> To: Ikumi Keita <[email protected]>
> Cc: Sašo Živanović <[email protected]>,
> निरंजन <[email protected]>, [email protected]
> Subject: Re: Indenting the code written in square brackets as optional
> parameters
> Message-ID: <[email protected]>
> Content-Type: text/plain
>
> Hi Keita,
>
> Ikumi Keita <[email protected]> writes:
>
>> Thanks a lot! Based on your work, I added two examples as well as
>> supplementary explanations.
>
> Thanks, LGTM. I have one question though:
>
>> +@noindent
>> +Note that this is an opt-in feature, both variables are initially set to
>> +an empty string. That is because it introduces non-trivial side effects
>> +to include @code{[} and @code{]} in @code{TeX-indent-open-delimiters} and
>> +@code{TeX-indent-close-delimiters}; if you only have an opening square
>> +bracket in your text without closing it, wrong indentation persists in the
>> +following text. For example, in math expression, half-open intervals are
>> +frequently written as @samp{[0,10)} or @samp{[0,10[[}.
>
> What is [0,10[[ for an interval? I was aware of () and [] combinations
> but the double [[ is new to me (and my daily math business doesn't
> involve intervals ;-)
>
> Best, Arash
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 20 Mar 2022 22:01:45 +0900
> From: Ikumi Keita <[email protected]>
> To: Arash Esbati <[email protected]>
> Cc: Sašo Živanović <[email protected]>,
> निरंजन <[email protected]>, [email protected]
> Subject: Re: Indenting the code written in square brackets as optional
> parameters
> Message-ID: <1407.1647781305@localhost>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Arash,
>
>>>>>> Arash Esbati <[email protected]> writes:
>> Thanks, LGTM. I have one question though:
>
>> What is [0,10[[ for an interval? I was aware of () and [] combinations
>> but the double [[ is new to me (and my daily math business doesn't
>> involve intervals ;-)
>
> Shame on me, I didn't look at the example Tassilo gave closely. To tell
> the truth, it was the first time for me to be in touch with expression
> "[a,b[". I'll correct it. (^_^;)
>
> Regards,
> Ikumi Keita
> #StandWithUkraine #StopWarInUkraine
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> auctex mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/auctex
>
>
> ------------------------------
>
> End of auctex Digest, Vol 202, Issue 15
> ***************************************