[l2h] \verbatiminput{} support in l2h, can one use absolute file path?

Christian Pleul chrisptex at googlemail.com
Thu Nov 25 09:20:24 CET 2010


What happens if you just put it to a subfolder "snippets" to keep the files together. And then write

> \verbatiminput{snippets/file.txt}



Am 24.11.2010 um 16:13 schrieb Nasser M. Abbasi:

> Hello;
> 
> Using l2h 2008, I wanted to read source code into the latex document.
> Since l2h does not support listings.sty, I read that one needs
> to use \verbatiminput{file.txt} instead.
> 
> The above does work with l2h, but only when file.txt is in the same folder
> as the latex document:
> 
> \documentclass{article}%
> \usepackage{verbatim}
> \usepackage{html}
> \begin{document}
> \verbatiminput{file.txt}
> \end{document}
> 
> latex2html t.txt
> 
> OK. No error
> 
> But if I change to a path, then an error occurs:
> 
> \documentclass{article}%
> \usepackage{verbatim}
> \usepackage{html}
> \begin{document}
> \verbatiminput{G:/home/file.txt}
> \end{document}
> 
> latex2html t.txt
> 
> *********** WARNINGS ***********
> No file <G:/home/file.txt.tex> for verbatim input.
> 
> notice, it added the .tex extension to the file now.
> 
>> latex2html --version
> $* is no longer supported at G:\LATEX\latex2html\bin/latex2html.bat line 10607.
> This is LaTeX2HTML Version 2008 (1.71)
> 
>> latex --version
> MiKTeX-pdfTeX 2.8.3563 (1.40.10) (MiKTeX 2.8)
> 
> For now, I put all my source code files in the same folder
> as my latex file to allow this to work.
> 
> Is there an easy fix for this to allow one to use an absolute,
> or even a relative path for the file name?
> 
> related posting:
> http://www.tug.org/pipermail/texhax/2005-March/003659.html
> 
> thanks
> --Nasser
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html

--
	Christian


-We've really achieved the ideal of what I wanted Microsoft to become.-
Bill Gates, June 2008

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/latex2html/attachments/20101125/1a5229b0/attachment.html>


More information about the latex2html mailing list