Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301599 - dev-tex/latex2rtf is inoperate and/or incompatible with current texlive
Summary: dev-tex/latex2rtf is inoperate and/or incompatible with current texlive
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-20 07:20 UTC by Sergey S. Starikoff
Modified: 2010-01-20 18:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey S. Starikoff 2010-01-20 07:20:14 UTC
dev-tex/latex2rtf ignores many (most) of LaTeX commands.
And even the document, which contains no such commands doesn't compiles into valid rtf file.

I think, it's the time to remove this application from the tree.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
$ latex2rtf test
test.tex:1   Package/option 'oneside' unknown.
test.tex:7   Unknown command '\tolerance'\pard\qj\sl240\slmult1 \fi360 =1024 
test.tex:8   Package/option 'microtype' unknown. 
test.tex:16  Unknown command '\righthyphenmin'=2    
test.tex:41  Unknown command '\null'
test.tex:43  Unknown command '\leavevmode'
test.tex:44  Unknown command '\raggedleft'
test.tex:44  Unknown command '\hrulefill'
test.tex:48  Unknown command '\null'
test.tex:119 Unknown command '\hskip'
test.tex:123 Unknown command '\hskip'
test.tex:213 Unknown command '\hskip'
test.tex:213 Unknown command '\hskip'
test.tex:308 Unknown command '\hskip'
test.tex:362 Unknown command '\hskip'
test.tex:569 Unknown command '\hskip'
test.tex:569 Unknown command '\hskip'
test.tex:840 Unknown command '\No'

And invalid rtf file.

Expected Results:  
Valid rtf file, like it's done for the same source .tex by pdflatex.

$ emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.30-gentoo-r88 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r88-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 18 Jan 2010 01:45:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d/50glib2 /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.corbina.net/pub/Linux/gentoo/                   ftp://mirror.aiya.ru/pub/gentoo/                 ftp://ftp.org.kemsu.ru/gentoo/                 http://ftp.chg.ru/pub/Linux/distributions/gentoo/                 ftp://ftp.chg.ru/pub/Linux/distributions/gentoo/"
LANG="ru_RU.KOI8-R"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-ftn"
SYNC="rsync://rsync.org.kemsu.ru/gentoo       rsync://rsync.asia.gentoo.org/gentoo-portage       rsync://mirror.aiya.ru/gentoo"
USE="X a52 ac3 acl alsa avi berkdb bzip2 cdr cli cracklib crypt cups cxx dbus dri dvd flac fortran gdbm gif gtk iconv jpeg jpeg2k modules mp3 mudflap ncurses nls nptl nptlonly ogg openmp pam pcre perl png pppd python qt3support readline reflection session spl ssl sysfs tcpd vorbis x86 xcb xorg xulrunner zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="sis"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexis Ballier gentoo-dev 2010-01-20 18:40:17 UTC
May I quote the website:

LaTeX2rtf is a translator program which is intended to translate a LaTeX document (precisely: the text and a limited subset of LaTeX tags) into the RTF format which can be imported by several textprocessors (including Microsoft Word for Windows and Word for Macintosh). 


which means don't expect magic: there are tons of latex packages that are not supported. Very simple .tex files produce valid .rtf files here (at least ooffice can read 'em). Have a look at tex4ht that, eg, converts .tex to html; it doesn't support everything or may not have perfect support but it is still useful.