On 18 Mar 2015, at 08:46, Hans Hagen
On 3/18/2015 7:34 AM, Gerben Wierda wrote:
On 18 Mar 2015, at 02:14, Hans Hagen
mailto:pragma@wxs.nl> wrote: On 3/17/2015 10:33 PM, Gerben Wierda wrote:
On 17 Mar 2015, at 16:51, Hans Hagen
mailto:pragma@wxs.nl> wrote: On 3/17/2015 3:41 PM, Gerben Wierda wrote:
Nobody?
On 15 Mar 2015, at 22:12, Gerben Wierda
mailto:Gerben.Wierda@rna.nl> wrote: > Now that I have my book project basically running on mkiv (the > layout probably has a few problems left, the main one currently > being extra whitespace after a chapter heading compared to mkii), > I’d like to try producing ePUB from it. > > ConTeXtgarden says I have to add a backend and points me to the > info on the standard project structure (which I use), but there I > don’t find anything about a backend. The extended example says > that starting january 2015, things have changed with ePUB, which > probably also applies to me as I only recently started with a > fresh download of a current ConTeXt mkiv. > > So, can someone tell me what I need to do to get a basic ePUB output?
\setupbackend [export=yes]
more on wiki
The wiki doesn’t really help. Am I supposed to create another product file in …/products?
no, just enable it ... export files end up in a subpath
I did add this to the environment file and tried to create an ePub for the whole book and for an individual chapter, but no success yet:
luna-wifi:chapters gerben$ (. /usr/local/src/ConTeXt/tex/setuptex && mtxrun --script epub --make c_loosely.specification) Setting "/usr/local/src/ConTeXt/tex" as ConTeXt root.
mtx-epub | unknown specificaton file 'c_loosely.specification-export/c_loosely.specification-pub' for 'c_loosely.specification' luna-wifi:chapters gerben$ (. /usr/local/src/ConTeXt/tex/setuptex && mtxrun --script epub --make prd_book.specification) Setting "/usr/local/src/ConTeXt/tex" as ConTeXt root.
mtx-epub | unknown specificaton file 'prd_book.specification-export/prd_book.specification-pub' for 'prd_book.specification'
What am I missing? What is a specification file?
you process the tex file as normal .. that will produce a specification file that will be used if you use mtxrun --script epub later (the call is mentioned at the end of a tex run that has the export enabled)
Ha, I’ve got my first ePUB! (. /usr/local/src/ConTeXt/tex/setuptex && context --mode=editor ../products/prd_book.tex) (. /usr/local/src/ConTeXt/tex/setuptex && mtxrun --script epub --make "prd_book") Now, it’s time to see how I can tweak the ePUB. Things I would like to do: - The quotes that now appear on the LHS page facing the first page of a chapter should instead appear on the top of the RHS new chapter page above the heading - manage footnotes. Probably best is to have them at the end of the chapter when producing for ePub. Basically, I need to know what to do if the structure of my document differs between PDF and ePUB. - manage the index (empty now) - manage bibliographic references (empty now) And of course I need to look into CSS and stuff to create a nice ePUB G
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________