Index of /archives/text/CTAN/support/rtf2tex

Icon  Name                         Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] rtf2TeX.pdf 2009-07-09 23:48 7.4K [TXT] rtf2TeX.man 1991-11-27 09:00 3.6K [TXT] rtf2TeX.c 1992-05-26 08:00 64K [TXT] rtf.h 1991-11-27 09:00 12K [TXT] reader.c 1991-11-27 09:00 35K [TXT] fonts.h 1991-11-27 09:00 5.4K [   ] TeX_defs.tex 1991-11-27 09:00 1.1K [TXT] README 1991-11-27 09:00 1.3K [TXT] Makefile 1991-11-27 09:00 416 [TXT] INSTALL 1991-11-27 09:00 427 [TXT] AA_version.h 1992-05-26 08:00 119 [TXT] .gdb_history 1991-11-07 09:00 0
This is a first attempt at an RTF to TeX converter. The parts that
handle fonts and such like seem to work pretty well, although they
could be improved, but the table handling is a problem. I had a good
deal of trouble trying to figure out what particular rtf control codes
were supposed to do; this makes it hard to convert them into TeX.

I have tried to produce good TeX, but this is not easy due to the
sloppy way that many RTF writers generate redundant font and other
changes.

Many things are not handled at all, more due to my lacking motivation
than to their intrinsic difficulty. For example, I don't support
double columns, but it would be easy enough to do (I'd generate a
control sequence to do it, and add the TeX code required to the
TeX_defs file. I even have the TeX somewhere...).

You will probably usually want to use the -i flag to include some
needed TeX definitions:
	rtf2TeX -i TeX_defs.tex file.rtf > file.tex
I am interested in opinions on whether this is a good way to do things,
as well as enhancements to the TeX macros.

I would be interested in seeing bug reports, and (especially) patches
and enhancements. I don't envisage being able to spend much more time
on this project, but I will be able to maintain a version as it improves
under the efforts of the internet.

			Robert Lupton

				rhl@astro.princeton.edu