From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29162 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 03:00:20 -0700 (PDT) Message-ID: <7a388540-5381-4e98-bda9-ebcac91a20a7n@googlegroups.com> References: <84cefde8-0943-43e2-8b7a-96efe6a0949cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3402_82288823.1630663220955" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28917"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCT6LC6Q3QDBBNXEY6EQMGQEUMCHXPY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 03 12:00:25 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 1mM5zk-0007Jm-S4 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 03 Sep 2021 12:00:24 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id v9-20020a4ae6c9000000b0029003c3f017sf2595994oot.23 for ; Fri, 03 Sep 2021 03:00:24 -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=zwE8SH/+V2YrvaYFTCcLFcP7Y/cwEZsV8wQ5VO9weX4=; b=SHh0+exQWKM/mE+adlDYj+wSeN6YSybZ9fClmE13V3bKbtiUzXg7PR5CnsCOzQQJH+ TXefeYvgfZMn/Lb2XSepjexhwDZrFSBGdanrASDXULIaB+LiswcT+u5hSwbxRLZEoMhw MaiwbjzgelolKrg67G5rzsP6QfFjG+UIz85ltlIUvAYFCEkEJcv+cbYSHHENssR6MYmb VjiTTV9+lDO/Je+sgxRXq5tloF7Qh+bKkwBwldUC+xQhiOuI9YzetLZ2B5hqtqNm7C65 cLup8Dus3Hmx0Jmi0vTS43ftnfWi4Dltn760Ne2xjM8hWzf/J49k0k38sUQfwShlFgCW EL4Q== 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=zwE8SH/+V2YrvaYFTCcLFcP7Y/cwEZsV8wQ5VO9weX4=; b=bYy5Ge25EZ5XDW2bFthKmbFJooTtkrvTZZ89gdXdMNsVq/qKGJ4s1qPjAe9Ek7rsz7 rSuvyKcQcY4NLR7EaQK9p9SlSYDJD6bVHSQ2JLgbUGrwgQGCFEaIyouYuLaN5zCcTkNj vbHie+pzWOzQPYboZ7LDyfsF+uhVhNC7zOPmUdmsD/T6ZWXTCYZF9/huTLE7H0Y5gquU iABYREM6vFAAs6DvVk9p4cMtiT+skb9zvySDEEQ9TP6MwGBOCbk0yHgtXa2bfgqPwbD6 baW9pzusLX612SJG+tSJqFyIh0pBVh3xs3b1nCALYMaLhj0xyjjCf7Atzdmbu25TTpfb CFJA== 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=zwE8SH/+V2YrvaYFTCcLFcP7Y/cwEZsV8wQ5VO9weX4=; b=DecQcYTu8HRplRmZMi1JZ59cjwfHh730U7nrFUq68nPJUmjzEb3VIdHWdGfsyw/5wC 5GEGhV56QSuwJvsvQFAv+e8/Qx1hvr0vtBFe4RZhFaWltLqnAId4Vv3412wxgWBOu5t1 /p6ejhg+LpG2ZEvSxhHY69HQMDOSvVtLZUO0RVohTvB+XQHWVLkKrrE/cciyn0zsbpiH bwcx3usqkQ5ZFtOIV/Zit1m8m9iecSkE87gYNpwAktcqrvVmAuUrjTgOKlof/jUrqxxN gjD0TgxVuRUk1acnj4qxhBusX0V2kIAgtut0iDyFZCB0YPOacsMKmURCqMIfWAkEA42a sgpQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5306If8FMbNQXyBPpLbLJrxKM5N7/ckJEgAMSoBQTEmzFrrMyo1i 1v0hjZciVlglqsSJM2lf0Uc= X-Google-Smtp-Source: ABdhPJx/IwSJ9TiDtocKKZuZCLiwfYYkNrn/KXtWcE83iMAIyq7dSQkXQFjgsXot+OeVyXYYtHS6pQ== X-Received: by 2002:a05:6808:690:: with SMTP id k16mr2082939oig.152.1630663223743; Fri, 03 Sep 2021 03:00:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:d1c1:: with SMTP id a1ls360087oos.4.gmail; Fri, 03 Sep 2021 03:00:22 -0700 (PDT) X-Received: by 2002:a4a:b34c:: with SMTP id n12mr2278822ooo.19.1630663222225; Fri, 03 Sep 2021 03:00:22 -0700 (PDT) In-Reply-To: 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:29162 Archived-At: ------=_Part_3402_82288823.1630663220955 Content-Type: multipart/alternative; boundary="----=_Part_3403_242423245.1630663220956" ------=_Part_3403_242423245.1630663220956 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 > > =20 > > *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org *Im=20 > Auftrag von *Vin Cent > *Gesendet:* Freitag, 3. September 2021 11:09 > *An:* pandoc-discuss > *Betreff:* LateX to epub -- label rendering > > =20 > > Hi, > > =20 > > 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. > > =20 > > 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. > > =20 > > Each chapter from my source starts with a label, such as : > > =20 > > \chapter{First chapter head} > > \markboth{}{I. First chapter head} > > \label{ch:un} > > =20 > > Foo bar > > =20 > > \chapter{Second chapter head} > > \markboth{}{II. Second chapter head} > > \label{ch:deux} > > =20 > > 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 > > =20 > > The result of this is a render with my label name being displayed into=20 > brackets. > > [ch:un] > > =20 > > My expectation is that the label is not displayed, but serves only=20 > anchors/links/navigation if a ref is defined pointing to it. > > =20 > > 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). > > =20 > > Cheers, > > =20 > > Vincent > > =20 > > --=20 > 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=20 > > . > --=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/7a388540-5381-4e98-bda9-ebcac91a20a7n%40googlegroups.com. ------=_Part_3403_242423245.1630663220956 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Denis,

