From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29182 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: Sun, 5 Sep 2021 22:15:43 -0700 (PDT) Message-ID: <5f5cf592-c5cb-42b9-89dd-e718519d57e6n@googlegroups.com> References: <84cefde8-0943-43e2-8b7a-96efe6a0949cn@googlegroups.com> <0e877773-9a0a-4b4d-8f8b-b2d3f62d9fc6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7506_297199821.1630905343774" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7684"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCT6LC6Q3QDBBAGI22EQMGQEKK3LKZI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 06 07:15:48 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mN6yw-0001m5-Og for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Sep 2021 07:15:46 +0200 Original-Received: by mail-ot1-f62.google.com with SMTP id t2-20020a9d7742000000b0051dd85217a3sf3958471otl.11 for ; Sun, 05 Sep 2021 22:15:46 -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=Ea7YDahAGU3BySgD4O2CbKUh72XCsBkj8DoPW2YMSTs=; b=fq6ZeWMtmtShBOP76FlkYi8rv8XKTHLnWQYlIZjqC6ebQYvZY4Z/STDN5B5C1FFKEy CNlvicwhfvjBnV+0v13Y2Gr7/xV6aZMeENBW7ltjlFN9BE3bPTilvnBgT/BDg8hSnIdw R/x33U3Ar56S0if9wyWJ7cjOBL08jilfxwqRsS82wt6SGRRnJi3wvKwXSeB2oyIXhWK7 dpRmlEOiLbjmpJ+0wDKkAgLF8vU3RDcicom7x2CQi7h051OUQSFQnhUBq3x46fTm8s87 56T2kTsRC38okpCs1kj7QEBBi8pdbye1FV2tkT1XMY9IVoWt53+BuZbZnee3vCZvO1AV ZGgw== 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=Ea7YDahAGU3BySgD4O2CbKUh72XCsBkj8DoPW2YMSTs=; b=Mb3NiJPOSL33wof3tj5/e/MwtR1s/LSteK7Q423uM0J6yvrRlqdXtSVzgWL4eE/dZL obz9ua+xfH8qMuRoc7yLW+bmcLbrAV9ACQwmB2yrNZWnc4uLf/lRqqb6hk8mbQDehvFA wQvyGwcQ7kKoVKJmCz1u45RcWAbetOei31lb/pW1I1BKR9gPpucQ6M493pjjYuej59PC 2xSlouZ7qTILVhioGn4ED731SPltU5ciAfL+LHg7FoTAN2KDAcu/AitEJzImEezIKxz+ 4vEIdh8aI72on+4BWluXuUxceP0IFAa9F4GzHJGEd2ypsArgqEoyscmhetoVjGGXGzdQ 2LWw== 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=Ea7YDahAGU3BySgD4O2CbKUh72XCsBkj8DoPW2YMSTs=; b=bAUtF0likutqjKad/ybCo3kTzBq7iTyWIZTYS3Lr9tmQpCMyomQ76erajC6mv7f0jp yrQyyTFFB1ad4JHCcAyXDIsaSV+pUiPXY8CukKBkAeb7DLnYSMSr5/V9htzzJjVwwTgX yZUBy0Q/Xw2fxl5YaP/THzQJbmNpsrPUYfNf/zkj1yZlCrZK0GSX4hTTgWEpMFSA46+i yot+X+HBJiwxWIQZt9h7wG02EwI2Nm4TPzyQAuxetCk5hMKmRDcKMu9Gh84xyDy+Uyn1 jH2WaoKK/JZUL9p4BMssBNloefpO49kHl4zstHlx7Ukup/GNcqnGlefMLrgZEmnVf5qR winQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533JH4UFZMJu2mn0wMOgCx8T5iV+1gxnYlD3RHNgrFOxL7tWM7Ac CiDXifbMd953McC/hEC4ZmM= X-Google-Smtp-Source: ABdhPJwJhwkqjR+0fMM+/DCTvJIjFG94wPNql+hyqqKhuitLeAi1a3jtrZtTe0+0XqT+5gLA8jWz2g== X-Received: by 2002:aca:2814:: with SMTP id 20mr7264980oix.89.1630905345843; Sun, 05 Sep 2021 22:15:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1e87:: with SMTP id n7ls1447604otr.4.gmail; Sun, 05 Sep 2021 22:15:44 -0700 (PDT) X-Received: by 2002:a05:6830:237c:: with SMTP id r28mr9521774oth.267.1630905344322; Sun, 05 Sep 2021 22:15:44 -0700 (PDT) In-Reply-To: <0e877773-9a0a-4b4d-8f8b-b2d3f62d9fc6n-/JYPxA39Uh5TLH3MbocFFw@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:29182 Archived-At: ------=_Part_7506_297199821.1630905343774 Content-Type: multipart/alternative; boundary="----=_Part_7507_180018000.1630905343774" ------=_Part_7507_180018000.1630905343774 Content-Type: text/plain; charset="UTF-8" I have tried the static version of pandoc distributed on the website (so this is now pandoc 2.14.2). For the record, the same problem still shows up with this version. However, this is no big deal for me, as I have an easy and unintrusive fix by simply changing line order of my .tex source On Monday, September 6, 2021 at 7:10:00 AM UTC+2 Vin Cent wrote: > For the record, your guess is correct. I'm using debian unstable's > version, which is currently 2.9.2.1. > > > On Friday, September 3, 2021 at 6:37:03 PM UTC+2 John MacFarlane wrote: > >> >> I'm guessing you're not using the most recent version of pandoc? >> (2.14.2) If not, try upgrading. >> >> >> Vin Cent writes: >> >> > 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 >> 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 >> > isolate my problem) : >> > pandoc -o ebook.epub epub.tex --epub-metadata=metadata.xml --toc >> > --toc-depth=2 >> > >> > 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 >> > 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 https://github.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 number of suggestions (adding the LUA script, adding a similar >> yaml >> > 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 "pandoc-discuss" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/84cefde8-0943-43e2-8b7a-96efe6a0949cn%40googlegroups.com >> . >> > -- 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/5f5cf592-c5cb-42b9-89dd-e718519d57e6n%40googlegroups.com. ------=_Part_7507_180018000.1630905343774 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have tried the static version of pandoc distributed on the website (so th= is is now pandoc 2.14.2).
For the record, the same problem still s= hows up with this version.
However, this is no big deal for me, a= s I have an easy and unintrusive fix by simply changing line order of my .t= ex source

On Monday, September 6, 2021 at 7:10:00 AM UTC+2 Vin Cent w= rote:
For the= record, your guess is correct. I'm using debian unstable's version= , which is currently=C2=A02.9.2.1.


On Friday, September 3, 2021 at= 6:37:03 PM UTC+2 John MacFarlane wrote:

I'm guessing you're not using the most recent version of pandoc= ?
(2.14.2) If not, try upgrading.


Vin Cent <irak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> 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 really=20
> 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=20
> found https://github.com/lierdakil/pandoc-crossr= ef/issues/319 but to be=20
> honnest, I'm too much a pandoc newb to understand that thread.= I have tried=20
> quite a number of suggestions (adding the LUA script, adding a sim= ilar yaml=20
> file, but this has changed nothing as far as my problem is concern= ed).
>
> Cheers,
>
> Vincent
>
> --=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/84ce= fde8-0943-43e2-8b7a-96efe6a0949cn%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/5f5cf592-c5cb-42b9-89dd-e718519d57e6n%40googlegroups.= com.
------=_Part_7507_180018000.1630905343774-- ------=_Part_7506_297199821.1630905343774--