LEDA document and graphics conversions

What to expect

LEDA uses a battery of programs to convert your RTF file into HTML and PDF versions. Most of the time these will produce converted files that are reasonably faithful to the original document. However, all conversion programs have limitations, and it's possible that conversions will be less than perfect -- not surprising, when you consider just how many things you can do with a word processor.

Here are some things you can do that will help your RTF documents look as good as possible once converted:

 

It's worth remembering that readers have access to the original RTF version if an absolutely accurate version is needed, and that submitters have the option of replacing our converted files with their own should they require something different or better than what LEDA provides.

We are especially eager to hear about conversion problems -- so let us know of any that you encounter.

Conversion into HTML -- the technical process.

LEDA uses the popular rtf2html program for conversion to HTML. Its behavior is controlled by configuration files found in the /usr/local/leda/etc directory, and in /usr/local/leda/bin/rtf2html . You also have control over the translation of special characters and the like, and of image scaling. We have found that rtf2html is sufficiently feature-rich that we don't need to supplement it with pre- or post-filtering scripts, though we may encounter a need to do so in the future.

Full documentation for rtf2html is in HTML format on your LEDA server at /leda/manual/r2hdocs/guide.htm. The documentation on the Logictran site is for a newer, commercial successor to rtf2html but most of the same features are present. You may alter the configuration files to suit your needs -- and specify alternate configurations for different series you set up in LEDA. This is particularly helpful if you want different logos or stylesheets for different journals, etc.

To set up a different HTML "look" for a series:

Conversion into PDF -- the technical process

Unfortunately, Adobe does not sell a version of Acrobat Distiller that will run under Linux (at least not at a reasonable price; there is an enterprise-scale document conversion server product that creates PDF that goes for around $5K at the time of this writing). As a result, we use a multistep process that first transforms the RTF document into LaTeX, and from there to PDF:

If you're a serious conversion hacker, you can work magic by customizing the various scripts involved. Depending on what you want to do, you may find it easier to alter one or the other of our filtering scripts. We've found it easier to use the RTF pre-filter to remove information and the laTeX filter to add or alter information.

Where to find more

/usr/local/leda/bin/ledacvt.sh is the shell script that controls the conversion of LEDA documents; it in turn calls other programs found (for the most part) in the /usr/local/leda/bin directory tree. Looking at the source is probably the best way to understand exactly what's being done.

What to do if our conversions don't satisfy you

At the time your document was approved for release, you should have received a confirming e-mail containing a password, document number, and URL that can be used to substitute your own PDF or HTML files for the ones created automatically by LEDA. This is a direct file-for-file replacement -- you can't restructure your document completely, but you can substitute (eg.) an HTML file you create for one we create.

Known conversion bugs (last modified 3 January 2002):