From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32620 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ian Fantom Newsgroups: gmane.text.pandoc Subject: Re: Converting headings (.odt -> .tex) Date: Mon, 15 May 2023 20:26:22 +0100 Message-ID: <3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4@fantom.org.uk> 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=----B31F4VT95TBDS5BV11SW3Q7YWVGLQ4 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26019"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, BPJ , pandoc-discuss Original-X-From: pandoc-discuss+bncBC66F66HUMPBBYMORKRQMGQEUDZODLI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 15 21:26:30 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f55.google.com ([209.85.208.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pydq1-0006Xx-NX for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 15 May 2023 21:26:29 +0200 Original-Received: by mail-ed1-f55.google.com with SMTP id 4fb4d7f45d1cf-50bcd245040sf14920039a12.0 for ; Mon, 15 May 2023 12:26:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684178789; cv=pass; d=google.com; s=arc-20160816; b=tMmlw5bFlEnz9LvvkV6gdwuhRolSGU1lzNEHvjwgIHeCiTlYEI5DOz5w415Cz3JdvY lbNYByOzan7f1Vwzc04TGEkZY1UqM7KMtTBR7Ck+cQoU3MALtpHGoipBb9UWca2ieUbn fmn2qR4EhpogDCDKKX6mlK0jVQ6h+iAGefo81UV0AbpwplQmfu9kSoXdxYrceHn3Eoni Kx0Wci88g2xuj+LtelIcbNL+97efAaeadJ234vhfoLdVmjYem86TSOgw5X++WGNK6Tn2 YcKGAUpubt6d8CWtq5k730eG5AdfQa8KjqwAF1u1TyfB2oZGwCWM6P/pKgZPx6ZAl5py ZvCw== 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:reply-to:content-transfer-encoding :mime-version:message-id:references:in-reply-to:user-agent:subject :to:from:date:sender:dkim-signature; bh=zK93jMXrT77gCIsPMEi/N6NrRLBA9S6+8xTM7JtRgDk=; b=Ow4OyQwnap1kpp5AE0d/1TEQwbbpLpiLCjRDxtAzkhroFSKVTzofWD8V+DhHZG+zZY ItiOhgl/MRmTrX18xsPI75jsICQc9fTF25ktUHmcBTuB64Iw0G6EaxTHLd6IitEsyAx5 vEkMcVgynnovYGu7/KWQWnLfDzIy+RVbER71J1qB1w1RhGVsYNHxV0O6xwuNa4Crjxeq skmrwKBzjomHDbYb9q3csQnps0NVTj2HJrO86zu0qlqzIy4daWaTb6CVDPxmT6UcoMpr NGqHdfRkDubakzDABYNhE2c8bpDL0Ib5Wa6Ubav/xuEaVkwwa0cALHhmyJo4c7Z8fbRb 3uNg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@fantom.org.uk header.s=cb32aubc header.b=RrWpmvi4; spf=pass (google.com: domain of ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org designates 82.153.230.170 as permitted sender) smtp.mailfrom=ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684178789; x=1686770789; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=zK93jMXrT77gCIsPMEi/N6NrRLBA9S6+8xTM7JtRgDk=; b=O3y7w5lB0bajkUDf7OemdEL51YKTaruryVTTO6N/ZfVM9EP1vdN044YFCZKlq5qJEK cKqygCib74i44k3DoIuk7V9OOpvalEvncCXuVx86A1/fBrgA6r227hGlomA+v+zLeuqB mO5XwKtfrs/8mQzhRAJ0fXNnJ3vUqpE2L0koRlDJ2ULY+G7Cjf2nzNLOJcnT6Degmw7/ W++gHHJnD8RgcmccHeKko6WGolN/lGlaWgHGfeqpOrokOmP4xHgCCwlUPXRHfMVZHdHa ezCO7y1zha4VceuiyA8Ddty+ug X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684178789; x=1686770789; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=zK93jMXrT77gCIsPMEi/N6NrRLBA9S6+8xTM7JtRgDk=; b=XXr+t/B9nvY9E+Wq5z6LCSKtRsb23Bza8B9jPYjt7o0P3UBrM4Uh3tJAkGz2sV8M0n gZ7MIdhf7lQpaKDLbESaFLR/c2DY2BTBT6gYJCZd9CrmntcHQjUd4rJj5lbWJ9AiSDqq KfmvMdRWEfrOGoJD3lxD+liiVasoj5E64uVJJh8po4X2ZoprBfyIamA+q1KBLpAX6iL+ 9t8BJC7ULtMWjiqIeCj8b5VRGd96IRuLPYa3w Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzyzkxi45+P3P9URXeZUREwEPbH5qI4JjhCmaHQNCw7zmfLOHun UE4r1HetctQOe9ehDRS7gf8= X-Google-Smtp-Source: ACHHUZ4XA+rQ/bixJtAt2exyDbzfYJ8yzstkbthBB745SxgkE1fXcsoXJI66nl6+gk7Vic+Fo2LjIw== X-Received: by 2002:a50:8e5b:0:b0:4fa:e5e0:9466 with SMTP id 27-20020a508e5b000000b004fae5e09466mr12650364edx.7.1684178789408; Mon, 15 May 2023 12:26:29 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6402:1a4b:b0:50b:c6d7:396a with SMTP id bf11-20020a0564021a4b00b0050bc6d7396als490857edb.0.-pod-prod-01-eu; Mon, 15 May 2023 12:26:25 -0700 (PDT) X-Received: by 2002:a17:907:3202:b0:965:cf39:ed7a with SMTP id xg2-20020a170907320200b00965cf39ed7amr35629861ejb.56.1684178784913; Mon, 15 May 2023 12:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684178784; cv=none; d=google.com; s=arc-20160816; b=OD/6ws4okNvYMMK/rcSoXgYilldWltMAIx/2VABGYRdahPSFuHHfaklEVpIn9Own/Y YiOc1ngAbaASBK5tAztxJg11Q677V328aBgO4EmHXlBxD/KfvdgbxPT/asVLtZ3nLlVX GU9YpR7OX+pc7jriebTlDnRU2JZbHsPLivGglBDd5g9JEB96dFsYrbnk234A/iRhzTD9 GE4CgooVUf5QNwPx5APoV0QxE6KB6DGLbFNpNyrctvQb0z7cl93qXd5RgLvu1YH7W+4P bQl9qDhz0iLb9k7KEqtslh2tUTYKtJwq7ZDNz+z4fzZZClmYIqNLjH1qGDb5sBN69jTb 1LVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:dkim-signature; bh=GQqC1dRa5k+aphMyFL9yFo7LLw8bhUrh/+3NEljlmuE=; b=jLh9Y17BAdwE0LgH1wCrqwZXdEslELA0T7MtkbCSpsPmIcy6AtEW70+bhX6wqKqayP wxXnQsIE1G9oi7BsLQX5rIfja3ZRF/eVkBE9kE7HJ0zwSXQxCJVSepoi/zWQUd/jJYib IofUb/ReIB0b7tHrrgcde5BlIEY7dqKjqArdaCPutnLwWAZWgJr8VRQYJ5iJfFU0r5vi Ad+TcCauqUNxLCi0yUtOcRoBSJIINwBLjTicp/Mefe/vsS8kbZ71ZL6LNvyUXc4Qd8yS bCRifWfQMqDeGA9kpP+hIVHWLbMf2Y7gCdhuBXAPlcC3NL1uHH+lXP4z1vgEZu7QivU3 vUhA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@fantom.org.uk header.s=cb32aubc header.b=RrWpmvi4; spf=pass (google.com: domain of ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org designates 82.153.230.170 as permitted sender) smtp.mailfrom=ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org Original-Received: from galileo.newbury.coolfactor.org (newbury.coolfactor.org. [82.153.230.170]) by gmr-mx.google.com with ESMTPS id sb32-20020a1709076da000b009531f349d24si1698875ejc.0.2023.05.15.12.26.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 12:26:24 -0700 (PDT) Received-SPF: pass (google.com: domain of ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org designates 82.153.230.170 as permitted sender) client-ip=82.153.230.170; Original-Received: from guest-121.newbury.coolfactor.org ([192.168.42.121] helo=[127.0.0.1]) by galileo.newbury.coolfactor.org with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1pydpl-0002qX-1L; Mon, 15 May 2023 20:26:19 +0100 In-Reply-To: X-Original-Sender: ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@fantom.org.uk header.s=cb32aubc header.b=RrWpmvi4; spf=pass (google.com: domain of ian-0jttZa1E5sTe9xe1eoZjHA@public.gmane.org designates 82.153.230.170 as permitted sender) smtp.mailfrom=ian-0jttZa1E5sTe9xe1eoZjHA@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:32620 Archived-At: ------B31F4VT95TBDS5BV11SW3Q7YWVGLQ4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Well the .odt file uses styles from Writer: Title, Subtitle, Header3. Would looking up the code used in the .fodt help? Ian =20 On 15 May 2023 18:15:06 BST, BPJ 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 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 Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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 = 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%40m= ail.gmail.com. --=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/3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4%40fantom.org.uk. ------B31F4VT95TBDS5BV11SW3Q7YWVGLQ4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 "Headin= g 1" etc named paragraph styles. Only the latter will be recognised as head= ings by Pandoc. There are a lot of such files in the wild.

Den m=C3=A5n 15 m= aj 2023 18:35Ian Fantom <ian@fantom= .org.uk> skrev:
I've tried c= onverting 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 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://groups.google.com/d/msg= id/pandoc-discuss/3BA7371B-D3AC-43A2-B8E3-C6FAB0A977E4%40fantom.org.uk.=
------B31F4VT95TBDS5BV11SW3Q7YWVGLQ4--