in reply to generating a microsoft word doc

"...task is to create a (long) structured document...a Microsoft Word document..."

This is pain in the ass.

An alternative might be to use LaTeX and then something like Workflow for converting LaTeX into Open Office / MS Word Format. Which might be pain in the ass as well.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help