I’m a new Scrivener user, and tables that export properly to Word are essential for me. Here’s what I’ve figured out as a work-around for the problems with RTF support in OS/X. My particular application is APA6 format manuscripts, which have a fairly specific table style.
First, make the table in HTML and convert it to RTF using textutil. I like to use BBEdit, because its HTML preview mode is very handy as you lay out the table. You won’t be able to use the
horizontal line tag, because it is not supported by textutil or textedit. Instead, you should draw lines using sequences of non-breakable space ( ) embedded within strike-out
…) tags. Don’t fuss with the lengths of these lines because after you import the table into Scriv, you can adjust the length using copy and paste. Also, if you need to adjust centered numbers at the decimal point, the best way to do that is to use the tag for those cells to establish monospacing, and to insert nonbreakable spaces to make the adjustments. Actually, I like to make my tables using shell scripts that read from the raw data files, so all this gets done automagically. Use font tags around the text in the file to set the main table font, and also put the font and fontsize on the command line. Once the table looks right in the preview, try converting it to RTF via
textutil -font "TimesNewRoman" -fontsize 12 -convert rtf FILE.html
(or whatever is appropriate in your context), and then drag the rtf file into the Binder. In APA6 format, the title and the caption are double-spaced, so you may need to tweak that in Scrivener; plus, as I said you may need to fiddle with the length of any horizontal lines you inserted.
Next, when you compile the document, there is a critical step you must do before trying to open it in Word. Here is a Terminal command that should work:
sed -e 's/\\trwWidth[0-9][0-9]*\\trftsWidth3//g' -e 's/\\clwWidth[0-9][0-9]*\\clftsWidth3//g' < FILE.rtf > FILE-fixed.rtf
What this does is to remove some RTF commands that are inserted incorrectly into the file by textutil. They cause Word to format the table about twice as wide as it should be, so half of it is off the page. Apple programs ignore those RTF commands, so the same table looks good in Scrivener or TextEdit, but too wide in Word. (I’ve filed a bug report with Apple about this.) You could run this command on the product of textutil before importing it into Scrivener, that would also work. I have this command as part of a post-export Automator script I use. (I plan to post it here along with my APA6 Template for comments when I get it finished.)
Anyway, once the table is in Word, you may need to fiddle with the overall spacing a little, but that’s about it. The fonts and alignment should be OK.
Greg Shenaut