On 15 May 2023 18:18:54 BST, Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> wrote:
Your styles may not have the names expected by Pandoc. To know what it supports, you can use the command
pandoc -o reference.odt --print-default-data-file reference.odt
and inspect the styles included in the document.
Le Monday 15 May 2023 à 05:34:44PM, Ian Fantom a écrit :
I've tried converting a book in .odt (LibreOffice Writer / Ubuntu) to .tex
and viewing it in Texstudio.
It's not converting any of the headings and subheadings - just producing
normal text. I used the '-s' and the '-o' options.
I think there must be something I haven't understood in the Pandoc User
Guide (https://pandoc.org/MANUAL.html)
I was expecting some way of defining a conversion table from Writer to
Latex. For instance:
'Preface' is in style 'subtitle' in Writer, and is converted to:
'\protect\hypertarget{anchor-4}{}{}Preface' and appears as normal text in
.tex.
Any ideas how I should proceed?
Thanks, Ian Fantom