At 07.11.2016 17:37, Jay A. Leavitt, PhD, wrote: > rtf2latex2e is installed in folder in Program Files (x86). When cmd > run in that directory getting this error. > Cannot find the rtf2latex2e support file 'rtf-encoding.cp1250' > > The default install location for these files is > /usr/local/share/rtf2latex2e/ > When this program was compiled the location was > C:/PROGRA~1/rtf2latex2e/pref > > After locating the proper directory you can > (1) define the environment variable $RTFPATH, *or* > (2) use command line path option '-P /path/to/prefs' *or* > (3) recompile rtf2latex2e (after modifying datadir in Makefile) > Giving up. Please don't hate me.
The compiled-in path is "C:/PROGRA~1/rtf2latex2e/pref" which would be OK for Windows 32 bit, but you seem to have Windows 64 bit. So you need to specify the path where the support files are, either by defining the environment variable with the command: SET RTFPATH="C:/Program Files (x86)/rtf2latex2e/pref" or by specifying it in the call: rtf2latex2e -P "C:/Program Files (x86)/rtf2latex2e/pref" conv.rtf But you should not normally run programs in admin mode. Put the file to be converted in a user data folder, then call the program like this: "C:/Program Files (x86)/rtf2latex2e/rtf2latex2e" -P "C:/Program Files (x86)/rtf2latex2e/pref" conv.rtf One problem is that the path contains blanks. When the path contains no blanks, the quotes can be omitted. Maybe the following would be better: C:/PROGRA~2/rtf2latex2e/rtf2latex2e -P C:/PROGRA~2/rtf2latex2e/pref conv.rtf Hope this helps Wilfried ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Latex2rtf-users mailing list Latex2rtf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/latex2rtf-users