[TxMt] [Macro] HTLM to LaTeX

José Campos jose.campos+tm at galacsys.com
Thu Nov 11 21:09:54 UTC 2004


    Hi All,

    Using my fingers and RegEx, I hardly manage to convert simple HTML
file to TeX file, something like :
    find : <h1>([^<]+)</h1> replace : \\section{$1}
    find : <h2>([^<]+)</h2> replace : \\subsection{$1}
    find : <ul> replace : \\begin{itemize}
    find : <blockquote>([^<]+)</blockquote> 
        replace : \\begin{quotation}\n$1\n\\end{quotation}
    and so on...

    Has someone here written a macro that does that job? It would be
very helpfull :)

    Thanks,

-- 
  Jo                                         <W:00°04'37" ; N:47°15'36">

1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72



More information about the textmate mailing list