Thread: [Vim-latex-devel] bracket macros?
Brought to you by:
srinathava,
tmaas
From: Carl M. <cm...@ma...> - 2002-11-08 15:29:49
Attachments:
auctex.vim
|
I would definitely consider including macros for changing brackets into vim-latex. I have some in my auctex.vim script (which I'm attaching), and I find these to be extremely useful for my own typing. Best wishes, Carl Mueller |
From: Hermitte L. <her...@fr...> - 2002-11-08 16:24:01
|
* On Fri, Nov 08, 2002 at 10:30:02AM -0500, Carl Mueller <cm...@ma...> wrote: > I would definitely consider including macros for changing > brackets into vim-latex. I have some in my auctex.vim > script (which I'm attaching), and I find these to be > extremely useful for my own typing. Carl, Just in case, I found the brackets changing/deleting macros very nice. But, they are not only useful to (La)TeX. So, I did include them in a script dedicated to brackets handling: common-brackets.vim. I've uploaded the latest version earlier on SF. Otherwise it is also available on my web site. Srinath, Mikolaj, On a close topic, I've also updated my variation on Stephen Riehm's initial bracketing system, and more particulary: the markers system. Now, it is possible to jump forward and backward to markers. I will have more checkings to do, but I'm afraid you don't systematically use generical markers but sometimes still «». Which is bad. «» are the French quote characters used in LaTeX. If you eventually use my new system, you can statically change '«»' to Markers_Txt({any-comment}). For a dynamical choice [1] of markers used, deeper changes will be required. <adv>which I already manage in lh-tex ;-)</adv>. Regards, [1] if you want to use «» in a English TeX buffer, but %%%() in a French TeX buffer. -- Luc Hermitte http://hermitte.free.fr/vim |
From: Hermitte L. <her...@fr...> - 2002-11-08 16:51:13
|
* Earlier, I wrote: > I will have more checkings to do, but I'm afraid you don't > systematically use generical markers but sometimes still «». Which is > bad. «» are the French quote characters used in LaTeX. Sorry. Forget about this part. I was expecting convertions using ¡mark! while you directly translated «» from IMAP. I'm skeptical, but it works with simple tests (i.e.: I didn't tried to insert «¡mark!»¡mark!). -- Luc Hermitte |
From: Srinath A. <sr...@fa...> - 2002-11-08 18:01:01
|
Hello! I just had a look at the bracket changing functions in auctex.vim. Its a pretty neat idea. Including those functions in latex-suite is definitely the right thing to do... We have to consolidate the latex-suite structure somewhat so that from next time on, adding such contributions becomes seamless (plugins for latex-suite?) In the meanwhile, I will add the bracketing things manually when I next get around to it (unless someone volunteers to do it). Also, about amslatex, I am not too familiar with that. Mikolaj, you want to take that up? A general doubt which I asked Mikolaj a long time ago: is there a tool which parses a .sty file and is able to extract all the options, commands etc? This might make supporting new packages easier. Thanks, Srinath On Fri, 8 Nov 2002, Hermitte Luc wrote: PS: Hey Luc! Welcome to the group! |
From: Hermitte L. <her...@fr...> - 2002-11-09 01:08:09
|
* On Fri, Nov 08, 2002 at 09:53:51AM -0800, Srinath Avadhanula <sr...@fa...> wrote: > We have to consolidate the latex-suite structure somewhat so that from > next time on, adding such contributions becomes seamless (plugins for > latex-suite?) > In the meanwhile, I will add the bracketing things manually when I > next get around to it (unless someone volunteers to do it). My biaised opinion is to use common_brackets.vim also. http://hermitte.free.fr/vim/settings.php3#common_brackets_vim pro: * the work is already there * it is independant of any filetype * heavily configurable * I will continue to maintain and support it as a core part of all my ftplugins * a little documentation already exists. cons: * it is complex and may need to rewrite/delete some parts from vim-latex (only if '{' inserts '}«»', '[' -> ']«»' and may be '(' -> ')«»') * it requires other plugins having a minor incompatibility with imap.vim (the name of the options for the open and close markers) BTW, pro: the marker system I propose is more advanced (in term of available options, features and complexity) than the variation of Gergely's function you include. * did I said it is a big and quite complex piece. Last point for tonight (may things to say about templates this weekend), I prefer having thematic scripts. When something can be done as a plugin only, it should be so. It helps to define more scalable systems and it helps the maintenance. > PS: Hey Luc! Welcome to the group! :-)) Thanks. Have a nice week-end. -- Luc Hermitte |
From: Mikolaj M. <mi...@wp...> - 2002-11-09 17:15:10
|
On Fri, Nov 08, 2002 at 09:53:51AM -0800, Srinath Avadhanula wrote: > We have to consolidate the latex-suite structure somewhat so that from > next time on, adding such contributions becomes seamless (plugins for > latex-suite?) > In the meanwhile, I will add the bracketing things manually when I next > get around to it (unless someone volunteers to do it). > Also, about amslatex, I am not too familiar with that. Mikolaj, you want > to take that up? A general doubt which I asked Mikolaj a long time ago: > is there a tool which parses a .sty file and is able to extract all the > options, commands etc? This might make supporting new packages easier. Packages are written in very different ways. From plain plain to latex. I am afraid the only way is to read documentation of package and do it by hand :( I will do amslatex as package. Most math chars are now included in Math menu. Mikolaj -- LaTeX + Vim = http://vim-latex.sourceforge.net/ Learn Touch Typing with Vim: http://vim.sourceforge.net/script.php?script_id=461 |