Skip to content

Incorrect indentation of math blocks containing \iff #2023

@jordan-arenstein

Description

@jordan-arenstein

Issue
When using a math block containing \iff, indenting the block using the = motion results in an increase of the indentation level for the rest of the document.

minimal.tex

\documentclass{minimal}
\begin{document}
\begin{equation}
ab = 0 \iff a = 0 \text{ or } b = 0
\end{equation}
\end{document}

Commands/Input
From the minimal.tex, select the entire file, and indent using =, and the final two lines are incorrectly indented.

Observed Behaviour

\documentclass{minimal}
\begin{document}
\begin{equation}
	ab = 0 \iff a = 0 \text{ or } b = 0
	\end{equation}
	\end{document}

Expected Behaviour

\documentclass{minimal}
\begin{document}
\begin{equation}
	ab = 0 \iff a = 0 \text{ or } b = 0
\end{equation}
\end{document}

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

System info
  OS: macOS 11.3 (20E5172i)
  Vim version: NVIM v0.5.0-dev+370469be2
  Has clientserver: true
  Servername: /var/folders/_8/094zv34n46169ry2ym4xrh5m0000gn/T/nvimabGDN8/0

VimTeX project: test
  base: test.tex
  root: /Users/jordan/Desktop
  tex: /Users/jordan/Desktop/test.tex
  out: 
  log: 
  aux: 
  fls: 
  main parser: current file
  compiler: latexmk
    configuration: 
      continuous: v:true
      callback: v:true
      latexmk options:
        -verbose
        -file-line-error
        -interaction=nonstopmode
      latexmk engine: -pdf
  viewer: General
  qf: LaTeX logfile
    addqflist: 69
    fix_paths: 70
    set_errorformat: 68
  document class: 

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