Thursday, April 17, 2014

Re: Problem with latex template

I don't really know what your "strange.tex" attachment was for, but it looks like some sort of templating plugin placeholder got inserted all over the place.

For your "test.tex" file, it looks like your problem is a "stairstep" indent when you inserted a LaTeX template.

I don't use TeX or LaTeX, but I did find a couple pages which seem to describe a similar problem with the automatic indenting of LaTeX documents.

This one ( http://stackoverflow.com/questions/12693687/vim-automatic-indent-of-latex-files-bad ) suggests:
let g:tex_flavor='latex'

This one ( http://superuser.com/questions/494115/vim-indent-in-latex-align-goes-crazy ) suggests:
let g:tex_indent_brace=0

Both assume you have either "filetype indent on" or "filetype plugin indent on" in your .vimrc.

Neither really has a very definite resolution.

The other thing I can think of which might help (depending on how template insertion works) is setting the 'paste' option prior to inserting the template.

Good luck! Please post back if you find a solution. Hopefully somebody who actually uses Vim's LaTeX features can step in here.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: