Skip to content

Folding is not working with enumerate* (starred version) #1994

@cristobaltapia

Description

@cristobaltapia

Issue
Folding does not work with the inline (starred) enumerate environment of the package enumitem.
Depending on which line one activates the folding, it works in one or another way.

minimal.tex

\documentclass{minimal}
\usepackage[inline]{enumitem}
\begin{document}

\section{Test}

Some text 
\begin{enumerate*}
  \item first thing and
  \item second thing
\end{enumerate*}
not folding correctly :( .

\section{Another test section}

Text

\end{document}

Observed Behaviour
If the cursor is on the first item everything gets folded up to the next section.
If the cursor is on the second item, then only the last item and the \end{enumerate*} get folded.

Expected Behaviour
The whole environment should be folded, just as with the figure or table environments.

Output from VimtexInfo
Run :VimtexInfo and paste the content here.

System info
  OS: Ubuntu 20.04.2 LTS
  Vim version: NVIM v0.5.0-dev
  Has clientserver: true
  Servername: /tmp/nvimYb41SC/0

VimTeX project: test
  base: test.tex
  root: /home/tapiac/Dokumente/test_1
  tex: /home/tapiac/Dokumente/test_1/test.tex
  out: /home/tapiac/Dokumente/test_1/aux-folder/test.pdf
  log: /home/tapiac/Dokumente/test_1/aux-folder/test.log
  aux: /home/tapiac/Dokumente/test_1/aux-folder/test.aux
  fls: /home/tapiac/Dokumente/test_1/aux-folder/test.fls
  main parser: current file verified
  compiler: latexmk
    configuration: 
      continuous: 0
      callback: 0
      build_dir: aux-folder
      latexmk options:
        -verbose
        -shell-escape
        -file-line-error
        -synctex=1
        -interaction=nonstopmode
      latexmk engine: -lualatex
  viewer: Zathura
    xwin id: 0
  qf: LaTeX logfile
    addqflist: 335
    fix_paths: 336
    set_errorformat: 334
  document class: minimal
  packages:
    amsbsy
    amsgen
    amsmath
    amsopn
    amstext
    array
    booktabs
    calc
    caption
    caption3
    color
    colortbl
    emp
    epstopdf-base
    etexcmds
    everyshi
    expl3
    fancyhdr
    floatrow
    fltpoint
    fontenc
    geometry
    graphics
    graphicx
    grfext
    ifluatex
    ifpdf
    ifvtex
    ifxetex
    infwarerr
    inputenc
    keyval
    kvdefinekeys
    kvoptions
    kvsetkeys
    l3keys2e
    lineno
    listings
    lmodern
    lstmisc
    ltxcmds
    mathtools
    mhsetup
    multirow
    natbib
    pdftexcmds
    pgf
    pgfcomp-version-0-65
    pgfcomp-version-1-18
    pgfcore
    pgffor
    pgfkeys
    pgfmath
    pgfplots
    pgfrcs
    pgfsys
    pifont
    rccol
    rotating
    siunitx
    soul
    subcaption
    supertabular
    tabularx
    threeparttable
    tikz
    translator
    trig
    txfonts
    verbatim
    wasysym
    wrapfig
    xcolor
    xparse

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions