From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32616 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Converting headings (.odt -> .tex) Date: Mon, 15 May 2023 19:15:06 +0200 Message-ID: References: <1201761b-53e9-f3bc-a6b5-4eedaf3b5146@fantom.org.uk> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000045eaec05fbbe99ec" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39709"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBJWRRGRQMGQEFIZPKZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 15 19:15:23 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f55.google.com ([209.85.219.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pybn8-000A3V-1Z for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 15 May 2023 19:15:22 +0200 Original-Received: by mail-qv1-f55.google.com with SMTP id 6a1803df08f44-61abb7cd89csf72696206d6.3 for ; Mon, 15 May 2023 10:15:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684170921; cv=pass; d=google.com; s=arc-20160816; b=bNj60zY+b+z5gTDckdLwjFZRQYQeQYZ6woKBYRm0CV+b1vqTUylQQNR1L0VcYpuIVb IO4bB1EAszgJA8tTepG0SCKx/nmLImrzZ7oqOfZiIVpVbXj9S+udR9Nh0b2TBc5dFbyU ZgQaRNoibYGywykeuQAEH5AXY7Lf3klCL+LGihkh33NbxDkWcMLseVvoP5f3Q2zs3e7m p8LnDqsiO7+faKng18XRAGTaBeohdPvoTZmUwdzq9RPMQnYSQ3EY2/O91B+2fI5cPKks Kn1wcdtOqferpJDu39H7SGgVL7sI2PEoY4dSB7QZuXBroxcU3bsUIST2bNj7kI6KpWm8 PFZQ== 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=zvzWcqbXF9hnF8rb9m2DEORdJmut/xrBQWTzRgFq65k=; b=bMATfnTyLf1vCYTbElSnweBljaK36OoxH1QbrZw06Z1wXptShuxJAiM6TPIWO7TMCC T8Zx+aDjIscp1InAGkZSd0OyG4p2KKjoL6Y1joNSqcwxifHzgcwUVepKKdh6O0jnnmjg Dt/w06ruSoJ9lhJ9k6CONFhxqWry/zFObN3SFltF4BvFtGQcb5xlwLIH9OobPPWHYTO3 qk9zH/Hx49xhGO4SxjiaZw9UCjIZB7k2bGkPZP0txptBTQapeQmf+ovPVmh22+ySJ0tW B9bYzB/qP8ZjNcOFazXj8fg9e3cDfHQE6ch+efsE82yxCtXkOQ6qeHa56yfXAE86J08e K01g== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.179 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=1684170921; x=1686762921; 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=zvzWcqbXF9hnF8rb9m2DEORdJmut/xrBQWTzRgFq65k=; b=RbhcaQd/0wNlemdNQNJQE8FOf9XclhyyxX1ftKp1dvLRYledvdePtsELl3RHC7IG6d v8h8DcdMKSWVdUBroQv4mHrbSeqBQp90HolriIo+iaAWWcjmUrVPE43uBcoElBhSAeLi 41dhmHOPjwSjqrgcQgzG1e5C68BaOz9sbatNpN03WH8qy9GjB+zWM4rfri7HWHOAtFqo KVdhEKRQ3uhZvSWAfpLpBWPD4mJ5JVR2GjFkpWl3pOHCqgNHqPSkm6/sAK581GJ0bjS7 nuL6P6Dk8/AtXQQOxViZ1x9K7DwV6WeIPeuALGpo2By/CK0ZQ5NdH5VJAyozxARrIj5M X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684170921; x=1686762921; 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=zvzWcqbXF9hnF8rb9m2DEORdJmut/xrBQWTzRgFq65k=; b=PQBmTvKOQ/0NDBQrx7cvfFa0wB6C0H8fsuBqLpFNS/VOK19IkdudSf3WbSP1fG75GK uD1ijI5hk7fKwz1AN5LbPq0sBamp6IfLV8LWb8FVVhWigP6vzzkA8sTzFp8eDZFVFQqs sOmFTGIlZ0HpOhG3SsNshMykt4sJBTTzZ6X8p1ZQ4aaqSf8TDHj+J7qs4Kna6ZxXkFLk A2vYxqomaAiPyJ4vb3KRqtZDnv6vnSWWYoQpO6PVSmExkdmAUgIS7A980T/Ftp4WaP9D hLt9BO Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzKwtzLimYO115iV3UHL/NBl/6gUBiPJD5+guSGxl16QfcvRwXI ZJYTtvImSSQ95fpNrCfF+hM= X-Google-Smtp-Source: ACHHUZ7/JccD0PV0WygUHkQFbUN5FaUCK1VlNhvilftIPggaVy2I+aWqYS2yZbmF9Nkkq50zGOEcdQ== X-Received: by 2002:a05:6214:9ac:b0:61b:5c7a:b518 with SMTP id du12-20020a05621409ac00b0061b5c7ab518mr5727021qvb.10.1684170921010; Mon, 15 May 2023 10:15:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:622a:4116:b0:3f3:8952:afa5 with SMTP id cc22-20020a05622a411600b003f38952afa5ls20765863qtb.4.-pod-prod-gmail; Mon, 15 May 2023 10:15:18 -0700 (PDT) X-Received: by 2002:a05:622a:510:b0:3ec:d85d:2afe with SMTP id l16-20020a05622a051000b003ecd85d2afemr60152641qtx.2.1684170918162; Mon, 15 May 2023 10:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684170918; cv=none; d=google.com; s=arc-20160816; b=0hiUbEP9bSylUss7Gda3KQdPiRssGZgFIXDNOwUas8WsdDRgZGqUkhC/aYLckkiT1S EmPNQp+BC15/4BFSW7pxMxaTyy8gVbDOaieDyyXRFNaMgQtMd0KE8405v7qqNws1GIiE MPDkqKnM3NC4oOHHNtGOUQ8/CAafS2anu93DzrRhvshKez8T+I0tfi+rQzTh2yNSNHqs csi7eItrAR8B4Dv20lm8ufo24YjueoGFOg+sCUufVbJNtMSoR5kl+yHLl0TVuWysSSlT ADjf4I3Z7F/o4/ah60hiGl6SFMBzmG1lmH1Kvs5Sd5gRVFqkjJs8++uIXWq/hE9wTL4K FJ4g== 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=z7Isvb/2gTVt6cJJcZn0rATEU/fxVeHVDXFzwZNGUxg=; b=mQQJf+wGApOni1FzgmX/IXfsLXiU4mdEBVN1jyzwC3pZUg2I4ZOLU3SYsQ3fJXpQ6U hB4XVUKgxqgPY3Mtg2Q9ZUiWqhzNo/fkjV+aPqpZqmiQmO5PGiBudEYzjSutMaLPhKyz E8/Ac6qIQY+KPyDbU657v/FN54MBAqpSuGRx11PpKRMqOVvtnwsooMC8O5DAxFOdkxES ThadeHUOs+81bcqfuD/jwPW78WBboPONDd/5hT+tW4Z9K52wleqbMvIMVdxJZfaDnzLA LnhhMVn1oAhpolizAMrqrUpzbx+mUPGAymn6CZyB6zzEThK7S4BALZJKxN1ddnB4BvF7 F7GA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.179 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com. [209.85.219.179]) by gmr-mx.google.com with ESMTPS id bz10-20020a05622a1e8a00b003ea887d6fb8si1295251qtb.4.2023.05.15.10.15.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 10:15:18 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.179 as permitted sender) client-ip=209.85.219.179; Original-Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-ba6fa8be5f7so6210243276.0 for ; Mon, 15 May 2023 10:15:18 -0700 (PDT) X-Received: by 2002:a25:203:0:b0:ba7:58d:4fb3 with SMTP id 3-20020a250203000000b00ba7058d4fb3mr8495990ybc.19.1684170917405; Mon, 15 May 2023 10:15:17 -0700 (PDT) In-Reply-To: <1201761b-53e9-f3bc-a6b5-4eedaf3b5146-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org> 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.179 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:32616 Archived-At: --00000000000045eaec05fbbe99ec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 > . > --=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/CADAJKhBLFXzYf_mNc%2BuZ2Ur%2B1kYn3zpgBR7B7tFqjOWaAGCiRQ%40ma= il.gmail.com. --00000000000045eaec05fbbe99ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Probably whoever wrote the ODT file faked the headings by= enlarging the font and applying bold font rather than applying the "H= eading 1" etc named paragraph styles. Only the latter will be recognis= ed as headings by Pandoc. There are a lot of such files in the wild.
<= br>
Den m= =C3=A5n 15 maj 2023 18:35Ian Fantom <ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org> skrev:
= I've tried converting a book in .odt (LibreOffice Writer / Ubuntu) to <= br> .tex and viewing it in Texstudio.

It's not converting any of the headings and subheadings - just producin= g
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 converte= d to:
'\protect\hypertarget{anchor-4}{}{}Preface' and appears as normal t= ext
in .tex.

Any ideas how I should proceed?

Thanks, Ian Fantom


--
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@googlegroups.= com.
To view this discussion on the web visit https://groups.google.= com/d/msgid/pandoc-discuss/1201761b-53e9-f3bc-a6b5-4eedaf3b5146%40fantom.or= g.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://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhBLFXzYf_mNc%2BuZ2Ur%2B1kYn3zpg= BR7B7tFqjOWaAGCiRQ%40mail.gmail.com.
--00000000000045eaec05fbbe99ec--