auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Indentation of opt. argument of environments


From: Arash Esbati
Subject: Indentation of opt. argument of environments
Date: Sun, 14 Aug 2022 15:17:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Hi all,

when I set

(setq TeX-indent-open-delimiters  "[")
(setq TeX-indent-close-delimiters "]")

and open a .tex file like this, I get this indentation:

--8<---------------cut here---------------start------------->8---
\documentclass[10pt,a4paper]{article}

\usepackage[%
  inline,
  includedisplayed,
  sizes
]{enumitem}

\begin{itemize}[%
    itemsep=1ex,
    leftmargin=1cm
  ]
\item 
\end{itemize}

\end{document}
--8<---------------cut here---------------end--------------->8---

The optional argument of \usepackage is indented by 2 spaces, the
optional argument of \begin{itemize} gets 4 spaces.  It doesn't look
right to me.  What do others think?  Should we try to fix this to get:

\begin{itemize}[%
  itemsep=1ex,
  leftmargin=1cm
]
\item 
\end{itemize}

Best, Arash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]