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. 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 > deal with this automatically? > ________________________________________ > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag > 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 > ================== > > [\[ch:un\]]{#ch:un label="ch:un"} > > Foo bar > > Second chapter head > =================== > > [\[ch:deux\]]{#ch:deux label="ch:deux"} > > > On Friday, September 3, 2021 at 11:21:39 AM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote: > Don’t really know much about epub, but what happens if you go to other > formats, say markdown? Or pandoc’s native format? That’s always really > helpful for debugging. > Denis > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im Auftrag > 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 > 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 > < > https://groups.google.com/d/msgid/pandoc-discuss/84cefde8-0943-43e2-8b7a-96efe6a0949cn%40googlegroups.com?utm_medium=email&utm_source=footer > >. > > -- > 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 pandoc-discus...-/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 > < > https://groups.google.com/d/msgid/pandoc-discuss/7a388540-5381-4e98-bda9-ebcac91a20a7n%40googlegroups.com?utm_medium=email&utm_source=footer > >. > -- 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/53b2b5c9-985e-4a38-9884-c58b97bf0adfn%40googlegroups.com.