<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What happens if you just put it to a subfolder "snippets" to keep the files together. And then write<div><br></div><div><blockquote type="cite"><div>\verbatiminput{snippets/file.txt}</div></blockquote></div><div><br></div><div><br></div><div><div><div>Am 24.11.2010 um 16:13 schrieb Nasser M. Abbasi:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello;<br><br>Using l2h 2008, I wanted to read source code into the latex document.<br>Since l2h does not support listings.sty, I read that one needs<br>to use \verbatiminput{file.txt} instead.<br><br>The above does work with l2h, but only when file.txt is in the same folder<br>as the latex document:<br><br>\documentclass{article}%<br>\usepackage{verbatim}<br>\usepackage{html}<br>\begin{document}<br>\verbatiminput{file.txt}<br>\end{document}<br><br>latex2html t.txt<br><br>OK. No error<br><br>But if I change to a path, then an error occurs:<br><br>\documentclass{article}%<br>\usepackage{verbatim}<br>\usepackage{html}<br>\begin{document}<br>\verbatiminput{G:/home/file.txt}<br>\end{document}<br><br>latex2html t.txt<br><br>*********** WARNINGS ***********<br>No file <G:/home/file.txt.tex> for verbatim input.<br><br>notice, it added the .tex extension to the file now.<br><br><blockquote type="cite">latex2html --version<br></blockquote>$* is no longer supported at G:\LATEX\latex2html\bin/latex2html.bat line 10607.<br>This is LaTeX2HTML Version 2008 (1.71)<br><br><blockquote type="cite">latex --version<br></blockquote>MiKTeX-pdfTeX 2.8.3563 (1.40.10) (MiKTeX 2.8)<br><br>For now, I put all my source code files in the same folder<br>as my latex file to allow this to work.<br><br>Is there an easy fix for this to allow one to use an absolute,<br>or even a relative path for the file name?<br><br>related posting:<br><a href="http://www.tug.org/pipermail/texhax/2005-March/003659.html">http://www.tug.org/pipermail/texhax/2005-March/003659.html</a><br><br>thanks<br>--Nasser<br>_______________________________________________<br>latex2html mailing list<br>latex2html@tug.org<br>http://tug.org/mailman/listinfo/latex2html<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">--<br><span class="Apple-tab-span" style="white-space: pre; ">  </span>Christian<br><br><br>-We've really achieved the ideal of what I wanted Microsoft to become.-<br>Bill Gates, June 2008</span>
</div>
<br></div></body></html>