Patch(es) to latex2rtf
latex2rtf is a program for converting latex code to rtf format. The current version is found at sourceforge.
I am in the process of making changes to the source code here and there to permit improved conversion of .tex documents written by linguists.
Here is a list of the changes made so far.
These are the source files that have been changed:
main.c, main.h, commands.c, preparse.c, equations.c, chars.c, chars.h, equations.h
Support for interlinear glossing has not been worked into the patch yet. A temporary solution is to convert ILG environments into tabular environments. A perl script for this purpose is here. If you use it like this:
cat test.tex | example-table.pl 32
Then a file like this gets changed into one like this. Examples need to be started with \gll. The L1 part should all fit on one line. The gloss line is ended by \\ and may span more than one line. The translation line is started by \glt and ended by \par on the same line. The number which is an argument to the perl script is the total width in characters that each line of the ILG should be.
Last update: 14 June 2011