Denis Bitouzé <denis.bitouze-ptoolb6qfnlddoiwg0d...@public.gmane.org> writes:

> IMO, an extra indentation is missing in (mandatory) arguments of
> environments. For instance, in the following full indented `.tex` code:
>
> \documentclass{article}
> \begin{document}
> \NewDocumentCommand{\foo}{
>   som
> }{}
> \begin{tabular}{
>   rcl
>   }
>   &&
> \end{tabular}
> \end{document}
>
> it would be nice for the `tabular` piece of code to be indented as
> follows:
>
> \begin{tabular}{
>     rcl
>   }
>   &&
> \end{tabular}
>
> WDYT?

(I'm resending this since my first attempt through gmane didn't work,
sorry if you receive this message twice.)

In general, it would make sense, yes.  But I'm not sure it's worth the
effort.  The tabular environment has this entry in
`LaTeX-indent-environment-list':

  ("tabular"       LaTeX-indent-tabular)

which means that the indentation inside tabular is provided by
`LaTeX-indent-tabular'.  So your request basically means to hack
`LaTeX-indent-tabular' in a way that it recognizes the optional and/or
mandatory argument and then caters for the desired indentation.

I would like to see a way that AUCTeX provides decent indentation and
*filling* in tabular-like environments.

At any rate, I'd say patches for either are welcome.

Best, Arash

Reply via email to