sponsor Vim development Vim logo Vim Book Ad

xml2latex : Convert XML files to LaTeX tabbing environment

 script karma  Rating 8/7, Downloaded by 1585  Comments, bugs, improvements  Vim wiki

created by
Eustaquio Rangel de Oliveira Jr.
script type
This script converts your XML files into a LaTeX tabbing environment, creating tab stops according to the max number of tabs on the file, changes the tab chars into \> chat marking chars and put \\ on the end of all the lines of the XML file.
I use it inside a \begin{tt} \end{tt} block here to get all my < and > chars converted correctly.
It's well known that the \begin{verbatim} \end{verbatim} does the trick, but I wrote this script because I need to apply some font changes (bold,tiny) on the XML code.
install details
Just copy it to your ~/.vim/plugin directory and use ,x or :Xml2latex to convert your file.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
xml2latex.vim 0.2 2004-04-12 6.0 Eustaquio Rangel de Oliveira Jr. I just changed the local vars with s: (hey, I didn't know about s:, it's my first script heheh). :-)
xml2latex.vim 0.1 2004-04-05 6.0 Eustaquio Rangel de Oliveira Jr. Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github