From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23179 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Kenny Newsgroups: gmane.text.pandoc Subject: Suppressing table of contents & cover when converting from ePub to ConTeXt Date: Mon, 29 Jul 2019 08:51:04 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8495_537867942.1564415464768" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="138888"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDLYD7NCUUKBB2NL7TUQKGQETLLJ3LA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 29 17:51:08 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hs7vY-000Zze-1d for gtp-pandoc-discuss@m.gmane.org; Mon, 29 Jul 2019 17:51:08 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id f11sf34326190otq.3 for ; Mon, 29 Jul 2019 08:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=GZUlLIEwjmMt8SMmX5AoM+jB9cXiy7TWojuWmZud6fE=; b=dcvRfnQ2kCmcaGffNZ/Dn4Bj3QiemTYr6vwpHChslYYdcIgQM7YSMk8S3lhKOD+fJU w0o+ghCm6IHf6qFfaVseJgMIPsRxBVHyG+wolC7sBDZX/nGNRHcnmzWhSFWvEeMcwiyz I/WWO3/9RfpLF54Y9cgYlU09heGP3PKoBFRFWLjLgl0v7RHPpBLkqKCxKbQvJtcq0MoE bgg9U0rB2t3teFpuzULVNTTd0X+p2jhetZnE8OMw3mjgLWoLWls1ac9WzZ+1BJ60jF+d 001oHaK1ta4WwqIciuSIotARPC94uRuW0pZ1AHdjuvsEmXsu0V9G+sCTpSVLuRS736oo Pf/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=GZUlLIEwjmMt8SMmX5AoM+jB9cXiy7TWojuWmZud6fE=; b=t74gkPqDCTMAtGHl+Q4hTmZmWseVxp3zyjSs2/EYYJWF11zX75fY9ct04HxJnUaoqI rWB00KYUVUO00tSNlYdnYMFhCVS39aup19pbmk+WedU61JX8Q6LFITT32RD7YiotRPKp j3pV5FcN/3OuSpNqL6doTKUT8vZxSVfJzXachoOIlVV9eBp/abVku/fwAhArDM2TL7Es FQZhRUPntfzoJR4ZlKIc4ocQl1umr1xvJR8sFOoQbypIm+x5AGiM3CpgoictR3xqOhDC oVWX69Y2cwQP2dAD64/tnFeLzWefReyzoY5PaGcnRrPu/Bk/Z3na4VP+eUaK8D1d7LfH 8QAQ== 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: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=GZUlLIEwjmMt8SMmX5AoM+jB9cXiy7TWojuWmZud6fE=; b=fXOeCZqgs7BI1Sy9Ew4PI+Gv9UkzW76aWxSqKgJ3nwA/Zj048j4pm4EH8HVGsVBwQZ ktJSps3mjFCs8K19zF+1o8drQuXNftH2pzLQyghptjZ/c8w+rBx3Fm4PtKEclMUe7/0w BneVzRoBx9A18gWxzMRDbwwvoK6oQl1BwZQwCE5mI51q8QWOlaElCyx0LpbUYw8oCUTX sV96d7kModwblsT4A8zlazRTCIxF5sJyg+Wpe4nFF2Km3pf6TketLb03INycwdQkIo9i wvMv9Giz7nj1hQUXNlR0CiOmQks0HjzKZXP0QAc9g2NVEUYY0Ya0wwsxUxDGsPt9TZzw Wo6w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAW+ljgn3Zp7AC83QLea1vFENy9xK+SX2e+Rae5oHllRtK/uvs0U kWFvHNyrmoZbHa5jTflQRXo= X-Google-Smtp-Source: APXvYqxX7/7cFy78ShMbFlTVRbc4vA5nsKLVqQpZYoxy0MOmLl+7HWgbucXDm85tMaFOcjInEj2+Xw== X-Received: by 2002:a05:6830:93:: with SMTP id a19mr62158023oto.127.1564415466656; Mon, 29 Jul 2019 08:51:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:71d0:: with SMTP id z16ls11815101otj.2.gmail; Mon, 29 Jul 2019 08:51:05 -0700 (PDT) X-Received: by 2002:a9d:6517:: with SMTP id i23mr12415454otl.134.1564415465265; Mon, 29 Jul 2019 08:51:05 -0700 (PDT) X-Original-Sender: ptmkenny-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.org gmane.text.pandoc:23179 Archived-At: ------=_Part_8495_537867942.1564415464768 Content-Type: multipart/alternative; boundary="----=_Part_8496_1455154862.1564415464769" ------=_Part_8496_1455154862.1564415464769 Content-Type: text/plain; charset="UTF-8" I'm trying to convert an ePub (made using Pandoc) into a PDF using ConTeXt. I'm new to ConTeXt so I may be missing something obvious. I can convert the ePub to ConTeXt, but Pandoc fails to convert the table of contents and cover page directly, so I want to suppress that part of the conversion. Specifically, there are two problems: 1. In the output PDF, there are two tables of contents, the ePub table of contents (the same as my ePub file, which I want) and a second table of contents that just has two items (1. Cover, 2. Table of contents). Also, the links in the ePub table of contents don't work. 2. In the output PDF, the cover image appears twice, once on the first page, and again on the second page. So I want to somehow disable the table of contents and cover conversion if that's possible. When I add the ConTeXt default table of contents with \placecontent the links work fine. Here's the command I'm using. pandoc -f epub -t context -o main.tex mybook_epub.epub And here's the second table of contents that I want to prevent from being added: \startitemize[n,packed] \item \useURL[url1][text/cover.xhtml][][Cover]\from[url1] \item \goto{Table of contents}[nav.xhtmlux5cux23toc] \stopitemize And here's what happens with my cover: {\externalfigure[media/cover.jpg]} \reference[cover.xhtmlux23cover-image]{}% {\externalfigure[media/cover.jpg]} Any hints for how to prevent this part of the conversion would be much appreciated. -- 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/a269f8c5-b78e-4d7b-835c-0424f3299c14%40googlegroups.com. ------=_Part_8496_1455154862.1564415464769 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm trying to convert an ePub (made using Pandoc)= into a PDF using ConTeXt. I'm new to ConTeXt so I may be missing somet= hing obvious.

