Re: LaTeX2rtf question double spacing question

Tyler Smith <[email protected]> Thu, 13 Sep 2007 21:40:41 -0300
Newsgroups gmane.comp.tex.latex.latex2rtf.devel
Message-ID <[email protected]>
On Thu, Sep 13, 2007 at 05:25:53PM -0700, Scott Prahl wrote:
>
> -    fprintRTF("\\pard\\q%c", alignment);
> +    fprintRTF("\\pard\\q%c\\sl%i\\slmult1 ", alignment, g_line_spacing);
>
> This is nice because it works.  Long term, I think that we should be
> using style sheets for this sort of thing.  We should emit the proper
> style sheet codes for a "normal" paragraph, but the style definition
> for a normal paragraph should include double spacing.

I'll have to read up on style sheets, as that sounds like a safer
approach. I did try a simple sed script applied to a few rtf files I
had handy, and adding the line spacing commands following every \pard
worked in all cases I tried. However, since \pard is used for just
about everything in rtf I won't be surprised if something is broken by
this. In the worst case, it's still a relatively minor problem to
remove the few changed lines if there are nasty consequences.

> One last thing.  When you add new functionality, you should add a new
> test file to the latex files in the test directory.  In this case, the
> file might contain a simple equation, table, to verify that these do
> not fail.

Will do.

>
> You're right this is a bit scary because CmdStartParagraph() is used
> in many, many places.  I looked at a few of the test files and they
> look fine.

As I understand it, the options when \doublespacing is not called are
just an explicit statement of the implied default options, so
hopefully there won't be any conflicts in single spaced documents.

I'll read up on the style sheets and see if I can't do something
better, in any case.

Thanks,

Tyler

-- 
Who is your computer working for?

http://www.defectivebydesign.org/faq

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/