-
Notifications
You must be signed in to change notification settings - Fork 407
Unnecessary reverse indent of \item in nested enumerate environment #2670
Copy link
Copy link
Closed
Labels
Description
Description
The indentation of \item seems to work improperly in a nested enumerate environment (enumerate in another enumerate). When I enter an \item in a nested enumerate and type a space, the \item gets indented backwards unnecessarily.
Steps to reproduce
- Begin with the following minimal TeX file:
\begin{document}
\begin{enumerate}
\end{enumerate}
\end{document}- Type
\itemin theenumerateenvironment, after that start anotherenumerate(where|stands for the cursor position):
\begin{document}
\begin{enumerate}
\item \begin{enumerate}|
\end{enumerate}
\end{document}- Start a newline, type another
\item(which belongs to the innerenumerate):
\begin{document}
\begin{enumerate}
\item \begin{enumerate}
\item|
\end{enumerate}
\end{document}- Type a space:
\begin{document}
\begin{enumerate}
\item \begin{enumerate}
\item |
\end{enumerate}
\end{document}Expected behavior
The inner \item should stay in place after the space is typed, like this:
Actual behavior
The following recording shows the problematic actual behavior - \item gets falsely indented back:
nested_enumerate.mov
Do you use a latexmkrc file?
No
VimtexInfo
System info:
OS: macOS 12.4 (21F79)
Vim version: NVIM v0.8.2
Has clientserver: true
Servername: /var/folders/zx/08zvm7jx3k70j_1_nyt1lc_80000gn/T/nvim.lutalli/2amYJE/nvim.66614.0
VimTeX project: tmp
base: tmp.tex
root: /
tex: /tmp.tex
main parser: fallback current file
document class:
compiler: latexmk
engine: -pdf
options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
callback: 1
continuous: 0
executable: latexmk
viewer: Skim
qf method: LaTeX logfileReactions are currently unavailable
