ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MOving from MkII to MkIV / EPUB
@ 2013-06-14 20:54 Gerben Wierda
  2013-06-14 21:37 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Gerben Wierda @ 2013-06-14 20:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1654 bytes --]

Hello folks,

I have a ConTeXt Project for a small and simple book, that has the 'basic example' project structure with .../images, .../chapters, .../products etc. I use a Makefile to comppile the book when in the .../chapters directory, as attached below. I use "texexec --pdf" and probably ConTeXt MkII from the MacTeX 2012 distribution.

I'd like to make an EPUB from this book as well. I suspect that means going over to LuaTeX/MkIV and doing extra stuff. I got lost in the ConTeXt documentation (for as much as there is, old and new) and would appreciate an instruction on how to do this that does not suppose I am a ConTeXt wizard who is doing stuff like this daily. Is there such a thing?

Gerben


OPEN=echo
MODE=--mode=standalone
ONCE=--once

.SUFFIXES: .pdf .tex .open

.pdf.open:
        open $<

.tex.pdf:
        texexec --pdf ${MODE} ${ONCE} $<

IMAGEDIR=../images
MPDIR=../mp
PRODUCTSDIR=../products

TEXS=c_loosely.tex c_standard.tex c_problem.tex c_index.tex c_endnotes.tex \
        c_better.tex
OPENS=c_loosely.open c_standard.open c_problem.open c_better.open
PDFS=c_loosely.pdf c_standard.pdf c_problem.pdf c_better.pdf
CDISCRETEIMAGES=
CLOGICIMAGES=
BOOKIMAGES=     ${CDISCRETEIMAGES} ${CLOGICIMAGES}

#.PHONY: $(OPENS)

default:
        make ONCE="--once" book-open

full:
        make ONCE="" book-open

all:    $(PDFS)

clean:
        rm %*

all-open:       $(OPENS)

book-open: book
        open prd_book.pdf

book: prd_book.pdf

prd_book.pdf: ${PRODUCTSDIR}/prd_book.tex $(TEXS) $(BOOKIMAGES)
        make MODE="--mode=editor" ONCE="${ONCE}" ${PRODUCTSDIR}/prd_book.pdf


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4142 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: MOving from MkII to MkIV / EPUB
  2013-06-14 20:54 MOving from MkII to MkIV / EPUB Gerben Wierda
@ 2013-06-14 21:37 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2013-06-14 21:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 14 Jun 2013, Gerben Wierda wrote:

> Hello folks,
>
> I have a ConTeXt Project for a small and simple book, that has the 
> 'basic example' project structure with .../images, .../chapters, 
> .../products etc. I use a Makefile to comppile the book when in the 
> .../chapters directory, as attached below. I use "texexec --pdf" and 
> probably ConTeXt MkII from the MacTeX 2012 distribution.
>
> I'd like to make an EPUB from this book as well. I suspect that means 
> going over to LuaTeX/MkIV and doing extra stuff. I got lost in the 
> ConTeXt documentation (for as much as there is, old and new) and would 
> appreciate an instruction on how to do this that does not suppose I am a 
> ConTeXt wizard who is doing stuff like this daily. Is there such a 
> thing?

The first step will be make sure that your document compiles correctly 
with MkIV. Simply change `texexec` to `context` in your source file and 
see what happens. Most likely, you'll get some errors (font loading has 
changed, so has the name of some setups), which you'll have to correct 
one-by-one.

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-14 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-14 20:54 MOving from MkII to MkIV / EPUB Gerben Wierda
2013-06-14 21:37 ` Aditya Mahajan

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).