3

Does there exist a good option/plugin for ? I tried different combinations of autoindent, smartindent and cindent, what I get is:

\begin{tabular}{ c }
foo \\
    bar
    \end{tabular}

but what I'd like to have is (or something similar, my requirements on are not that strict):

\begin{tabular}{ c }
    foo \\
    bar
\end{tabular}

I also tried setting

let g:tex_flavor='latex'

but with no avail.

  • You can use a combination of snippets (containing the indentation) and autoindent (to continue the indentation on new lines). – Marco Jan 26 '14 at 22:48
  • 1
    Have a look at latexindent (disclaimer: I'm the author). Here's a youtube demonstration- documentation is on ctan, and it is part of texlive – cmhughes Jan 26 '14 at 23:38
0

In the end I used the indenting of the plugin . It works perfectly. Downside of it is, that is quite heavy-weight and if someone is not interested in all the other stuff, then it doesn't make sense to install the whole package. But I am sure getting the indenting out of this package shouldn't be too difficult.

looks nice, too. I opted for the plugin because it works internally in , while is an external script.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.