From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29161 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: LateX to epub -- label rendering Date: Fri, 3 Sep 2021 09:21:32 +0000 Message-ID: References: <84cefde8-0943-43e2-8b7a-96efe6a0949cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_c5aefee88458436f8ef800629a5c7686unibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36655"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBH6SY6EQMGQEDOD5LWI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 03 11:21:38 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f191.google.com ([209.85.208.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mM5OE-0009L1-79 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 03 Sep 2021 11:21:38 +0200 Original-Received: by mail-lj1-f191.google.com with SMTP id a17-20020a2e7f11000000b001dbbb444489sf1979556ljd.0 for ; Fri, 03 Sep 2021 02:21:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1630660897; cv=pass; d=google.com; s=arc-20160816; b=pDa9rop2iaF2mq6rGwszUmVPYxvCq8wirBU9/NugKZ0gxG80nGfSc9pHVFk2OPO5A0 YeyeZLP2O7KFOHE4qT2MAdyTDxC47PT2RjraZ3M+uWPNxFYnb5KVRjjPZ2UYlF3sKwum o/VbQPH0sCBOu/STTx9nH8AGkxcKgapsQ2Gv0b1S76G/ig+kEVjv/zclriDtdbZm1lOA 7lEPqdpsJ7KfyrHtohcFv/X/JP30mkNP71ffHgHZ6ZIdj+aU1hyxOIGMOE2X+Gq9j+G+ Ct0dIJVb28ddgN3hSxV5tBMU1ecDhsBrFFoJ56LcxeT2HjxAvOk3HfqhJsrDFyo9CtNL bYUQ== 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=ybUnfRBF3BZZzXgsYUXvrmObp3ijA0fPHxwG4L/Ykrc=; b=fusjxStfg74nLEFPnmjjsUzHLQHcsBfj8kzZvoK59sMSB+clWl70JjNPcYzqwlywM5 seQlnHgVlx/iywdgg/RTWCp3uo4Q1i3ZLCc3MxfzAFA+2xHOnsYeB/48N/xZyFlKscUU wMnXg6THqgY1VlUgcCLv1fvODPUlNApA3cbotIryn7A6fF20bO0f7dmzNLLE2ya6Z7ji vngZ2b3SAOiXQoJSF7cpFw0z+tCkeUC63eMNg9ayIfKgaGyjG1FsUZ4PbJqHl2H1RVOs 9N6ZNE3/IFvBSp00zIrqj9YPHwWeB4S0EZRGP+wXOoWtDbW4xZuI78+cP9LJm0ulyFMb LUnA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:content-language :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ybUnfRBF3BZZzXgsYUXvrmObp3ijA0fPHxwG4L/Ykrc=; b=Zzm3mS2zC97Iy1mFpxRvwsz4RtEC/HjzlFhg/Cr8G56QROGdpzYb4eqtEVorVg7Fvv taL8HgKP4+s/cXtozbjlsTaj6toTnBIp4VFJWdCbuqBDB0FG9e2JyesanbcNtnYnFXBN izHi6LQiDDOFrqAmfFnt7K/N/RKHiteNFoFcitQR0eRhIoLxpTWXIh5GjkPgZwQyfWw8 ZVn2uDqRylOkwSFsKqTaSaiv6j9fQYpmJCdMu48RB6orAMk9sJZIWKSnud7j1CSl5si5 UquGcKeCiAyIntIkkH2KTofhteNKIMl7hxIir3uDSb4HEEd81iWpmkrm6spPYlkTnkdk 8ccw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:accept-language :content-language:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ybUnfRBF3BZZzXgsYUXvrmObp3ijA0fPHxwG4L/Ykrc=; b=dumijXel1Lu/2lHrjb+fW74s3vjkl8WtJBwSSaOlwuUep0dmGD5rZJyk2bkEtm/lCf KU/d4MmLNv2hbrurmKOSKsiSAsyM9EuQS61XwQL+9Il+uxInWPE3BCX8nhlijlopqsY6 xA64kM+DQPO1EqNyG4pQEJJPhMJ15BFWlv8ggbQmVT49pDnii0u5R5asCEskSdo0qM2l IjUNW+XFMPTdJF246qz5ZTdR2smmU8FuL+huw4ni8uSYKGkYMolf5tuz+dRUf/Iv/XcR 1/RIqeJdeh5n2KVjlXYXtkTPH0ecAbO Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531Ix6bfIgXD0mhFSMhp0nuJuEVUdpup3Hc2luETNzFByJeofipn O7HvWKm5tqvNqhwRGouxiec= X-Google-Smtp-Source: ABdhPJyix2AOo2bI+ROsResQMD6zORrfq1Hp4+masEuEUfyJm/lS8Bx2/sHNgCfg9qcvZ2/e1/4OQQ== X-Received: by 2002:a2e:86d6:: with SMTP id n22mr2178701ljj.416.1630660897675; Fri, 03 Sep 2021 02:21:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac2:55b7:: with SMTP id y23ls111946lfg.1.gmail; Fri, 03 Sep 2021 02:21:34 -0700 (PDT) X-Received: by 2002:a05:6512:3a84:: with SMTP id q4mr2063399lfu.543.1630660894413; Fri, 03 Sep 2021 02:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630660894; cv=none; d=google.com; s=arc-20160816; b=RVn7foI/IPXwB7XKaTwX6mem816SX0kJwB5fVOm1Yf5z45BXjkaWismpTMDcBr1CcC b366HRfUqHGgLre7qJ7zEDOT7I1l/otCzouoip0WanOBGt/yaK92Ocis4HhmGP7zuu3x aylY6MvxTNWDBubuvVOxOlaek+CX3wzWBk9mVwOxS85PVDwoC+eIX0YFevU0GnshEJGS RhzlFFtbUYyn/3J1495YJIdXnU/dG3vxMBE6BJ4EFh0Kl5lP0Nx1od8TeONom5PUWyUh 3i+pJMLVFC+s1s7oazumGATxylz4pn381zB9VZPUGb+F3NIjL/UCfEP1NDyaXXlnBqKY tbsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from; bh=fpCP7C4iFOxkr2mE2zDcekKhvZf/uSt0tepiq0eMtYI=; b=IgAQvrLDv80CWtofyH1GRgDOXDGaWo/BqtLqq+nZwbH2uDuY4Dm7WNhWf2ANoZL+g2 /CAJPsuYZm5CUwdtyuZF+MFtGSCcgERZILBvqXFyaZ6vhYDygoiMzllacUa0kSkO8a9k 6sWeE7r7u8ONlECRFkVvV2wtQA5x7IGCNLKrSj4raMv/K/khcVE/EEfSI2KUDunReeet MbIykQ7apC6/EYJW+Cq7eS9mfw6pCpFuOmuXjs2+vUgMEjvai6z39ftVIHnWs5kZ0BuT Jo4gdulyWIYJejCX4XWhj4MXrX7sdilDY9O1m7fMZ+e/+ww2nI97o+ASYTfOG6P6q9+4 6Jlg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb3.unibe.ch (mailhub-lb3.unibe.ch. [130.92.0.84]) by gmr-mx.google.com with ESMTPS id f16si227174ljj.3.2021.09.03.02.21.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 02:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) client-ip=130.92.0.84; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb3.unibe.ch (Postfix) with ESMTPS id E7ED05000A8 for ; Fri, 3 Sep 2021 11:21:32 +0200 (CEST) Thread-Topic: LateX to epub -- label rendering Thread-Index: AQHXoKNoYEHAej8q7UWdpdbA8+V+mauSCKOg In-Reply-To: <84cefde8-0943-43e2-8b7a-96efe6a0949cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:29161 Archived-At: --_000_c5aefee88458436f8ef800629a5c7686unibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Don=E2=80=99t really know much about epub, but what happens if you go to ot= her formats, say markdown? Or pandoc=E2=80=99s native format? That=E2=80=99= s always really helpful for debugging. Denis Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag 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 iso= late my problem) : pandoc -o ebook.epub epub.tex --epub-metadata=3Dmetadata.xml --toc --toc-de= pth=3D2 The result of this is a render with my label name being displayed into brac= kets. [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/pan= doc-crossref/issues/319 but to be honnest, I'm too much a pandoc newb to un= derstand that thread. I have tried quite a number of suggestions (adding th= e LUA script, adding a similar yaml file, but this has changed nothing as f= ar 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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. --=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/c5aefee88458436f8ef800629a5c7686%40unibe.ch. --_000_c5aefee88458436f8ef800629a5c7686unibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Don=E2=80= =99t really know much about epub, but what happens if you go to other forma= ts, say markdown? Or pandoc= =E2=80=99s native format? That=E2=80=99s always really helpful for debuggin= g.

Denis

 

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

 

Hi,

 

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

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, suc= h 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 opti= on in order to just isolate my problem) :

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

 

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

[ch:un]

 

My expectation is that the label is not displayed, b= ut 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://git= hub.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 c= oncerned).

 

Cheers,

 

Vincent

 

--
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-d= iscuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/c5aefee88458436f8ef800629a5c7686%40unibe.ch.
--_000_c5aefee88458436f8ef800629a5c7686unibech_--