Misc OpenSource Software from Randall O'Reilly

This page contains miscellaneous opensource software written by Randall C. O'Reilly, for the linux/unix platform. All of it is available under the GPL or whatever --- feel free to use however you want, but don't blame me if it doesn't work, etc.

Foreign Language translations:

List of Software:

Misc BibTeX processing code: auto generate paper downloads from .bib entries!

This software, written in css (a C++ script program that is part of the PDP++ Software), does misc processing of bibtex reference files.

bibtex_lib.css This is the basic library for representing a bibtex entry and doing some basic I/O: bibtex_lib.css

bibtex_to_www.css This program will take a list of bibtex entries in a given file and generate a web page (html) for downloading the papers listed in the bibtex file. It only has one style, but you can easily change the code to do what you want. The url bibtex entry specfies the link to the paper, and the keywords entry specifies which of a set of (hard coded in script) themes you want to organize the downloads in. The abstract entry is used to generate an additional page that contains abstracts. bibtex_to_www.css

ingenta_to_bibtex.css This will display references from the ingenta email table-of-contents service (ingenta web page) and allow you to select ones you want to save into one of your bibtex files. ingenta_to_bibtex.css


xdvik for powerpoint-style presentations under LaTeX

I use xdvi (actually xdvik) to do all of my powerpoint style presentations, using LaTeX to generate the slides. Allin Cottrell has a nice page describing how this can be done. Recent versions of these programs now support color specials, based in part on my patches described below.

At one point, xdvi did not support the color specials under LaTeX that are provided by the color package under 2e, which would make xdvi nearly ideal for creating presentations. So, I modified some earlier code by Fred Hucht to support color specials under xdvik. I also added some new specials to support changing the foreground and background colors for the ghostscript (gs) process that displays postscript figures under xdvi (are these included in the newer xdvi programs? I haven't tried them yet..).

Instructions for use: Use the color commands for color fonts just as documented under the color.sty package in the LaTeX2e graphics collection of packages. You must use the [dvips] option for graphicx: \usepackage[dvips]{graphicx} to get the appropriate color specials to show up. For the ghostscript specials, I wrote \gsforecolor{color} and \gsbackcolor{color} commands to set these specials, and they are included in the sshow.sty file listed below.

John Smith john.smith@arrows.demon.co.uk contributed modifications to make the color fonts anti-aliased! The flip side of this change is that only primary colors can be used for the foreground colors (any color can be used in the background pagecolor). By primary colors, I mean either a 1 or a 0 in each of the r, g, b components. Anything less than a 1 gets rounded down to a 0, and will thus show up as black.

JPEG figure display: I also hacked xdvik to display jpeg bitmap images. My motivation for doing this was that the ghostscript display of bitmap images on my system was horrendously bad (looked like printer output magnified so you can see all the dots and dithering and crap, instead of just displaying the damn rgb values.). However, I have just now downloaded ghostscript 6.50 and discovered that in fact it displays bitmap images quite nicely now! Oh well, the jpeg display is faster, for what its worth, and might be of interest to someone out there somewhere. There are two interfaces for displaying jpegs:

Here are the various files to make this work:
Return To Top

rormail: some improvements on rmail for emacs

I have written some code under emacs to make the rmail mail reader work more like I think it should. Primarily this means having the summary always displayed in a split-window buffer, so that you operate primarily on the summary, but can always view the selected mail in the other window. There are various other minor fixes, including a revision of the mime-compose.el code that seems to work better for composing mime emails, and a special hack for automatically converting table-of-contents information from Uncover-Reveal into a BibTeX entry.

Return To Top

rmtcmd, rmtcp, rmtget: scripts for running the same command on multiple systems

To manage a number of similarly configured systems, it is very useful to be able to run the same command in the same directory on these different systems. These shell scripts do this, in addition to copying files to and from a remote system using the amazing command, rsync (again, to/from the same directory as on the current host). Probably Beowulf and other such systems have this kind of functionality, but these scripts are quick-and-dirty and do the trick. They are all based on ssh. Note that they contain special translation code for the situation where you have different home directories on different machines -- this has my host names in it and should be changed for your installation or just removed if not applicable.

Usage: 1st arg is a single expression for either the command to run or the list of files to copy. Remaining args are the machines to operate on. Thus, it is useful for command-line usage to create aliases for systems, as in:

alias rmtcu 'rmtcmd "\!*" liquid neo eon whisper echo zod neuro bey santa'

which allows me to things like:

rmtcu ls -ltr /etc/*

and have this operate on all of my systems.

Here are the files:

Return To Top

APA-format under LaTeX

I've stolen (and minorly tweaked) a bunch of code from David Plaut, Mark Monheit, and others for doing APA (American Psychological Association) formatting under LaTeX / bibtex, including references and other formatting stuff (putting figures at the end for submission, etc). The reference \cite command varieties (\incite, \nopcite, \poscite, etc) provide automatic formatting of the large number of ways of referring to a cited work in the text, which go far beyond the basic \cite command available with the standard APA bibtex package that comes with LaTeX.

Return To Top

Tools for Converting APA-format LaTeX files to MSWord

Unfortunately, most journals like to receive electronic submissions in M$ Word format. There are a number of converters for going from LaTeX to RTF format, which can then be read into Word (see Converters from LaTeX to PC Textprocessors). However, none of these handle APA-style references and other formatting conventions (e.g., figure captions at the end) correctly (see previous section for code that does these things nicely in LaTeX). I wrote a program called ltxapa2rtf to pre-process the LaTeX file before handing it off to one of these LaTeX to RTF converters (I found latex2rtf to work the best) to get around these limitations. Unlike my previous attempt at this, it is now a fully automatic process!! (although the latex2rtf backend may still barf on your file -- I can't do anything about that). There is also a program that will automatically number your figure files in order (using symbolic links) to make it easy to copy them onto a floppy disk or whatever. These utilties were written using the css program that is part of the PDP++ Software package, and for non-Linux platforms, this is required (a statically linked binary is available for linux).

Here's the help message from the program:

ltxapa2rtf [debug] file.tex: converts a latex file using APA style references and figures formatted for submission (at end, with message where they should appear) into a suitable rtf file, using ltx2rtf as the converter of the latex file produced by this program.

Specifically, this program replaces all instances of \cite, \incite, etc. from the apa.bst,apa.sty latex formats with their corresponding citation text. The latex file must be all in one file (no \input, \include), and .bbl file from BibTex'ing the document (named file.bbl) must be present -- it is read in. It also replaces figures and tables with 'Insert Figure X about Here' and sticks the figure captions and tables at the end, consistent with the psypub.sty style which converters do not properly process.

The resulting file is named file_cvt.tex where file.tex is the original source. This .tex file is then passed to latex2rtf (which must be installed, obtain from above link) to produce file_cvt.rtf, which can then be imported into Word or whatever. Because latex2rtf sometimes has difficulty dealing with equations and various other constructs, you may need to edit the _cvt.tex file and manually call latex2rtf on it yourself. Pay particular attention to the last line of the conversion process: if it says 'Program aborted' then the resulting file_cvt.rtf file will not load correctly. You should get something like: 'Final iEnvCount=0' or 'conversion finished' if it goes all the way through.

Passing two args with anything as a first arg (with filename as second arg) will turn on lots of nasty debug messages.

Return To Top

Misc elisp code for emacs

Return To Top
anti-spam email addr img

Last updated: 04/29/03