I tried to generate an epub document using ConTeXt following the recipe on the wiki. Didn't work. So, I tried running the export-example.tex file that comes with the distribution, unmodified. Same bad results. Cover is not generated TOC is not generated (though it is noted this might be the state of the export) Sectioning doesn't happen. Paragraphing doesn't happen. The resultant epub file cannot even be opened with FBReader. Importing the epub into Sigil shows one big blob of text, with only the between word spacing that's present in the source file. The \quotation{} markup did get turned into quotation marks, chapter numbers were generated and the rest of the markup was stripped out. Same behavior with both the TeXLive 2012 version of ConTeXt and a quite recent beta. Up-to-date Ubuntu 12.04 Linux Escherton 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:32:50 UTC 2012 i686 i686 i386 GNU/Linux What am I doing wrong? -- Bill Meahan Westland, Michigan USA
Am 15.11.2012 um 19:58 schrieb Bill Meahan
I tried to generate an epub document using ConTeXt following the recipe on the wiki. Didn't work. So, I tried running the export-example.tex file that comes with the distribution, unmodified. Same bad results.
Cover is not generated TOC is not generated (though it is noted this might be the state of the export) Sectioning doesn't happen. Paragraphing doesn't happen. The resultant epub file cannot even be opened with FBReader.
Importing the epub into Sigil shows one big blob of text, with only the between word spacing that's present in the source file. The \quotation{} markup did get turned into quotation marks, chapter numbers were generated and the rest of the markup was stripped out.
Same behavior with both the TeXLive 2012 version of ConTeXt and a quite recent beta.
Up-to-date Ubuntu 12.04
Linux Escherton 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:32:50 UTC 2012 i686 i686 i386 GNU/Linux
What am I doing wrong?
You have to tag paragraphs with \startparagraph … \stopparagraph which are converted to <p> and </p> otherwise you get <br/> between paragraphs. Wolfgang
On 11/15/2012 02:24 PM, Wolfgang Schuster wrote:
You have to tag paragraphs with
\startparagraph … \stopparagraph
which are converted to <p> and </p> otherwise you get <br/> between paragraphs.
Wolfgang
Oh, my! I'll have to go back and change hundreds of paragraphs! :( What about the chapter headings, mucked up metadata &c? I am using \startchapter..\stopchapter already. -- Bill Meahan Westland, Michigan USA
Dnia 2012-11-15, o godz. 13:58:29
Bill Meahan
I tried to generate an epub document using ConTeXt following the recipe on the wiki. Didn't work. So, I tried running the export-example.tex file that comes with the distribution, unmodified. Same bad results.
Cover is not generated TOC is not generated (though it is noted this might be the state of the export) Sectioning doesn't happen. Paragraphing doesn't happen. The resultant epub file cannot even be opened with FBReader.
Importing the epub into Sigil shows one big blob of text, with only the between word spacing that's present in the source file. The \quotation{} markup did get turned into quotation marks, chapter numbers were generated and the rest of the markup was stripped out.
Same behavior with both the TeXLive 2012 version of ConTeXt and a quite recent beta.
Up-to-date Ubuntu 12.04
Linux Escherton 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:32:50 UTC 2012 i686 i686 i386 GNU/Linux
What am I doing wrong?
http://archive.contextgarden.net/message/20120809.130943.604f5b22.en.html Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
On Thu, 15 Nov 2012, Bill Meahan wrote:
I tried to generate an epub document using ConTeXt following the recipe on the wiki. Didn't work. So, I tried running the export-example.tex file that comes with the distribution, unmodified. Same bad results.
Cover is not generated TOC is not generated (though it is noted this might be the state of the export) Sectioning doesn't happen. Paragraphing doesn't happen. The resultant epub file cannot even be opened with FBReader.
Importing the epub into Sigil shows one big blob of text, with only the between word spacing that's present in the source file. The \quotation{} markup did get turned into quotation marks, chapter numbers were generated and the rest of the markup was stripped out.
Same behavior with both the TeXLive 2012 version of ConTeXt and a quite recent beta.
What am I doing wrong?
Have you considered using pandoc to generate epub? If your text is relatively simple (no multiline math, no fancy image scaling, no complicated tables, etc.), then Markdown is a reasonable input format. You can use pandoc to translate the text to multiple output formats (including ConTeXt). In general, I have found pandoc's XHTML export to be more predictable than that of ConTeXt. I have used pandoc's epub export only for short articles, but from what I remember, it does handle cover images and toc correctly. Aditya
On 11/15/2012 07:13 PM, Aditya Mahajan wrote:
Have you considered using pandoc to generate epub?
If your text is relatively simple (no multiline math, no fancy image scaling, no complicated tables, etc.), then Markdown is a reasonable input format. You can use pandoc to translate the text to multiple output formats (including ConTeXt).
In general, I have found pandoc's XHTML export to be more predictable than that of ConTeXt. I have used pandoc's epub export only for short articles, but from what I remember, it does handle cover images and toc correctly.
Aditya __
Nice idea Aditya but in this particular case it won't suffice. I'm working on a rather long novel, not a technical document, and my /primary/ target electronic format is PDF. That PDF can be distributed electronically or submitted directly to a printer. In the current market, however, so many people want to read books on their smartphone, dedicated ebook reader or tablet an author really limits their market if they don't distribute an ebook version. Of course, the two primary ebook formats (in terms of market) are epub and Kindle which is easy to generate from an epub. Sticking to ConTeXt allows me to generate PDF, Process PDF and epub from a single source. I can easily touch up the epub in Sigil if I need to. For this kind of "document," typography and excellent typesetting are extremely important (in the printed/PDF version, anyway). ConTeXt gives me that. I'll keep pandoc in mind for some other documents, though. Thanks for the lead. -- Bill Meahan Westland, Michigan USA
On Thu, 15 Nov 2012, Bill Meahan wrote:
On 11/15/2012 07:13 PM, Aditya Mahajan wrote:
Have you considered using pandoc to generate epub?
If your text is relatively simple (no multiline math, no fancy image scaling, no complicated tables, etc.), then Markdown is a reasonable input format. You can use pandoc to translate the text to multiple output formats (including ConTeXt).
In general, I have found pandoc's XHTML export to be more predictable than that of ConTeXt. I have used pandoc's epub export only for short articles, but from what I remember, it does handle cover images and toc correctly.
Aditya __
Nice idea Aditya but in this particular case it won't suffice.
I'm working on a rather long novel, not a technical document, and my /primary/ target electronic format is PDF. That PDF can be distributed electronically or submitted directly to a printer. In the current market, however, so many people want to read books on their smartphone, dedicated ebook reader or tablet an author really limits their market if they don't distribute an ebook version.
Of course, the two primary ebook formats (in terms of market) are epub and Kindle which is easy to generate from an epub. Sticking to ConTeXt allows me to generate PDF, Process PDF and epub from a single source. I can easily touch up the epub in Sigil if I need to.
For this kind of "document," typography and excellent typesetting are extremely important (in the printed/PDF version, anyway). ConTeXt gives me that.
Pandoc does generate ConTeXt output as well, which you can then process the usual way to generate pdf. The advantage of pandoc is that **in addition** to latex/context output, you can generate docbook/epub/html/doc/troff/ and other output formats as well. Aditya
On 11/15/2012 11:17 PM, Aditya Mahajan wrote:
Pandoc does generate ConTeXt output as well, which you can then process the usual way to generate pdf.
The advantage of pandoc is that **in addition** to latex/context output, you can generate docbook/epub/html/doc/troff/ and other output formats as well.
Aditya
I'm installing pandoc now. Looks pretty interesting. I suppose it's time I learned (extended) Markdown anyway. Thank goodness "emacs has a mode for that." :) Thanks for the info! -- Bill Meahan Westland, Michigan USA
On Fri, 16 Nov 2012, Bill Meahan wrote:
On 11/15/2012 11:17 PM, Aditya Mahajan wrote:
Pandoc does generate ConTeXt output as well, which you can then process the usual way to generate pdf.
The advantage of pandoc is that **in addition** to latex/context output, you can generate docbook/epub/html/doc/troff/ and other output formats as well.
Aditya
I'm installing pandoc now. Looks pretty interesting. I suppose it's time I learned (extended) Markdown anyway. Thank goodness "emacs has a mode for that." :)
If you are using emacs, keep an eye for the org mode reader in pandoc. https://github.com/jgm/pandoc/issues/476 Aditya
Please try the following example: -- start code -- \setupbackend[export=yes,xhtml=test_00.xhtml] \mainlanguage[de] \language[de] \setupexport [title={A nice book}, author={Andy Tom}, firstpage={huhn.jpg}, ] \starttext Hello world! \stoptext -- end code -- The firstpage export value (huhn.jpg) is your cover image. Please put huhn.jpg or something else in the same directory as your tex file. I named the tex=file test_00.tex in my case. After compiling with the latest context, you can run 'mtxrun --script epub --make test_00.specification' to generate the epub file. Please note two more things: (1) The mtx-epub script was broken a couple of days ago. Well not actually broken, but somehow an old version sneaked in. If the author names and such do not get exported into the epub, this might as well be the case for you. The latest one (ver: 2012.11.14 11:37 MKIV fmt: 2012.11.16) works fine again. (2) Calibre and other readers as well as e.g. the ipad have some nasty caching feature. In case you change little things and try to reload the same book in your reader, it might still show the old one from the cache. I found, that deleting the 'old' book first works most of the times. I just started working on the epub output of my lecture notes again, since there were no readers able to output math until 2 weeks ago. If I find some time later, I will update the epub page in the wiki. I hope that helps. Andy On Nov 15, 2012, at 7:58 PM, Bill Meahan wrote:
I tried to generate an epub document using ConTeXt following the recipe on the wiki. Didn't work. So, I tried running the export-example.tex file that comes with the distribution, unmodified. Same bad results.
Cover is not generated TOC is not generated (though it is noted this might be the state of the export) Sectioning doesn't happen. Paragraphing doesn't happen. The resultant epub file cannot even be opened with FBReader.
Importing the epub into Sigil shows one big blob of text, with only the between word spacing that's present in the source file. The \quotation{} markup did get turned into quotation marks, chapter numbers were generated and the rest of the markup was stripped out.
Same behavior with both the TeXLive 2012 version of ConTeXt and a quite recent beta.
Up-to-date Ubuntu 12.04
Linux Escherton 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:32:50 UTC 2012 i686 i686 i386 GNU/Linux
What am I doing wrong?
-- Bill Meahan Westland, Michigan USA
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Supposedly. I did not try it yet. http://support.apple.com/kb/HT5321 Andy On Nov 16, 2012, at 8:13 AM, luigi scarso wrote:
On Fri, Nov 16, 2012 at 7:49 AM, Andy Thomas
wrote: I just started working on the epub output of my lecture notes again, since there were no readers able to output math until 2 weeks ago. Is there any reader able to read mathml ?
-- luigi
___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 11/16/2012 02:13 AM, luigi scarso wrote:
I just started working on the epub output of my lecture notes again, since there were no readers able to output math until 2 weeks ago.
Is there any reader able to read mathml ?
-- luigi
If you use Google Chrome (Chromium), you can get Readium from the Google Web Store. It's the IPDF's reference implementation of the epub3 standard including MathML -- Bill Meahan Westland, Michigan USA
On Sat, Nov 17, 2012 at 12:41 AM, Bill Meahan
On 11/16/2012 02:13 AM, luigi scarso wrote:
I just started working on the epub output of my lecture notes again, since there were no readers able to output math until 2 weeks ago.
Is there any reader able to read mathml ?
-- luigi
If you use Google Chrome (Chromium), you can get Readium from the Google Web Store. It's the IPDF's reference implementation of the epub3 standard including MathML
IDPF'reference ( IPDF is the output of the new iTEX from Knuth, see http://tug.org/TUGboat/tb31-2/tb98knut.pdf)
On Sat, 17 Nov 2012 08:08:56 +0100
luigi scarso
( IPDF is the output of the new iTEX from Knuth, see http://tug.org/TUGboat/tb31-2/tb98knut.pdf)
(The beginning sounds a bit like a description of ConTeXt!) Earlier, I believe you shared the video with us! Alan
On 11/17/2012 02:08 AM, luigi scarso wrote:
IDPF'reference ( IPDF is the output of the new iTEX from Knuth, see http://tug.org/TUGboat/tb31-2/tb98knut.pdf)
TYPO ALERT! TYPO ALERT! TYPO ALERT! That should have been *IDPF* (International Digital Publishing Forum) which is the group that defines the epub standard. Some day I'm goint to learn how to tpye. ;) -- Bill Meahan Westland, Michigan USA
On Sat, Nov 17, 2012 at 5:48 PM, Bill Meahan
On 11/17/2012 02:08 AM, luigi scarso wrote:
IDPF'reference ( IPDF is the output of the new iTEX from Knuth, see http://tug.org/TUGboat/tb31-2/**tb98knut.pdfhttp://tug.org/TUGboat/tb31-2/tb98knut.pdf )
TYPO ALERT! TYPO ALERT! TYPO ALERT!
That should have been *IDPF* (International Digital Publishing Forum) which is the group that defines the epub standard.
Some day I'm goint to learn how to tpye. ;)
:-) Anyway thank for the link.
Hi All, First off, I do not work with ConTexT, but with Lu(La)TeX. I follow this list looking for pointers. The way I understand how ConTexT produces output for epubs is that it just creates HTML. If ConTexT (or LuaTex) is to produce output for use in epubs it should map the ConTexT structures to html and the epub format. That is, it should produce separate files for each chapter. Furthermore, it should be able to create files for the spine, ncx, css, and cover page, etc automatically. This with reduce the amount of postprocessing Considerable. Furthermore, the method could be design to not only epub, but a mobi format. I have just started out on my own ideas for a Lau(La)Tex way of using it for the creation of ebooks and pdfs from the same source. Just my two cents, worth. Sorry, if I am creating noise here. regards Keith.
participants (9)
-
Aditya Mahajan
-
Alan BRASLAU
-
Andy Thomas
-
Bill Meahan
-
Keith J. Schultz
-
luigi scarso
-
Marcin Borkowski
-
Wolfgang Schuster
-
Zenlima