Re: [Vim-latex-devel] Too much space around equations
Brought to you by:
srinathava,
tmaas
From: Ted P. <te...@te...> - 2012-08-27 17:21:54
|
David -- In most cases, I get around this problem by making use of visual selection. For example, hitting "v" at the top of the paragraph and then using movement keys (e.g., cursor forward or } then cursor backward) to isolate the section I want. Then I can "gw" that. If you're looking for something a little more exotic, I wrote this blog post a while ago that I think might be applicable here: http://phaseportrait.blogspot.com/2011/08/using-gobblepars-to-prevent-latex-from.html You could add a \gobblepars (after defining it in your preamble) before gaps, and LaTeX should ignore the \par automatically added by the gap. --Ted On 08/23/2012 11:43 AM, David Adley wrote: > Apologies for posting this here but I've looked everywhere online and > it's a vim specific latex problem > > When I write tex I separate out my paragraphs and equations as follows > > and then we find out that (end paragraph 1) > > \begin{equation} > z^2 = x^2 + y^y > \end{equation} > > (start paragraph 2) which is rather nice. > > > This is so that I can use 'gwip' to format the paragraph before and > after the equation without formatting the equation as well. However in > latex the empty lines introduce \par tokens which adds extra space > around the equation. I've tried eliminating the displayskip and > shortskip lengths but there is still a large space around the equation > due to the \par tokens. > > I know that the normal solution is to simply replace the empty line with > a comment '%' but this will break the 'gwip' formatting. > > Any ideas? > David > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > -- Ted Pavlic <te...@te...> |