On 15 May 2012 20:18, Wilfried <wh...@gmx.de> wrote:
> Or it's not the latest version? Current version is 2.0.1, see
> http://sourceforge.net/projects/rtf2latex2e/

It is, actually.

> How shall rtf2latex2e know that YOU want it THIS way?
> The heading conversion above is default setting, but it can be changed.
> In the subfolder ./pref there is a file r2l-map in which it is specified
> how headings are to be converted.

It _shouldn't_, but I'd expect an option to switch. Well, yet another TODO :)

I've just found gnuhtml2latex (because of the strange name my eyes
failed on searches), and it does provide an option to switch between
numbered and numbered sections.

> What are the rtf2latex2e calling parameters?
> Maybe you should call rtf2latex2e with the option -p1, not higher, see
> documentation.

Yes, I have tried -p1.

> That is a big difference. rtf2latex2e is aimed at Word's rtf output.
> Rtf from OOo and LibreOffice is broken.

Thanks, didn't know rtf was that complicated. A quick look inside an
rtf file gave me the impression that it'd be pretty standard across
all implementations as far as layout is concerned (formatting is
another story).

I've come to the conclusion that (x)html is a much better format to
deal with for this (though the website of rtf2latexe mentions
otherwise). Even though gnuhtml2latex seems to do an OK job, the
output is riddled with silly characters everywhere.

This >> http://www.textfixer.com/html/convert-word-to-html.php << does
an excellent job. Would anyone know of a good commandline alternative
(for Linux)? A good solution would be a doc2html and a docx2html,
along with a html cleaner. I don't see any libraries for this aside
from lxml's html clean method for python (the quality of which I don't
know).


--
GPG/PGP ID: C0711BF1

Reply via email to