[OS X TeX] rtf2latex2e

Troy D Goodson Troy.D.Goodson at jpl.nasa.gov
Mon Jul 1 16:13:23 EDT 2002



At 11:42 PM +1000 6/30/02, Ross Moore wrote:
> > On Sunday, June 30, 2002, at 02:03 , Gilbert Harman wrote:
>>
>> > The Classic version works great, but has anyone been able to get
>> > rtf2latex2e
>> > to compile in Mac OSX?  (If so, what sort of argument did you give to
>> > ./configure or how did you fix the Makefile?)
>>
>> Where is rtf2latex2e? As I have a i-Package for latex2rtf I might as
>> well try to have one th eother way around.
>
>Search for it at a CTAN archive.
>
>It is much more recent (2000)  than  rtf2latex  (which dates to 1991-95)
>and was developed on a Mac (Classic).
> 
>Ross
>

Here's what I did to build & install rtf2latex2e
<http://sourceforge.net/projects/rtf2latex2e/>
(I did have a problem with "make install" because it wanted to
make a symbolic link at "/usr/bin/rtf2latex2e" so I did
the install by hand.  Note also that I removed the .bin extension
>from the executable, a personal preference)

curl -O http://telia.dl.sourceforge.net/sourceforge/rtf2latex2e/rtf2latex2eUnix1.tar.gz
tar xzf rtf2latex2eUnix1.tar.gz
cd rtf2latex2eUnix-1.0fc1
cd Unix/
./configure
make
cp ../rtf2latex2e.bin ~/bin/rtf2latex2e
mkdir ~/bin/rtf2latex2e_files
cp -r ../pref ~/bin/rtf2latex2e_files/.


--and then I edited my ~/.cshrc to include:
setenv RTF2LATEX2E_DIR   ~/bin/rtf2latex2e_files


This seems to work for me.  I tried it out on a few of the example
files and it seemed to run fine.  The program has a few bugs,
but I'm reporting the ones I find to
<http://sourceforge.net/tracker/?group_id=22324&atid=374868>



Outputs of configure & make:

% ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... ./config.guess: parse error near `\n' [1016]
config.sub: missing argument
Try `config.sub --help' for more information.

checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E -traditional-cpp
checking for ANSI C header files... yes
checking for malloc.h... no
checking for working const... yes
checking for size_t... yes
checking size of unsigned char... 1
checking size of unsigned short... 2
checking size of unsigned int... 4
checking size of unsigned long... 4
checking size of unsigned long long... 8
checking size of float... 4
checking size of double... 8
checking size of long double... 8
checking whether byte ordering is bigendian... yes
checking for vprintf... yes
checking for strstr... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating ../src/include/cole.h
creating ../src/common/cole/version.c
creating ../src/include/config.h
../src/include/config.h is unchanged
Configured rtf2latex2e release 1.0.0-fc1
%
% make
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o rtf2LaTeX2e-driver.o ../src/common/rtf2LaTeX2e-driver.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o reader.o ../src/common/reader.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o tokenscan.o ../src/common/tokenscan.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o LaTeX2e-writer.o ../src/common/LaTeX2e-writer.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o eqn.o ../src/common/eqn.c
../src/common/eqn.c:90: warning: variable `Profile_FUNCTIONS' is implicitly extern
../src/common/eqn.c:91: warning: variable `Profile_VARIABLES' is implicitly extern
../src/common/eqn.c:92: warning: variable `Profile_PILEtranslation' is implicitly extern
../src/common/eqn.c:93: warning: variable `Profile_CHARSETatts' is implicitly extern
../src/common/eqn.c:94: warning: variable `Profile_CHARSETatts3' is implicitly extern
../src/common/eqn.c:95: warning: variable `Profile_CHARTABLE3' is implicitly extern
../src/common/eqn.c:96: warning: variable `Profile_CHARTABLE' is implicitly extern
../src/common/eqn.c:97: warning: variable `Profile_TEMPLATES' is implicitly extern
../src/common/eqn.c:99: warning: variable `Template_EMBELLS' is implicitly extern
../src/common/eqn.c: In function `Eqn_GetObjectList':
../src/common/eqn.c:304: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_inputEMBELL':
../src/common/eqn.c:490: warning: assignment from incompatible pointer type
../src/common/eqn.c:500: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_inputRULER':
../src/common/eqn.c:534: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `DeleteObjectList':
../src/common/eqn.c:639: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `DeleteTabstops':
../src/common/eqn.c:750: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `DeleteEmbells':
../src/common/eqn.c:762: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_TranslateObjects':
../src/common/eqn.c:783: warning: assignment from incompatible pointer type
../src/common/eqn.c:803: warning: assignment from incompatible pointer type
../src/common/eqn.c:809: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_TranslateFUNCTION':
../src/common/eqn.c:986: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_TranslateTEXTRUN':
../src/common/eqn.c:1059: warning: assignment from incompatible pointer type
../src/common/eqn.c:1064: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_TranslateMATRIX':
../src/common/eqn.c:1215: warning: assignment from incompatible pointer type
../src/common/eqn.c:1225: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_TranslateEQNARRAY':
../src/common/eqn.c:1331: warning: assignment from incompatible pointer type
../src/common/eqn.c:1349: warning: assignment from incompatible pointer type
../src/common/eqn.c:1356: warning: assignment from incompatible pointer type
../src/common/eqn.c:1362: warning: assignment from incompatible pointer type
../src/common/eqn.c:1376: warning: assignment from incompatible pointer type
../src/common/eqn.c:1395: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_TranslateTABULAR':
../src/common/eqn.c:1489: warning: assignment from incompatible pointer type
../src/common/eqn.c:1498: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_TranslatePILEtoTARGET':
../src/common/eqn.c:1634: warning: assignment from incompatible pointer type
../src/common/eqn.c:1643: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_TranslateTMPL':
../src/common/eqn.c:1974: warning: assignment from incompatible pointer type
../src/common/eqn.c:1979: warning: assignment from incompatible pointer type
../src/common/eqn.c:2007: warning: assignment from incompatible pointer type
../src/common/eqn.c: In function `Eqn_GetTexChar':
../src/common/eqn.c:2165: warning: assignment from incompatible pointer type
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o cole.o ../src/common/cole/cole.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o olecod.o ../src/common/cole/olecod.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o oledecod.o ../src/common/cole/oledecod.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o support.o ../src/common/cole/support.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o version.o ../src/common/cole/version.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o internal.o ../src/common/cole/internal.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o figure2eps.o ../src/common/figure2eps.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include   -c -o jpeg2eps.o ../src/common/jpeg2eps.c
gcc -g -O2 -DINSTALL_DIR=\"~tdg/bin/rtf2latex2e\" -I../src/include -o ../rtf2latex2e.bin rtf2LaTeX2e-driver.o reader.o tokenscan.o LaTeX2e-writer.o eqn.o cole.o olecod.o oledecod.o support.o version.o internal.o figure2eps.o jpeg2eps.o

-----------------------------------------------------------------
Threaded list archives can be found at:
<http://www.masda.vxu.se/~pku/MacOSX_TeX/>
-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
-----------------------------------------------------------------




More information about the MacOSX-TeX mailing list