Discussion:
[Latex2rtf-users] \usepackage
Brett Alexander Patterson
2015-10-01 15:50:29 UTC
Permalink
Hello.

My .tex document used several packages:

\usepackage[british]{babel}
\usepackage{lastpage}
\usepackage{pdflscape}
\usepackage[usenames,dvipsnames]{color}
\usepackage{colortbl}
\usepackage{pdfpages}
\usepackage{wallpaper}
\usepackage{changepage}

but when I run latex2rtf (2.3.8 r1240 on OS X 10.10.5 Yosemite / Darwin Kernel 14.5.0), I get the errors:

Package/option 'british' unknown.
Incomplete support for package/option 'fancyhdr'
Package/option 'array' unknown.
Package/option 'longtable' unknown.
Package/option 'fancybox' unknown.
Package/option 'calc' unknown.
Package/option 'multirow' unknown.
Package/option 'amstext' unknown.
Incomplete support for setspace package
Package/option 'lastpage' unknown.
Package/option 'pdflscape' unknown.
Package/option 'colortbl' unknown.
Package/option 'pdfpages' unknown.
Package/option 'wallpaper' unknown.
Package/option 'changepage' unknown.

Am I doing something wrong, or is latex2rtf just not able to handle any of these packages?
And how can I know which packages are supported?

Regards,
Brett Patterson


------------------------------------------------------------------------------
Wilfried Hennings
2015-10-02 12:57:17 UTC
Permalink
------------------------------------------------------------------------------
Brett Alexander Patterson
2015-10-02 13:59:09 UTC
Permalink
From the file preamble.c for latex2rtf 2.3.8, I find the following packages mentioned:

inputenc
graphics
graphicx
isolatin1
babel - but only with spanish, german, ngerman, czech, frenchb, and french
palatino
endfloat
cite
subfigure
natbib
geometry
acronym
ifpdf

which means that none of the packages I’ve used are supported by latex2rtf,
not even the “british” language option for babel!

Is there any prospect of any of the packages I’ve used being supported?

Regards,
Brett


On 2 Oct 2015, at 13:57, Wilfried Hennings <***@gmx.de<mailto:***@gmx.de>> wrote:


At 01.10.2015 17:50 Brett Alexander Patterson wrote:


Hello.

My .tex document used several packages:

\usepackage[british]{babel}
\usepackage{lastpage}
\usepackage{pdflscape}
\usepackage[usenames,dvipsnames]{color}
\usepackage{colortbl}
\usepackage{pdfpages}
\usepackage{wallpaper}
\usepackage{changepage}

but when I run latex2rtf (2.3.8 r1240 on OS X 10.10.5 Yosemite / Darwin Kernel 14.5.0), I get the errors:

Package/option 'british' unknown.
Incomplete support for package/option 'fancyhdr'
Package/option 'array' unknown.
Package/option 'longtable' unknown.
Package/option 'fancybox' unknown.
Package/option 'calc' unknown.
Package/option 'multirow' unknown.
Package/option 'amstext' unknown.
Incomplete support for setspace package
Package/option 'lastpage' unknown.
Package/option 'pdflscape' unknown.
Package/option 'colortbl' unknown.
Package/option 'pdfpages' unknown.
Package/option 'wallpaper' unknown.
Package/option 'changepage' unknown.

Am I doing something wrong, or is latex2rtf just not able to handle any of these packages?


latex2rtf can handle only a limited subset of packages.

And how can I know which packages are supported?


My personal knowledge (which may be incorrect in some detail) is:

Regarding support by latex2rtf we have to distinguish between

* support of a "\usepackage {xyz}" package name in the preamble, and
* support of the commands contained in a package.

There may be

* cases where the "\usepackage {xyz}" package name is not supported for package xyz but nevertheless some of the commands contained in this package are supported,
* cases where the "\usepackage {abc}" package name IS supported for package abc but not all of the commands in this package are supported,
* cases where the "\usepackage {ijk}" package name and the commands in this package are fully supported, and
* cases where neither the "\usepackage {opq}" package name nor the commands in this package are supported.

Some of the commands contained in a package may even be supported by latex2rtf without having the "\usepackage {xyz}" command in the preamble.

To be more specific, some of the "\usepackage {xyz}" commands are just read and ignored, while some others cause setting of a special document appearance, or switching on or off a special treatment of the LaTeX code.

The supported commands are listed at the end of the user manual
(e.g. http://latex2rtf.sourceforge.net/usage.html)
but the supported package names are not documented in the user manual.
You can extract the supported package names from the source code,
file "preamble.c", routine "CmdUseOnepackage" (lines 608 to 710).

Hope this helps
Wilfried
------------------------------------------------------------------------------
_______________________________________________
Latex2rtf-users mailing list
Latex2rtf-***@lists.sourceforge.net<mailto:Latex2rtf-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/latex2rtf-users

Loading...