Re: LaTeX2rtf question doublespacing question
Wilfried Hennings <[email protected]> Fri, 14 Sep 2007 09:30:01 +0200
| Newsgroups | gmane.comp.tex.latex.latex2rtf.devel |
|---|---|
| Message-ID | <[email protected]> |
At 14.09.2007 02:40, Tyler Smith wrote:
>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.
In principle, yes. And I tried it by manually changing the rtf file
because it would be easy to implement in latex2rtf.
But, as I already wrote:
One would expect that changing the definition of the style "Normal"
would do the trick. The styles are defined in the header of the rtf
file. The definition of "Normal" is
{\s0\fs20\snext0 Normal;}
Changing this to
{\s0\fs20\snext0\sl480\slmult1 Normal;}
changes the definition of the Normal style to doublespacing, but this
change is not automatically taken over to the individual paragraphs.
It requires
- either to open the rtf file in Word, select all (or each para
individually) and press Ctrl+q to "reset paragraph formatting to
underlying paragraph style"
- or to insert the spacing parameters in the rtf file into each
individual paragraph, as already implemented.
If changing the style for "Normal" breaks anything else, one could
use a different style for ordinary text paragraphs. In my Word
documents I use "Body Text" for this purpose, which is one of the
builtin styles which are localized by Word.
Just having looked again into the styles section of a rtf file
generated by latex2rtf, I saw that the heading styles are defined
more than once, with different settings. Moreover, \s2 is defined as
"heading 1", then \s1 is defined as "heading 1", then \s1 is defined as "part".
I haven't yet invetigated by which part of latex2rtf these lines are
output, and why more than once.
Wilfried
--
Wilfried Hennings c./o.
Forschungszentrum (Research Center) Juelich GmbH
INB-MUT
52425 Juelich, Germany
Tel. (+49) 2461 61 5570 ; Fax (+49) 2461 61 8254
email: [email protected]
PGP key available from key servers, e.g. from
http://pgpkeys.pca.dfn.de/
work homepage: http://www.fz-juelich.de/mut/mut_home
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Baerbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv.
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-------------------------------------------------------------------------
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/