From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32635 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Converting headings (.odt -> .tex) Date: Tue, 16 May 2023 17:24:51 +0200 Message-ID: References: <1201761b-53e9-f3bc-a6b5-4eedaf3b5146@fantom.org.uk> <3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4@fantom.org.uk> <7316b85d-27a0-abf5-1e0b-09e0c40186fd@fantom.org.uk> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d996cf05fbd12c21" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25673"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBUGAR2RQMGQEPBGUE4A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 16 17:25:08 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f56.google.com ([209.85.160.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pywXz-0006T1-IQ for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 16 May 2023 17:25:07 +0200 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-19297b852cfsf5692625fac.0 for ; Tue, 16 May 2023 08:25:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684250706; cv=pass; d=google.com; s=arc-20160816; b=n9ZpoLLPL2xe26qpAgYqGsBxaKaG5ROBTS5z3Hp6IE/O9kfHqL33D6WJWFSFAVxwuX wRxwAt1nah90tlDszKVNW23zTBXXTGDBe9IfN4sYBZpxSuAl+UxymsXcwYcbHkWtkPIs OaLs1oOEYcPgl4zMSbI69IOKKiH7IvU/HJ5JgJExuU+ht0EsAEGn5x1kUN1n2XktdXh1 YKR5xicPr8uSirbD7ltEXp+z8VX7NArYCPQaOmMiLddb3w1Co6F4OjCjRdVbIWG/RTM3 7Og/j3en30UzzI5F1hdhOusifiPk3JnoZGeo2wZsTVm+q9/K/bCVZ/zidbmKMIlUQU85 TC6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=UA1otn06DpB6fLDA+Vl57gvGDMfRCJixLizB5vruz5g=; b=Ie2R575/cScbbhLrR34nej/nvxO9qlXGbNha3ftjW5iK+QsGfHcUpCHAMZwgblOOri OejFitecpfeDQoRcoP6ULhKnHMK3BbZgSxxMY054uGTx58n6pZTcGnueZNIMkWdgZlj9 r/szC1sIopNeRixDUVA3aRIlQJ8EbBJoFKwE+KwwemKocicMU9LFvMNkj7KCc5ZyzerH 7ldIGLKAoYwfDF4CfB92PIQBUROD/Up0YIJxXzUB+fMueAP2Uy4d4O6LfxJqT/IzRuNI hMzMT8W9yfeEgbcoXM3+0AZEmzE3554KSbS0KUD3vuWsPw0dnuOjnqqZcdOReHarRD4x Wq1A== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.182 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684250706; x=1686842706; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=UA1otn06DpB6fLDA+Vl57gvGDMfRCJixLizB5vruz5g=; b=Ts2z34n3w+tDi0vlzPUEI9xOKkM+a7OLtDsmGrxVLVd0LXyJ4OKyKT/4VDyJCfqi+T ExSG7CwDakwGkIf9PB0K1DFHvqswJGsUPLIPyrNFW9Ym1Rg1u0+G1OXKkM6rOHQMbUu2 PKCauZazg9m/gTw/KbBegBbJr29SVj6f636ucZ98PCGbwYFjQa6+/wvEL1AaRq9RaSpK +aR6CnvKyJoqL6UHyhwGOCCjKaP0OQ7GbAuaTXVPkXvotT1UQfqlVcBh303NrgRDZhzv T2tjXZNZtNUr7eq8hbujvxo1ugiMh3L0ULl89oMjZvBJ36gahKPHnnsT8wE5RPMww56C X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684250706; x=1686842706; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=UA1otn06DpB6fLDA+Vl57gvGDMfRCJixLizB5vruz5g=; b=Wq6JAEHgeAjUS2568etwuexINow64oXRx93tD8kINDMH61wShgFPp8Qwc1ObzIgDID iVwFPugMRJR5GUKGvV/KUNzNe8osTNrGQTxVKY1TtS4AssdPxvifzZxPCSa3vPG4fKsg VOj7cmrHqczpYWd9gc/v1a/b174LeTfwia9AItBNweNZhSjyvyw61pUpmxSW/Q4QrZ/n AT/u9iVGJNaNLN1eZ+wZ7091OnEtSuS21Pau8VGVplF+rymfLoAUbm0EsB2q4uFKQZEH GdDQvz Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyL8FC+F335NdgPaFoxMyUDYNtPW4P+NhMRu2Pv0B5/1vhQ6utn H4nvCoWRRZoj2DxNB9He1QA= X-Google-Smtp-Source: ACHHUZ5gW9XLYOxvAeMJxsbLhV+1RmkSnaSbTrcH1kPsZK0z8k43dsGJpOB/+m8bq5ty5hGh55+dlA== X-Received: by 2002:aca:da0a:0:b0:38e:30c2:56a8 with SMTP id r10-20020acada0a000000b0038e30c256a8mr6654118oig.4.1684250706253; Tue, 16 May 2023 08:25:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:1383:b0:547:2ef3:b898 with SMTP id i3-20020a056820138300b005472ef3b898ls1316890oow.1.-pod-prod-04-us; Tue, 16 May 2023 08:25:03 -0700 (PDT) X-Received: by 2002:a05:6808:191f:b0:396:fb3:e15b with SMTP id bf31-20020a056808191f00b003960fb3e15bmr4427703oib.19.1684250703593; Tue, 16 May 2023 08:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684250703; cv=none; d=google.com; s=arc-20160816; b=V89Fn5X4Gn7nRkCuqR2aTSj3qAH80FO8NK3bcOysNN7x/rCAIz8gI7V3AekaRMpDDp pvxstfYaN5aYGj/sa2r10tmgS+jvrUbSWGMGuvsxPKU98CHZ9nPleXLUKdwUz0nuZrF+ L+XiSnM1/b0tOJ+eb9VOl/FVY3G3wTATdIz7BqFXKNcq5pSVtR7JRvnkso+OzcFFzE3c 01h9SRGzU0FTaEERuPopOat7iqZ28hQfmApJd2mFuW2AsXITZsLam1nApeLl6dEF2gHp vTYiPSSaWsz1Ot7ygqItl9cdXJt+gXWaAnonF6XDT2KoIJcdeKpeOIf32OIjlJrhJyQn ty3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=SIoNeYCTkSIv15DwpLNt4ATpPcRiiMGPoAYnNjw5wAI=; b=Gdrll/NVUXYxBlaJtFP12O9xUiqjcxmjVuBBot8+YX8qkQ43D74WOYaYgbAoykjGOg FQ+TpOHYsCqxg3Qnlzv/BHLZrTrA4OSdlMxBwxwfupn049iCTjcgwEGTKAaSno3Wl1jc HyvOtN/PmGqgqZKemv+Z64j4ZDsl90g+2+AH4qIADw3IPf/STVxbLQ18YpxZO9kKf9ki fJyZhXmDsAoGvTHdvGooog8OhF0qX1DXynDM1lCY2Pv/LW5RzWptORlMDazTdAPDvSbt 9hklMYA7dzjMlSmsk4Y7v6ATPa5ib3J8MrCyH36Kj0yOZO0lggiq8dk7N14od4FhP0+G 8DPQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.182 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by gmr-mx.google.com with ESMTPS id ex8-20020a056808298800b003925998258asi1450240oib.5.2023.05.16.08.25.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 May 2023 08:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.182 as permitted sender) client-ip=209.85.219.182; Original-Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-b9a7e639656so22052919276.0 for ; Tue, 16 May 2023 08:25:03 -0700 (PDT) X-Received: by 2002:a25:5185:0:b0:ba6:f32b:28e3 with SMTP id f127-20020a255185000000b00ba6f32b28e3mr12076696ybb.6.1684250702745; Tue, 16 May 2023 08:25:02 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.182 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32635 Archived-At: --000000000000d996cf05fbd12c21 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In a text file metadata.yaml: title: Title Text subtitle: Subtitle Text where obviously "Title Text" and "Subtitle Text" should be replaced with your title and subtitle. Then add --metadata-file metadata.yaml to your pandoc command line. (The YAML file can be called anything. I used "metadata" for explanatory purposes.) Also you may get better results if you save the ODT file as a DOCX file in Writer and convert from docx to latex with pandoc. Den tis 16 maj 2023 17:10Ian Fantom skrev: > Thanks. Is that > > libreoffice --metadata-file > > I'm not getting anything. > > Ian > > On 16/05/2023 11:59, Bastien DUMONT wrote: > > Indeed, Pandoc does not seem to extract the title and the subtitle. I > just created an ODT file with the following body: > > > > ``` > > Title > > subtitle > > > > A > header > > ``` > > > > The two first elements are handled as normal paragraph. However, the > last element is correctly read as a header level 3. > > > > You could set the title and the subtitle in a metadata file (called wit= h > --metadata-file) and remove them from your odt file. As for your headers, > we cannot know why Pandoc does not recognize them without looking into yo= ur > file (are, better, a sample of your file reduced to the strict minimum). > > > > To get the default file for LaTeX, run pandoc -D latex. > > > > Le Tuesday 16 May 2023 =C3=A0 11:32:32AM, Ian Fantom a =C3=A9crit : > >> I'm still puzzled on how the correspondences work. I must be > misunderstanding > >> something in the Manual ([1]https://pandoc.org/chunkedhtml-demo/ > >> 6-templates.html). > >> > >> If I enter 'pandoc -D odt' then I get the contents of the default file > for odt, > >> but if I enter 'pandoc -D tex' I get "Could not find data file > templates/ > >> default.tex". > >> > >> The odt default file contains the lines: > >> > >> - --------------- > >> > >> $for(header-includes)$ > >> $header-includes$ > >> > >> ... > >> > >> $if(title)$ > >> $title$ > >> $endif$ > >> $if(subtitle)$ > >> $subtitle$ > >> $endif$ > >> > >> > >> - ----------------------- > >> > >> The odt book title is of type 'Title', and the chapter titles are of > type > >> 'Subtitle'. Subheadings are of type 'Header 3'. But instead of getting > chapter > >> headings I get eg: > >> > >> \protect\hypertarget{anchor-4}{}{}Preface > >> > >> Perhaps someone could explain. > >> > >> Many thanks, > >> > >> Ian > >> > >> > >> On 15/05/2023 20:26, Ian Fantom wrote: > >> > >> 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 [2] 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=C3=A5n 15 maj 2023 18:35Ian Fantom <[3]ian-0jttZa1E5sQhHD8HoNpTWA@public.gmane.org= k> > 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 ([4]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 a= s > 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 [5] > pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To view this discussion on the web visit [6]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 Googl= e > Groups > >> "pandoc-discuss" group. > >> To unsubscribe from this group and stop receiving emails from it, > send an > >> email to [7]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To view this discussion on the web visit [8] > https://groups.google.com/d/ > >> msgid/pandoc-discuss/3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4% > 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 [9]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To view this discussion on the web visit [10] > https://groups.google.com/d/msgid/ > >> pandoc-discuss/7316b85d-27a0-abf5-1e0b-09e0c40186fd%40fantom.org.uk. > >> > >> References: > >> > >> [1] https://pandoc.org/chunkedhtml-demo/6-templates.html > >> [2] mailto:bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org > >> [3] mailto:ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org > >> [4] https://pandoc.org/MANUAL.html > >> [5] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > >> [6] > https://groups.google.com/d/msgid/pandoc-discuss/1201761b-53e9-f3bc-a6b5-= 4eedaf3b5146%40fantom.org.uk > >> [7] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > >> [8] > https://groups.google.com/d/msgid/pandoc-discuss/3BA7371B-D3AC-43A2-B8E3-= C6FAB0A977E4%40fantom.org.uk?utm_medium=3Demail&utm_source=3Dfooter > >> [9] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > >> [10] > https://groups.google.com/d/msgid/pandoc-discuss/7316b85d-27a0-abf5-1e0b-= 09e0c40186fd%40fantom.org.uk?utm_medium=3Demail&utm_source=3Dfooter > > -- > 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/df607dbb-adfd-e034-7f88-= 0510ecdfdc3a%40fantom.org.uk > . > --=20 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 e= mail 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/CADAJKhCnDBnRthrhr_KZnqmEoScyqke1pmfH6okgi6XCZzDOew%40mail.g= mail.com. --000000000000d996cf05fbd12c21 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In a text file metadata.yaml:

=
title: Title Text
subtitle: Subtit= le Text

where obviously = "Title Text" and "Subtitle Text" should be replaced wit= h your title and subtitle.

Then add

--metadata-f= ile metadata.yaml

to you= r pandoc command line.

(= The YAML file can be called anything. I used "metadata" for expla= natory purposes.)

Also y= ou may get better results if you save the ODT file as a DOCX file in Writer= and convert from docx to latex with pandoc.

Den tis 16 maj 2023 17:10= Ian Fantom <ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org> skrev:
Thanks. Is that

libreoffice --metadata-file

I'm not getting anything.

Ian

On 16/05/2023 11:59, Bastien DUMONT wrote:
> Indeed, Pandoc does not seem to extract the title and the subtitle. I = just created an ODT file with the following body:
>
> ```
>=C2=A0 =C2=A0 =C2=A0<text:p text:style-name=3D"Title">T= itle</text:p>
>=C2=A0 =C2=A0 =C2=A0<text:p text:style-name=3D"Subtitle"&g= t;subtitle</text:p>
>=C2=A0 =C2=A0 =C2=A0<text:p text:style-name=3D"P1"/> >=C2=A0 =C2=A0 =C2=A0<text:h text:style-name=3D"Heading_20_3&quo= t; text:outline-level=3D"3">A header</text:h>
> ```
>
> The two first elements are handled as normal paragraph. However, the l= ast element is correctly read as a header level 3.
>
> You could set the title and the subtitle in a metadata file (called wi= th --metadata-file) and remove them from your odt file. As for your headers= , we cannot know why Pandoc does not recognize them without looking into yo= ur file (are, better, a sample of your file reduced to the strict minimum).=
>
> To get the default file for LaTeX, run pandoc -D latex.
>
> Le Tuesday 16 May 2023 =C3=A0 11:32:32AM, Ian Fantom a =C3=A9crit : >> I'm still puzzled on how the correspondences work. I must be m= isunderstanding
>> something in the Manual ([1]https= ://pandoc.org/chunkedhtml-demo/
>> 6-templates.html).
>>
>> If I enter 'pandoc -D odt' then I get the contents of the = default file for odt,
>> but if I enter 'pandoc -D tex' I get "Could not find = data file templates/
>> default.tex".
>>
>> The odt default file contains the lines:
>>
>> - ---------------
>>
>> $for(header-includes)$
>>=C2=A0 =C2=A0 $header-includes$
>>
>> ...
>>
>> $if(title)$
>> <text:p text:style-name=3D"Title">$title$</text= :p>
>> $endif$
>> $if(subtitle)$
>> <text:p text:style-name=3D"Subtitle">$subtitle$<= ;/text:p>
>> $endif$
>>
>>
>> - -----------------------
>>
>> The odt book title is of type 'Title', and the chapter tit= les are of type
>> 'Subtitle'. Subheadings are of type 'Header 3'. Bu= t instead of getting chapter
>> headings I get eg:
>>
>> \protect\hypertarget{anchor-4}{}{}Preface
>>
>> Perhaps someone=C2=A0 could explain.
>>
>> Many thanks,
>>
>> Ian
>>
>>
>> On 15/05/2023 20:26, Ian Fantom wrote:
>>
>>=C2=A0 =C2=A0 =C2=A0 Well the .odt file uses styles from Writer: Ti= tle, Subtitle, Header3.
>>
>>=C2=A0 =C2=A0 =C2=A0 Would looking up the code used in the .fodt he= lp?
>>
>>=C2=A0 =C2=A0 =C2=A0 Ian
>>
>>
>>=C2=A0 =C2=A0 =C2=A0 On 15 May 2023 18:15:06 BST, BPJ [2]<bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> wrote:
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Probably whoever wrote the ODT f= ile faked the headings by enlarging the
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 font and applying bold font rath= er than applying the "Heading 1" etc
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 named paragraph styles. Only the= latter will be recognised as headings
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 by Pandoc. There are a lot of su= ch files in the wild.
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Den m=C3=A5n 15 maj 2023 18:35Ia= n Fantom <[3]ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org> skrev:
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 I've tried con= verting a book in .odt (LibreOffice Writer / Ubuntu)
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 to
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .tex and viewing i= t in Texstudio.
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 It's not conve= rting any of the headings and subheadings - just
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 producing
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 normal text. I use= d the '-s' and the '-o' options.
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 I think there must= be something I haven't understood in the Pandoc
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 User
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Guide ([4]https://pandoc.org/MANUAL.html)
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 I was expecting so= me way of defining a conversion table from Writer
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 to
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Latex. For instanc= e:
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'Preface' = is in style 'subtitle' in Writer, and is converted to:
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '\protect\hype= rtarget{anchor-4}{}{}Preface' and appears as normal
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 text
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 in .tex.
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Any ideas how I sh= ould proceed?
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Thanks, Ian Fantom=
>>
>>
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 You received this = message because you are subscribed to the Google
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Groups "pando= c-discuss" group.
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 To unsubscribe fro= m this group and stop receiving emails from it,
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 send an email to [= 5]pandoc-discuss+unsubscribe@googlegr= oups.com.
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 To view this discu= ssion on the web visit [6]https://
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 groups.google.com/d/msgid/pandoc-discuss/ >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1201761b-53e9-f3bc= -a6b5-4eedaf3b5146%40fantom.org.uk.
>>
>>=C2=A0 =C2=A0 =C2=A0 --
>>=C2=A0 =C2=A0 =C2=A0 You received this message because you are subs= cribed to the Google Groups
>>=C2=A0 =C2=A0 =C2=A0 "pandoc-discuss" group.
>>=C2=A0 =C2=A0 =C2=A0 To unsubscribe from this group and stop receiv= ing emails from it, send an
>>=C2=A0 =C2=A0 =C2=A0 email to [7]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>>=C2=A0 =C2=A0 =C2=A0 To view this discussion on the web visit [8]https://groups.google.com/d/
>>=C2=A0 =C2=A0 =C2=A0 msgid/pandoc-discuss/3BA7371B-D3AC-43A2-B8E3-C= 6FAB0A977E4%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 [9]pandoc-discuss+unsubsc= ribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> To view this discussion on the web visit [10]https://groups.google.com/d/msgid/
>> pandoc-discuss/7316b85d-27a0-abf5-1e0b-09e0c40186fd%40fantom.org.uk.
>>
>> References:
>>
>> [1] https://pando= c.org/chunkedhtml-demo/6-templates.html
>> [2] mailto:bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org
>> [3] mailto:ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org
>> [4] https://pandoc.org/MANUAL.html<= br> >> [5] mailto:pandoc-discuss%= 2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>> [6] https://groups.google.com/d/msgid/pando= c-discuss/1201761b-53e9-f3bc-a6b5-4eedaf3b5146%40fantom.org.uk
>> [7] mailto:pandoc-discuss+un= subscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>> [8] https://groups.google.com/d/msgid/pandoc-discuss/3BA7371B-D3AC-43A2-B8E= 3-C6FAB0A977E4%40fantom.org.uk?utm_medium=3Demail&utm_source=3Dfooter
>> [9] mailto:
pandoc-discuss+un= subscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>> [10] https://groups.google.com/d/msgid/pandoc-discuss/7316b85d-27a0-abf5-1e= 0b-09e0c40186fd%40fantom.org.uk?utm_medium=3Demail&utm_source=3Dfooter<= /a>

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to
pandoc-discuss+unsubscribe@go= oglegroups.com.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/df607dbb-adfd-e034-7f88-0510ecdfdc3a%= 40fantom.org.uk.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CADAJKhCnDBnRthrhr_KZnqmEoScyqke1pmfH6okg= i6XCZzDOew%40mail.gmail.com.
--000000000000d996cf05fbd12c21--