Thanks for your reply and suggestion.

markdown rendering goes as follows :

<= div>
.

First chapte= r 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 1= 1: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 formats, say markdown? Or pandoc=E2=80=99s native format? That=E2=80= =99s always really helpful for debugging.

Denis

=C2=A0

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

=C2=A0

Hi,

=C2=A0

I'm quite new to pandoc, with some experience in= LateX.

I'm trying to convert a book (\documentclass{mem= oir} ) into a epub document.

=C2=A0

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

=C2=A0

Each chapter from my source starts with a label, suc= h as :

=C2=A0

= \chapter{First chapter head}

= \markboth{}{I. First chapter head}

= \label{ch:un}

=C2=A0

= Foo bar

=C2=A0

= \chapter{Second chapter head}

= \markboth{}{II. Second chapter head}

= \label{ch:deux}

=C2=A0

Which I compile with (I have removed a bunch of opti= on in order to just isolate my problem) :

pandoc -o ebook.epub epub.tex --epub-metadata=3Dmeta= data.xml --toc --toc-depth=3D2

=C2=A0

The result of this is a render with my label name be= ing displayed into brackets.

[ch:un]

=C2=A0

My expectation is that the label is not displayed, b= ut serves only anchors/links/navigation if a ref is defined pointing to it.=

=C2=A0

Can you suggest how I can achieve this result ?

I tried to look for this problem and found=C2=A0https://github.com/lierdakil/pandoc-crossref/issues/319 b= ut to be honnest, I'm too much a pandoc newb to understand that thread. I have tried quite a number of suggestions (adding the LUA script, adding = a similar yaml file, but this has changed nothing as far as my problem is c= oncerned).

=C2=A0

Cheers,

=C2=A0

Vincent

=C2=A0

--
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-discus...-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/84cefde8-0943-43e2-8b7a-96= efe6a0949cn%40googlegroups.com.

--
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/7a388540-5381-4e98-bda9-ebcac91a20a7n%40googlegroups.= com.
------=_Part_3403_242423245.1630663220956-- ------=_Part_3402_82288823.1630663220955--