From: Patrick Kenny <ptmkenny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Suppressing table of contents & cover when converting from ePub to ConTeXt
Date: Mon, 29 Jul 2019 08:51:04 -0700 (PDT) [thread overview]
Message-ID: <a269f8c5-b78e-4d7b-835c-0424f3299c14@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1880 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 8782 bytes --]
next reply other threads:[~2019-07-29 15:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-29 15:51 Patrick Kenny [this message]
[not found] ` <a269f8c5-b78e-4d7b-835c-0424f3299c14-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-07-29 16:52 ` John MacFarlane
[not found] ` <m2sgqoeqbo.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-07-30 18:23 ` Patrick Kenny
[not found] ` <a117ca6a-2049-4eab-9ef6-9c217c5460f2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-07-31 16:07 ` John MacFarlane
[not found] ` <m27e7yi3wt.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-07-31 17:53 ` Patrick Kenny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a269f8c5-b78e-4d7b-835c-0424f3299c14@googlegroups.com \
--to=ptmkenny-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).