Well the .odt file uses styles from Writer: Title, Subtitle, Header3.

Would looking up the code used in the .fodt help?

Ian


On 15 May 2023 18:15:06 BST, BPJ <bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> wrote:
Probably whoever wrote the ODT file faked the headings by enlarging the font and applying bold font rather than applying the "Heading 1" etc named paragraph styles. Only the latter will be recognised as headings by Pandoc. There are a lot of such files in the wild.

Den mån 15 maj 2023 18:35Ian Fantom <ian@fantom.org.uk> skrev:
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


--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1201761b-53e9-f3bc-a6b5-4eedaf3b5146%40fantom.org.uk.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4%40fantom.org.uk.