Thread: [Vim-latex-devel] can you modify these?
Brought to you by:
srinathava,
tmaas
From: xitong c. <xit...@li...> - 2009-09-24 09:58:30
|
Hello dear maintainers. I was very happy with vim-latex in the past years. However I have two modifications which I would like you can take into consideration. For example if I press F5 when I was in insert mode I can choose equation*, and the output is \begin{equation*} cursor here \end{equation*}<++> What I wish you could reconsider is the position of <++>. Many latex users, if my guess is correct, prefer typing latex file like we have the follow equation \begin{equation*} my equation \end{equation*} then by this equation we know... So I really wish you could put <++> as \begin{equation*} cursor here \end{equation*} <++> Ok the next modification is about $cursor here$my equation$$ Since sometimes I just like to use $$ $$ for convenience. And of course you know vim-latex cannot recognize $$$$ well. It means if I press four $ continuously I got $$<++>$<++>$<++> and instead what I really want is $$ cursor here $$ So could you please add an auto-recognition for latex-suite that if I press two $ then of course as normal it gives out $cursor here$<++> and if I press an extra $ consequently then it recognize I want to have a $$ $$<++> Thank you. Xitong _________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009 |
From: peng s. <sha...@gm...> - 2009-09-24 10:00:59
|
On Thu, Sep 24, 2009 at 4:58 AM, xitong chen <xit...@li...> wrote: > > Hello dear maintainers. I was very happy with vim-latex in the past years. > However I have two modifications > which I would like you can take into consideration. For example if I press > F5 when I was in insert mode I can choose equation*, and the output is > > \begin{equation*} > cursor here > \end{equation*}<++> > > What I wish you could reconsider is the position of <++>. Many latex users, > if my guess is correct, prefer typing latex file like > > we have the follow equation > \begin{equation*} > my equation > \end{equation*} > then by this equation we know... > > So I really wish you could put <++> as > > \begin{equation*} > cursor here > \end{equation*} > <++> > > > Ok the next modification is about > > $cursor here$my equation$$ > > Since sometimes I just like to use $$ $$ for convenience. And of course you > know vim-latex cannot recognize $$$$ well. It means if I press four $ > continuously I got > > $$<++>$<++>$<++> > > and instead what I really want is > > $$ cursor here $$ > > So could you please add an auto-recognition for latex-suite that if I press > two $ then of course as normal it gives out $cursor here$<++> and if I press > an extra $ consequently then it > recognize I want to have a $$ $$<++> > > Thank you. > > Xitong > > > OK I wish the maintainers can add these two functions as well ... Many thanks. Peng |
From: Javier R. <jer...@de...> - 2009-09-24 14:49:54
|
On Thu, Sep 24, 2009 at 05:58:21AM -0400, xitong chen wrote: > So I really wish you could put <++> as > > \begin{equation*} > > cursor here > > \end{equation*} > <++> have a look at the vim-latex help (:help Tex_Env_name), you can customize how you want to do the completion of any environment -- Javier Rojas GPG Key ID: 0x24E00D68 |
From: Till M. <ope...@ti...> - 2009-10-02 21:03:14
|
On Thu, Sep 24, 2009 at 05:58:21AM -0400, xitong chen wrote: > Hello dear maintainers. I was very happy with vim-latex in the past years. However I have two modifications > which I would like you can take into consideration. For example if I press F5 when I was in insert mode I can choose equation*, and the output is > > \begin{equation*} > cursor here > \end{equation*}<++> > > What I wish you could reconsider is the position of <++>. Many latex users, if my guess is correct, prefer typing latex file like > > we have the follow equation > \begin{equation*} > > my equation > > \end{equation*} > then by this equation we know... > > So I really wish you could put <++> as > > \begin{equation*} > > cursor here > > \end{equation*} > <++> It seems to me, that this behaviour can only be changed easily for all environments and not especially for equation*. I am currently not sure, if this makes sense for every environment. Are there more opinions on this? > Ok the next modification is about > > $cursor here$my equation$$ > > Since sometimes I just like to use $$ $$ for convenience. And of course you know vim-latex cannot recognize $$$$ well. It means if I press four $ continuously I got > > $$<++>$<++>$<++> > > and instead what I really want is > > $$ cursor here $$ > > So could you please add an auto-recognition for latex-suite that if I press two $ then of course as normal it gives out $cursor here$<++> and if I press an extra $ consequently then it > recognize I want to have a $$ $$<++> I believe this would require a major change, too, because the $$ mapping will always be evaluated before you can type the third dollar sign. Regards Till |
From: Ted P. <te...@te...> - 2009-10-04 18:59:25
|
> It seems to me, that this behaviour can only be changed easily for all > environments and not especially for equation*. I am currently not sure, > if this makes sense for every environment. Are there more opinions on > this? There are lots of environments (e.g., ones that live inside math environments, like aligned and bmatrix) that are probably best left alone. >> Since sometimes I just like to use $$ $$ for convenience... I think this usage is deprecated. I believe that some of the improvements made by mathtools (and even amsmath) have difficulty being implemented with the old style displaymode delimiters. Especially because Vim has macros that make the environments as easy to use as the short forms, I don't think much effort should go into making vim-latex support $$...$$. --Ted -- Ted Pavlic <te...@te...> |
From: Daniele A. <d.a...@gm...> - 2009-10-03 08:48:18
|
The two options \begin{equation*} cursor here \end{equation*}<++> and \begin{equation*} cursor here \end{equation*} <++> are only one button away from each other, and I don't see why is hard to stick to option 1, press Ctrl-J to the placeholder, and then Enter to go to new line. I am also skeptical about the use of $$ ... $$. This is not a Vim-LaTeX problem, but a LaTeX one. The use of $$ has been replaced long time ago by \[ ... \]. Using double dollars is obsolete, and it would be better to change this habit rather than Vim-LaTeX. Best. Daniele On Fri, Oct 2, 2009 at 10:02 PM, Till Maas <ope...@ti...> wrote: > On Thu, Sep 24, 2009 at 05:58:21AM -0400, xitong chen wrote: > > > Hello dear maintainers. I was very happy with vim-latex in the past > years. However I have two modifications > > which I would like you can take into consideration. For example if I > press F5 when I was in insert mode I can choose equation*, and the output is > > > > \begin{equation*} > > cursor here > > \end{equation*}<++> > > > > What I wish you could reconsider is the position of <++>. Many latex > users, if my guess is correct, prefer typing latex file like > > > > we have the follow equation > > \begin{equation*} > > > > my equation > > > > \end{equation*} > > then by this equation we know... > > > > So I really wish you could put <++> as > > > > \begin{equation*} > > > > cursor here > > > > \end{equation*} > > <++> > > It seems to me, that this behaviour can only be changed easily for all > environments and not especially for equation*. I am currently not sure, > if this makes sense for every environment. Are there more opinions on > this? > > > Ok the next modification is about > > > > $cursor here$my equation$$ > > > > Since sometimes I just like to use $$ $$ for convenience. And of course > you know vim-latex cannot recognize $$$$ well. It means if I press four $ > continuously I got > > > > $$<++>$<++>$<++> > > > > and instead what I really want is > > > > $$ cursor here $$ > > > > So could you please add an auto-recognition for latex-suite that if I > press two $ then of course as normal it gives out $cursor here$<++> and if I > press an extra $ consequently then it > > recognize I want to have a $$ $$<++> > > I believe this would require a major change, too, because the $$ mapping > will always be evaluated before you can type the third dollar sign. > > Regards > Till > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > > |
From: Ted P. <te...@te...> - 2009-10-04 19:02:16
|
> I am also skeptical about the use of $$ ... $$. This is not a Vim-LaTeX > problem, but a LaTeX one. The use of $$ has been replaced long time ago by > \[ ... \]. Using double dollars is obsolete, and it would be better to > change this habit rather than Vim-LaTeX. And, as described in my last contribution to this thread, even \[...\] is going the way of deprecation. Shortcuts should be implemented within each editor (e.g., with vim-latex "EEQ" and such). There's no need to use short-form displaymode environments (they're deceiving anyway). To add to that, the improvements made by mathtools (and even amsmath) have trouble trickling down through $$...$$ and \[...\] (if I recall from the docs correctly). -- Ted Pavlic <te...@te...> |