From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29164 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vin Cent Newsgroups: gmane.text.pandoc Subject: Re: LateX to epub -- label rendering Date: Fri, 3 Sep 2021 05:02:41 -0700 (PDT) Message-ID: <53b2b5c9-985e-4a38-9884-c58b97bf0adfn@googlegroups.com> References: <84cefde8-0943-43e2-8b7a-96efe6a0949cn@googlegroups.com> <7a388540-5381-4e98-bda9-ebcac91a20a7n@googlegroups.com> <0a0b065768ca449095035c65e5dabd6c@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4198_1537594469.1630670561985" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29373"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCT6LC6Q3QDBBY45ZCEQMGQE4XDYF5A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 03 14:02:46 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f58.google.com ([209.85.161.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mM7u9-0007RT-Mr for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 03 Sep 2021 14:02:45 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id o32-20020a4a95a3000000b0029018f4f7c3sf2727422ooi.22 for ; Fri, 03 Sep 2021 05:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Ksaa4wn6qvDH3ENlYs3bj8zKvRofZT8lqiSYBpcB9mI=; b=sZquYiHDskduL8C+bsoDn1BsTWYCksazulcQB9GBX5ztB6iBJon2HFYjXznUPMmHmj /KV8YnNB0mVEVrHyBwTme5DD/t5862NzOAvSmU9ppVEA2cCsDy0VbpdN75uC0PWvTPTM BKlW6I3mAo16CaJItR1khqDcFZCNXoCrl4aXmKIamHgRwJgLFE8vOgIklVe8ssazfBZO lKG0BvVD0/D/wnwBWQ2PDuKHgq9ophPNto0tiMmUe2wimAy+zvTw/9W9iPAYNHpfHJM1 4Hq2vQ06S5BpkGpyIy1QmM1+wjxRVs4JfB6/JK7el+GadI77M3YYRfgEwXnpUhVgULVT epeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Ksaa4wn6qvDH3ENlYs3bj8zKvRofZT8lqiSYBpcB9mI=; b=VsrsYJcX4DSqamB+pIo0s4SirGpa3bXMZLeTEFb2HbO4BfLbAf8S3Lx8IiVcCHHloe TvVndhYFll49dinhznUqt7GlmST93aDxJEGejkYF5fQ3C2AiSyaWDQGyV5HsJEZNfcQ9 PTjJk0ShmPmF6t4DWONsZBQhDC1ViYxWoIEU0N2im87yfDzDJhVXNCuoEgJasiN6Emuq hnPyKlCkcyM7FdK4ebarMwknr/Eg9B527fI82U+Xsg8db1FBKbcBZLDqrof198dLB521 DTQw8yqXN4cIrHoz0sk1/9TZCo42LXDqGmLbGVNodM8AmNkSBK3FvpcDpcKUvY7SzRZd yyPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Ksaa4wn6qvDH3ENlYs3bj8zKvRofZT8lqiSYBpcB9mI=; b=TLurU7blPPQ5P1UcTibXVDb9TAopA5Z1Sgp7K5YoL9XTDT9EouNYwaJkYqarBNF0jM mGYOPdt+h2d/bUEMknGAeStVqEoe4tRbZlhWUo++xIsm5v3TPexbIsVA4u/ibs+G40yC dgwIdN+D8ixL8yj14ynd8YQ/spbftVsIEVEzquE/wvFrb8CjlN8OqnplJEY0SWpmTTey JnlxRzMKOw7FCKjZzY4iBEYJEsPBnDUi05H9+FvmlYDcFkkdyjw/jeBl1al9gtC9f8KD LLtkGXEecaiLb68//HUsWDFZTtdM4u7BRtf6tuWJ1qFUgY0ajRMR+sctEzAgiYtjrAQV 7qiQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533ZshlRg/YGmlYnOBQy6oUNNHglRPChzNcVl2O4Recc8HZ9boZv KT9dIVDnei+y7rhABg9oYZc= X-Google-Smtp-Source: ABdhPJxhvdjMQqlD9QYC+ngNlVuDW/VOMHwuLPtcp7MkaFIEtNIJJ3LbPtLWShaP5tQxFVlBINaqwQ== X-Received: by 2002:a05:6808:1449:: with SMTP id x9mr5957303oiv.14.1630670564530; Fri, 03 Sep 2021 05:02:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:11d7:: with SMTP id v23ls1591212otq.2.gmail; Fri, 03 Sep 2021 05:02:42 -0700 (PDT) X-Received: by 2002:a05:6830:237c:: with SMTP id r28mr2954640oth.267.1630670562693; Fri, 03 Sep 2021 05:02:42 -0700 (PDT) In-Reply-To: <0a0b065768ca449095035c65e5dabd6c-NSENcxR/0n0@public.gmane.org> X-Original-Sender: irakay17-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:29164 Archived-At: ------=_Part_4198_1537594469.1630670561985 Content-Type: multipart/alternative; boundary="----=_Part_4199_1852004497.1630670561985" ------=_Part_4199_1852004497.1630670561985 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Removing markboth removes the rendering I don't want to see. And getting the \label to stick to \chapter, (\markboth goes under \label)= =20 provides exactly what I need. Thanks. This is enough for me to stop asking :) Vincent On Friday, September 3, 2021 at 1:38:26 PM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote: > What happens if you remove \markboth? Shouldn't there be a mechanism to= =20 > deal with this automatically? > ________________________________________ > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag= =20 > von Vin Cent > Gesendet: Freitag, 3. September 2021 12:00:20 > An: pandoc-discuss > Betreff: Re: LateX to epub -- label rendering > > Hi Denis, > > Thanks for your reply and suggestion. > > markdown rendering goes as follows : > > . > > First chapter head > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > [\[ch:un\]]{#ch:un label=3D"ch:un"} > > Foo bar > > Second chapter head > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > [\[ch:deux\]]{#ch:deux label=3D"ch:deux"} > > > On Friday, September 3, 2021 at 11:21:39 AM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote= : > Don=E2=80=99t really know much about epub, but what happens if you go to = other=20 > formats, say markdown? Or pandoc=E2=80=99s native format? That=E2=80=99s = always really=20 > helpful for debugging. > Denis > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im Auftrag= =20 > von Vin Cent > Gesendet: Freitag, 3. September 2021 11:09 > An: pandoc-discuss > Betreff: LateX to epub -- label rendering > > Hi, > > I'm quite new to pandoc, with some experience in LateX. > I'm trying to convert a book (\documentclass{memoir} ) into a epub=20 > document. > > I have been able to get something quite fine (thanks pandoc! this is=20 > really amazing) but now I seem to be stuck on a detail. > > Each chapter from my source starts with a label, such as : > > \chapter{First chapter head} > \markboth{}{I. First chapter head} > \label{ch:un} > > Foo bar > > \chapter{Second chapter head} > \markboth{}{II. Second chapter head} > \label{ch:deux} > > Which I compile with (I have removed a bunch of option in order to just= =20 > isolate my problem) : > pandoc -o ebook.epub epub.tex --epub-metadata=3Dmetadata.xml --toc=20 > --toc-depth=3D2 > > The result of this is a render with my label name being displayed into=20 > brackets. > [ch:un] > > My expectation is that the label is not displayed, but serves only=20 > anchors/links/navigation if a ref is defined pointing to it. > > Can you suggest how I can achieve this result ? > I tried to look for this problem and found=20 > https://github.com/lierdakil/pandoc-crossref/issues/319 but to be=20 > honnest, I'm too much a pandoc newb to understand that thread. I have tri= ed=20 > quite a number of suggestions (adding the LUA script, adding a similar ya= ml=20 > file, but this has changed nothing as far as my problem is concerned). > > Cheers, > > Vincent > > -- > You received this message because you are subscribed to the Google Groups= =20 > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= =20 > email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/84cefde8-0943-43e2-8b7a-= 96efe6a0949cn%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/84cefde8-0943-43e2-8b7a-= 96efe6a0949cn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > >. > > -- > You received this message because you are subscribed to the Google Groups= =20 > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= =20 > email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/7a388540-5381-4e98-bda9-= ebcac91a20a7n%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/7a388540-5381-4e98-bda9-= ebcac91a20a7n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > >. > --=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/53b2b5c9-985e-4a38-9884-c58b97bf0adfn%40googlegroups.com. ------=_Part_4199_1852004497.1630670561985 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi,

Removing markboth removes the rendering I don't want= to see.
And getting the \label to stick to \chapter, (\markboth = goes under \label) provides exactly what I need.

T= hanks. This is enough for me to stop asking :)

Vin= cent


On Friday, September 3, 2021 at 1:38:26 PM UTC+2 denis.= ..@unibe.ch wrote:
What happens if you remove \markboth? Shouldn't there be a mechan= ism to deal with this automatically?
________________________________________
Von: pandoc-...@googlegroups= .com <pandoc-...@googlegr= oups.com> im Auftrag von Vin Cent <irak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Gesendet: Freitag, 3. September 2021 12:00:20
An: pandoc-discuss
Betreff: Re: LateX to epub -- label rendering

Hi Denis,

Thanks for your reply and suggestion.

markdown rendering goes as follows :

.

First chapter head
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

[\[ch:un\]]{#ch:un label=3D"ch:un"}

Foo bar

Second chapter head
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

[\[ch:deux\]]{#ch:deux label=3D"ch:deux"}


On Friday, September 3, 2021 at 11:21:39 AM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote:
Don=E2=80=99t really know much about epub, but what happens if you go t= o other formats, say markdown? Or pandoc=E2=80=99s native format? That=E2= =80=99s always really helpful for debugging.
Denis

Von: pandoc-...@googlegroups= .com <pandoc-...@googlegr= oups.com> Im Auftrag von Vin Cent
Gesendet: Freitag, 3. September 2021 11:09
An: pandoc-discuss <pando= c-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: LateX to epub -- label rendering

Hi,

I'm quite new to pandoc, with some experience in LateX.
I'm trying to convert a book (\documentclass{memoir} ) into a epub = document.

I have been able to get something quite fine (thanks pandoc! this is re= ally amazing) but now I seem to be stuck on a detail.

Each chapter from my source starts with a label, such as :

\chapter{First chapter head}
\markboth{}{I. First chapter head}
\label{ch:un}

Foo bar

\chapter{Second chapter head}
\markboth{}{II. Second chapter head}
\label{ch:deux}

Which I compile with (I have removed a bunch of option in order to just= isolate my problem) :
pandoc -o ebook.epub epub.tex --epub-metadata=3Dmetadata.xml --toc --to= c-depth=3D2

The result of this is a render with my label name being displayed into = brackets.
[ch:un]

My expectation is that the label is not displayed, but serves only anch= ors/links/navigation if a ref is defined pointing to it.

Can you suggest how I can achieve this result ?
I tried to look for this problem and found https://g= ithub.com/lierdakil/pandoc-crossref/issues/319 but to be honnest, I'= ;m too much a pandoc newb to understand that thread. I have tried quite a n= umber of suggestions (adding the LUA script, adding a similar yaml file, bu= t this has changed nothing as far as my problem is concerned).

Cheers,

Vincent

--
You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discus...@goo= glegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/84cefde8-09= 43-43e2-8b7a-96efe6a0949cn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-di= scuss/84cefde8-0943-43e2-8b7a-96efe6a0949cn%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter>.

--
You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discus...@goo= glegroups.com<mailto:pand= oc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7a388540-53= 81-4e98-bda9-ebcac91a20a7n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-di= scuss/7a388540-5381-4e98-bda9-ebcac91a20a7n%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter>.

--
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/53b2b5c9-985e-4a38-9884-c58b97bf0adfn%40googlegroups.= com.
------=_Part_4199_1852004497.1630670561985-- ------=_Part_4198_1537594469.1630670561985--