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, auctex-requ...@gnu.org wrote: > > Send auctex mailing list submissions to > auctex@gnu.org > > 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 > auctex-requ...@gnu.org > > You can reach the person managing the list at > auctex-ow...@gnu.org > > 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 <ar...@gnu.org> > To: Ikumi Keita <ik...@ikumi.que.jp> > Cc: Sašo Živanović <saso.zivano...@guest.arnes.si>, > निरंजन <hi.niran...@protonmail.com>, auctex@gnu.org > Subject: Re: Indenting the code written in square brackets as optional > parameters > Message-ID: <865yo9g84q....@gnu.org> > Content-Type: text/plain > > Hi Keita, > > Ikumi Keita <ik...@ikumi.que.jp> 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 <ik...@ikumi.que.jp> > To: Arash Esbati <ar...@gnu.org> > Cc: Sašo Živanović <saso.zivano...@guest.arnes.si>, > निरंजन <hi.niran...@protonmail.com>, auctex@gnu.org > 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 <ar...@gnu.org> 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 > auctex@gnu.org > https://lists.gnu.org/mailman/listinfo/auctex > > > ------------------------------ > > End of auctex Digest, Vol 202, Issue 15 > ***************************************