public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Ian Fantom <ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
	BPJ <bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Converting headings (.odt -> .tex)
Date: Mon, 15 May 2023 20:26:22 +0100	[thread overview]
Message-ID: <3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4@fantom.org.uk> (raw)
In-Reply-To: <CADAJKhBLFXzYf_mNc+uZ2Ur+1kYn3zpgBR7B7tFqjOWaAGCiRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2597 bytes --]

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-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBLFXzYf_mNc%2BuZ2Ur%2B1kYn3zpgBR7B7tFqjOWaAGCiRQ%40mail.gmail.com.

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.

[-- Attachment #2: Type: text/html, Size: 3282 bytes --]

  parent reply	other threads:[~2023-05-15 19:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-15 16:34 Ian Fantom
     [not found] ` <1201761b-53e9-f3bc-a6b5-4eedaf3b5146-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org>
2023-05-15 17:15   ` BPJ
     [not found]     ` <CADAJKhBLFXzYf_mNc+uZ2Ur+1kYn3zpgBR7B7tFqjOWaAGCiRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-05-15 19:26       ` Ian Fantom [this message]
     [not found]         ` <3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org>
2023-05-16 10:32           ` Ian Fantom
     [not found]             ` <7316b85d-27a0-abf5-1e0b-09e0c40186fd-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org>
2023-05-16 10:59               ` Bastien DUMONT
2023-05-16 15:09                 ` Ian Fantom
     [not found]                   ` <df607dbb-adfd-e034-7f88-0510ecdfdc3a-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org>
2023-05-16 15:18                     ` Bastien DUMONT
2023-05-16 15:24                     ` BPJ
2023-05-15 17:18   ` Bastien DUMONT
2023-05-15 19:20     ` Ian Fantom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4@fantom.org.uk \
    --to=ian-0jttza1e5ste9xe1eozjha@public.gmane.org \
    --cc=bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).