Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment problem with ampersands and set of parentheses #677

Closed
nrontsis opened this issue Jan 31, 2017 · 1 comment
Closed

Alignment problem with ampersands and set of parentheses #677

nrontsis opened this issue Jan 31, 2017 · 1 comment

Comments

@nrontsis
Copy link

nrontsis commented Jan 31, 2017

Issue

Strange alignment with ampersands and a set of parentheses that spans across multiple lines. Issue remains when vimtex_indent_on_ampersands is set to 0 (see #613).

Minimal working example

The following alignment occurs in the example below

\documentclass{minimal}

% Problematic alignment
\begin{document}

\begin{align}
	&x(
y)
\end{align}

% Correct alignment (given vimtex_indent_on_ampersands=0)
\begin{equation}
	x(
	y)
\end{equation}

\end{document}

Minimal vimrc file

call plug#begin('~/.vim/plugged')
Plug 'lervag/vimtex'
call plug#end()

let g:vimtex_format_enabled = 1
let g:vimtex_indent_on_ampersands = 0

syntax on
filetype plugin indent on
lervag added a commit that referenced this issue Mar 8, 2017
@lervag lervag closed this as completed in 4673424 Mar 8, 2017
@lervag
Copy link
Owner

lervag commented Mar 8, 2017

Thanks, this was actually quite simple, but it took me a while to understand the problem. In any case, it was a bug and I think it is squashed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants