is a perl script
for converting an ordinary text file into a (plain)TeX file.
This is version 2.2g, released on March 1st, 1998.
It works with Perl4 and also with Perl5.
Click (or right click) here to get
here to get t2d22g.lzh (16KB),
or here to get t2d22g.zip (17KB).
Edit the top part of the script to suit your environment.
Comment out the two lines containing a Japanese character,
if necessary, before trying it. And if you do use Japanese,
convert the code of the file, if necessary. The original code
is EUC. The script and a batch file I use on the DOS-Prompt
of Win95 is archived in t2d.lzh.
o I am currently using txt2dvi.dos (ver.2.2l). (2005.02.20)
o The txt2dvi.dos (ver.2.2l) above does not work properly with
ActivePerl, so I made some modification: txt2dvi.sjs (ver.2.2la). This should work with ActivePerl 5.8.8.
Use this with txt2dvi.bat
(I am assuming that you put txt2dvi.sjs in C:\bin).
The html2dvi script below should be modified in a similar way,
but I have not yet done so.
- "html2dvi" (32KB)
: a very simple and naive perl script which
converts an HTML file to a TeX file. It is still in beta stage.
The latest version is 0.7d (May 29, 2000).
The previous version is also available:
html2dvi.0.7c(Nov 09, 1999).
Get the above or
Click here for a more detailed description.
There are many things it can't handle, e.g., complicated tables, images,
Edit some of the first lines to adjust to your environment.
I use this for viewing stories and essays written in HTML format.
[sample source html file]
[screenshot of the output]
[output tex file]
[output dvi file (pdf)]
I know there are lots of similar and advanced tools available.
Here are some of them:
- "txt2html" (7KB):
A perl script which converts a text file to an HTML file.
The first line will be used as the title of the file.
A line starting with "."(a period) is regarded to be
a section heading, and the list of these will appear
as the contents at the top of the HTML file.
This tool does not convert URL's in the document into a hyperlink.
Its main purpose is to convert a text (stories, etc.) to an HTML
file so that we can read it peersonally on a web browser.
It is not a fancy tool for preparing an HTML file to be placed on
a web server. For such purposes, you may try :