I can convert the ePub to ConTeXt, b= ut Pandoc fails to convert the table of contents and cover page directly, s= o I want to suppress that part of the conversion.

Specifically, there are two problems:

1. In the output PDF, there are two tables of conten= ts, the ePub table of contents (the same as my ePub file, which I want) and= a second table of contents that just has two items (1. Cover, 2. Table of = contents). Also, the links in the ePub table of contents don't work.
2. In the output PDF, the cover image appears twice, once on the fi= rst page, and again on the second page.

So I= want to somehow disable the table of contents and cover conversion if that= 's possible.

When I add the ConTeXt default ta= ble of contents with
=
\placecontent
the links work fine.

Here's the command I'm using.
pandoc -f epub <= /span>-t context -o main.tex mybook_epub.epub

= And here's the second table of contents that I want to prevent from bei= ng added:

\startitemize[n,= packed]
\item
=C2=A0
\useURL[url1][text/cover.xhtml][][Cover]\from[url1]=
\item
=C2=A0 =
\goto
{Table of contents}[nav.xhtmlux5cux23toc]
\sto= pitemize

And here's what happens = with my cover:

{\externalfigure[media/cover= .jpg]}


\
reference[cover.xhtmlux23cover-image]{}%
{\= externalfi= gure[media/cover.jpg]}

Any hints for how = to prevent this part of the conversion would be much appreciated.

--
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/a269f8c5-b78e-4d7b-835c-0424f3299c14%40googlegroups.co= m.
------=_Part_8496_1455154862.1564415464769-- ------=_Part_8495_537867942.1564415464768--