Thread: [Vim-latex-devel] LaTeX help for Vim
Brought to you by:
srinathava,
tmaas
From: Peter K. <pe...@ka...> - 2002-11-09 08:30:15
|
[regarding http://vim-latex.sourceforge.net/ ] Hi, quite some time ago I e-mailed with Mikolaj Machowski about LaTeX-help for Vim. Mikolaj told me about your Vim-Latex Suite, but I lost contact, = mainly due limited time during the time I was writing my diploma thesis. I don't know if any of you is aware of the additions I've made to = Mikolaj's LaTeXhelp. I added some stuff, I missed while writing latex documents. You can grab that updated copy of LaTeX-help at my homepage: www.karpfenteich.net I began that work as a personal "project", just to help me writing latex stuff. As I noticed that this would be beneficial for other LaTeX/Vim = users I posted the uncompleted but already somewhat enlarged version on my homepage. I have been looking for people willing to contribute, but nobody seemed to have interest/time/fun/whatever. I got two or three e-mails, but none of them stayed at the project or even began... :-( Then I got in contact with Michael Wiedmann who earlier had suggested that adding content in the Vim specific file format might not be the best idea, as non-Vim users won't benefit (at least that another "special" conversion process would be needed). Sure I agreed, but had no better idea for a source format _and_ most important didn't had the time during the diplom thesis to learn a new markup language, _just_ to add some missing latex commands to the help file. Therefore I took the easiest way to improve = upon Mikolaj's file. But after I announced the updated LaTeXhelp file Michael contacted me = again and already had begun to work on a translation from the orginal texinfo files to an XML source! BTW, such a LaTeX reference is highly needed. In a few days nearly twothousand people visited my homepage and downloaded the LaTeXhelp = (either in Vim help format or as HTML). I just had an announcement on the german and the international latex newsgroup, so I'm sure that the demand for = such a LaTeX reference is high! Back to Michael. He kept improving the translation process to XML and finally added my changes/improvements from the LaTeXhelp file for the Vim help. From then on he maintained the XML sources and added more content. I personally would have liked to contribute more content (for example for = the excellent Koma script or for AMS math stuff). That has been some months = ago now and Michal still is keeping on improving the XML source (technically and adding content). BTW, currently the output formats he generates are pdf, html, rtf, winhelp and others. I finished my diploma thesis and thought I'd now have time, but must admit that looking for a job and improving my knowledge in my field takes most = of my time. Still I _would_ have contributed more content to the LaTeXhelp (which we named tex-refs to show that the aim is to provide a reference = for TeX and friends and that it's "more" then the original LaTeX help"), = _when_ two conditions would have been met: 1) I need to be able to understand the XML structure and add content easy. That was the major problem. I'm still looking for a good solution to help me editing the XML source. I must admit that I don't find it that easy to take care of the tags. Maybe a "tag list" which is allowed in the document would get me going, but I didn't took the time to make such a list or even write Vim macros to aid maintaining the XML source. 2) Another reason that dramaticly made my wish to improve on that XML source file smaller is that up till now no conversion from XML to the Vim help file format exists and in the end that's what I want to have. I only have basic experience with Vim macros and have not been able to = come up with a solution myself (at least not in the time span which I could = have "afforded" at that moment). Therefore I was looking for a volunteer to = help us to write a conversion routine from XML to the Vim help format. We would be happy about _every_ solution. Perl, XSLT, Vim macros, awk or other solutions would be a good way to go. I personally think that a Vim macro might be the most natural way, because every Vim user who wants the LaTeX help for Vim will surely have Vim ;-) This approach would allow a user to add personal content to the XML file and generate a LaTeX help file, where one also could add the descriptions for personal defined latex macros and so on. My second best solution would be using awk or Perl, because that's available on every platform and (especially awk) is easy to install. Michael would prefer an XSLT solution, because that's what _he_ uses for the conversion of the other formats. Sure that's also logic. My qualms are that an XSLT solution would not give as many people the chance to do the translations for themselfs, because the XSLT setup is much more complex (with makefiles and so on), then using a plain Vim, awk or perl macro. I'm (at least now) on a Win32 platform and as I understood Michael the = XML/XSLT tools are not all available for the win platform. Also it still would need bigger efforts to get a running XSLT setup then using one of the other scripting languages. So here's my suggestion: Provide the already existent expanded LaTeXhelp file from my homepage with the Vim LaTeX-Suite and even better take a look at the current state of TeX-Refs at: http://www.miwie.org/tex-refs/ and see what you/we/all LaTeX/Vim users miss, when we don't have a conversion between XML and the Vim help format. When time permits I'll try to write a Vim macro to do the conversion, but don't hold your breath as I have other projects which are more important right now (I also don't use LaTeX that much these days...) When one of you would like to contribute in form of writing a Vim macro = (or any other solution mentioned or even a Basic program or one in Assembler ;-) we surely would like to hear from you and the TeX-Refs project and the LaTeX-Suite would fructify each other. I'm looking forward to hear your ideas and opinions. Regards Peter |
From: Hermitte L. <her...@fr...> - 2002-11-09 20:42:16
|
Hello Peter, * On Sat, Nov 09, 2002 at 09:29:17AM +0100, Peter Karp <pe...@ka...> wrote: > Michael would prefer an XSLT solution. > My qualms are that an XSLT solution would not give as many people the > chance to do the translations for themselfs It is not so different from Perl or awk. Not every body using VIM have these tools installed, nor VIM compiled to accept such script. > , because the XSLT setup is much more complex (with makefiles and so > on), With XT, i didn't have to run any makefile to install it. The only makefile I have is to parse the XML and XSLT files when either of them has changed. > I'm (at least now) on a Win32 platform and as I understood Michael the > XML/XSLT tools are not all available for the win platform. XT is available on windows (I'm currently under a WinMe + cygwin box), and here exist other tools, check the xsl faq on: http://www.dpawson.co.uk/xsl/xslfaq.html May be, it lack features, I don't know as I'm a complete newbye with xslt, but so far it works fine: I've been able to generate xsl:fo files that I used then to produce PDF files. As the Vim help-filetype format is very simple, I guess that tools like XT will be fine. -- Luc Hermitte |
From: Peter K. <pe...@ka...> - 2002-11-10 15:06:01
|
Hermitte Luc schrieb am 09.11.2002: > > My qualms are that an XSLT solution would not give as many people the > > chance to do the translations for themselfs > > It is not so different from Perl or awk. Ah, o.k. > Not every body using VIM have these tools installed, nor VIM compiled to > accept such script. ??? You mean somebody will not be able to run a simple Vim script foo.vim? I doubt that. Or did you mean that not everybody has Perl or awk configured in some way to work with Vim? That's surely right. > > , because the XSLT setup is much more complex (with makefiles and so > > on), > With XT, i didn't have to run any makefile to install it. > The only makefile I have is to parse the XML and XSLT files when either > of them has changed. ? What's XT? > > I'm (at least now) on a Win32 platform and as I understood Michael the > > XML/XSLT tools are not all available for the win platform. > > XT is available on windows (I'm currently under a WinMe + cygwin box), > and here exist other tools, check the xsl faq on: > http://www.dpawson.co.uk/xsl/xslfaq.html Thanks for the pointer. On a first look I didn't found how that would help me -- not with a too big effort. > May be, it lack features, I don't know as I'm a complete newbye with > xslt, but so far it works fine: I've been able to generate xsl:fo files > that I used then to produce PDF files. As the Vim help-filetype format > is very simple, I guess that tools like XT will be fine. As I don't know what XT is I don't understand your e-mail in all details. My thought was that a Vim script might be the best solution, because every Vim user who would like to take the XML sources to add personal stuff will surely have Vim. All other solutions seem not so easy to use for me. Only awk, as it has a really tiny binary would be almost as good. Every other solution like Perl and even more XSLT would need more effort and is not likely to be installed "just" to translate the docs for themself. O.K. one can argue that not many people would like to add personal stuff. That could be true. I don't know. _I_ want to be able to add personal content :-) Regards Peter |
From: Luc H. <her...@fr...> - 2002-11-10 19:46:32
|
* On Sun, Nov 10, 2002 at 04:05:04PM +0100, Peter Karp <pe...@ka...> wrote: > > Not every body using VIM have these tools installed, nor VIM > > compiled to accept such script. > ??? You mean somebody will not be able to run a simple Vim script foo.vim? > I doubt that. Or did you mean that not everybody has Perl or awk configured > in some way to work with Vim? That's surely right. I mean your second hypothesis: having vim installed does not mean one has perl nor awk installed. Nor one has a vim version with support of perl. > > With XT, i didn't have to run any makefile to install it. > ? What's XT? XT is a parser that render XML data into any format (html, php, TeX, ... and even pure text file if we want to) according to a given XSLT file. > > > I'm (at least now) on a Win32 platform and as I understood Michael > > > the XML/XSLT tools are not all available for the win platform. > > XT is available on windows (I'm currently under a WinMe + cygwin box), > > and here exist other tools, check the xsl faq on: > > http://www.dpawson.co.uk/xsl/xslfaq.html > Thanks for the pointer. On a first look I didn't found how that would help > me -- not with a too big effort. I don't remember where exactly, but in the FAQ, there is a list of products able to parse XSLT+XML documents to render the data in other formats. XT is referenced, amongs several other free and not free programs. > My thought was that a Vim script might be the best solution, because every > Vim user who would like to take the XML sources to add personal stuff will > surely have Vim. > All other solutions seem not so easy to use for me. I understand what you mean. But, converting an XML file thanks to a dedicated tool (ie an XML+XSLT parser) will be easier than trying a parse a tagged file will tools like awk. Awk is nice, but not the easiest tool for this task. > Every other solution like Perl and even more XSLT would need more > effort and is not likely to be installed "just" to translate the docs > for themself. > O.K. one can argue that not many people would like to add personal > stuff. That could be true. I think so: not every body will want to add stuff to the doc. And if they want to do it, they will likely share with other people, and they may be interrested in using appropriate tools. > _I_ want to be able to add personal content :-) You have awk installed. Not everybody has it -- unless having access to a *NIX system. Anyway. It is not very important as you can provide an awk script to translate the docs into HTML/vim-help ; and other people can provide two XSLT files aimed at producing the same thing. Regards, -- Luc Hermitte |
From: Srinath A. <sr...@ee...> - 2002-11-10 10:33:46
|
Hey Peter! The Tex-Refs (or is Tex-refs for friends :) project sounds very fascinating. From what I understand, the most useful thing for you now will be a vim macro which converts XML source to vim help... As of now, I do not have any experience with XML or the like, but it looks like a useful thing to learn... I was in fact thinking of expanding the documentation section of LaTeX-suite and in that sense your email did come in time. A few doubts: 1. Although a vim help format file might be the most natural way of viewing LaTeX documentation for users, HTML in my opinion does not fall far behind. Firstly, absolutely everyone has some sort of HTML browser. With HTML, we could do more formatting etc. 2. Also, at around the bottom of the first URL, you say that you might need some help converting the vim help file into html. Mikolaj has already done this for the LaTeX help file in LaTeX-suite. See it at: http://vim-latex.sourceforge.net/download/latexhelp.html It has html links and everything... I say this because www.karpfenteich.net says at the bottom: > (at the moment simple form without hyperlinks, read to the end to > see how you could help me there :-) In any case, we can begin to collaborate even before a xml-vimhelp tool is available. For one, I'll put a link to the tex-refs page from the links page on LaTeX-suite. At the present moment, I am looking at some vim scripting things with LaTeX-suite. I will get back to you when I get that done. Thanks, Srinath On Sat, 9 Nov 2002, Peter Karp wrote: > [regarding http://vim-latex.sourceforge.net/ ] > > Hi, > -- Srinath Avadhanula Nov 10 1:58am I am so optimistic about beef prices that I've just leased a pot roast with an option to buy. |