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
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
participants (2)
-
Aditya Mahajan
-
Gerben Wierda