If this has been asked before, my apologies. Is there a style file for formatting PDFs from ConTeXt for reading on an iPad? So far I've just used \setuppapersize[A4][A4] \setuplayout[backspace=20mm, width=160mm, topspace=20mm, top=0mm, header=0mm, footer=10mm, bottomspace=20mm,bottom=0mm, textheight=250mm] which works fine - for printing - but isn't optimized for the iPad. If anybody has any suggestions or examples, I'd be very grateful of them! Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew
2012/3/6 Alasdair McAndrew
Is there a style file for formatting PDFs from ConTeXt for reading on an iPad?
make an ebook instead. PDF files aren’t for screen reading, but for printing. semantic markup like it is used in ebook formats is much better suited for screens of all sizes.
Yes, but what ebook formats handle mathematics and diagrams?
-A.
On Tue, Mar 6, 2012 at 10:36 PM, Philipp A.
2012/3/6 Alasdair McAndrew
Is there a style file for formatting PDFs from ConTeXt for reading on an iPad?
make an ebook instead. PDF files aren’t for screen reading, but for printing.
semantic markup like it is used in ebook formats is much better suited for screens of all sizes.
___________________________________________________________________________________ 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
___________________________________________________________________________________
-- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew
On Tue, Mar 06, 2012 at 10:40:20PM +1100, Alasdair McAndrew wrote:
Yes, but what ebook formats handle mathematics and diagrams?
Plus the poor layout support in almost all ebook readers (brain dead paragraph builder, no hyphenation, no OpenType support etc. etc. they are usually pieces of junk for any remotely complex text layout job). Regards, Khaled
In article <20120306134022.GB29209@khaled-laptop>,
Khaled Hosny
On Tue, Mar 06, 2012 at 10:40:20PM +1100, Alasdair McAndrew wrote:
Yes, but what ebook formats handle mathematics and diagrams?
Plus the poor layout support in almost all ebook readers (brain dead paragraph builder, no hyphenation, no OpenType support etc. etc. they are usually pieces of junk for any remotely complex text layout job).
It's worse than pre-TeX printed books. Which makes me wonder: is anyone in the world addressing this? Are there people in the TeX community involved in the standardization processes (say, Epub3, but also the various W3C specifications), who could push forward ideas from TeX, like minimum requirements for the algorithms that rendering engines should use? These questions (together with sighs) arise every time I see a web page especially with mathematical notation… Nicola
On Mar 7, 2012, at 3:34 AM, Nicola wrote:
It's worse than pre-TeX printed books. Which makes me wonder: is anyone in the world addressing this? Are there people in the TeX community involved in the standardization processes (say, Epub3, but also the various W3C specifications), who could push forward ideas from TeX, like minimum requirements for the algorithms that rendering engines should use? These questions (together with sighs) arise every time I see a web page especially with mathematical notation…
The problem is, since the rendering is based on HTML, people just grab a web browser framework and build on that to make an ebook viewer. Here's a post I wrote up once comparing a specific ePub display on a specific viewing program w/ a hand-tweaked Plain TeX version: http://www.mobileread.com/forums/showpost.php?p=1371218&postcount=7
those who're curious may find it educational to compare my .pdf w/ this ePub version to see the sort of typographic infelicities which even in the best ePub version can't be controlled for ---
- one word last lines - # of lines on a page constantly changing to prevent widows / orphans - overly loose line on the middle of pg. 20 - 3 word stack on pg. 21 (meditation/Meditation) - 2 word stack on pg. 32 (black) - 2 word stack on pg. 37 (the) Twice! - six word river on pg. 40 (the/their/the/the/its/we) - 2 word stacks on pg. 40 (a & We) - 3 word stack on pg. 46 (the/the/The) - 2 word stack on pg. 47 (a) - awkward break at the bottom of the first page of Chapter VII where the poem is referred to, but appears on the following page
(when viewed in Sony's ebook viewing program)). In the .pdf I believe there were only one or two places where I let two word stacks stand (because they were intractable) --- will have to try again using xetex and margin protrusion and character expansion (I'd used DEK's macro for hanging punctuation from _The TeXbook_).
William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow.
A while ago I grabbed some mathematics book samples for the Kindle. These
were books produced by well-known publishing companies, retailing for
considerable sums (even in the electronic versions), and in all of them the
mathematics typesetting was atrocious. I think that in most (all?) ebook
formats, a formula is included as an image, which means that it
automatically resizes. This means that formulas may be of all different
sized fonts, which gives the result a very scrappy look. At least PDF -
even if not designed for ebook reading - provides decent layout.
The problem is not just mathematics. I have some ebooks about poetry, and
in them the included poems (as set off from the surrounding text), seem to
be typeset almost randomly, with regard to layout, font size and spacing.
And these are commercial ebooks, for which I paid real Earth dollars!
-Alasdair
On Thu, Mar 8, 2012 at 3:30 AM, William Adams
On Mar 7, 2012, at 3:34 AM, Nicola wrote:
It's worse than pre-TeX printed books. Which makes me wonder: is anyone in the world addressing this? Are there people in the TeX community involved in the standardization processes (say, Epub3, but also the various W3C specifications), who could push forward ideas from TeX, like minimum requirements for the algorithms that rendering engines should use? These questions (together with sighs) arise every time I see a web page especially with mathematical notation…
The problem is, since the rendering is based on HTML, people just grab a web browser framework and build on that to make an ebook viewer.
Here's a post I wrote up once comparing a specific ePub display on a specific viewing program w/ a hand-tweaked Plain TeX version:
http://www.mobileread.com/forums/showpost.php?p=1371218&postcount=7
those who're curious may find it educational to compare my .pdf w/ this ePub version to see the sort of typographic infelicities which even in the best ePub version can't be controlled for ---
- one word last lines - # of lines on a page constantly changing to prevent widows / orphans - overly loose line on the middle of pg. 20 - 3 word stack on pg. 21 (meditation/Meditation) - 2 word stack on pg. 32 (black) - 2 word stack on pg. 37 (the) Twice! - six word river on pg. 40 (the/their/the/the/its/we) - 2 word stacks on pg. 40 (a & We) - 3 word stack on pg. 46 (the/the/The) - 2 word stack on pg. 47 (a) - awkward break at the bottom of the first page of Chapter VII where the poem is referred to, but appears on the following page
(when viewed in Sony's ebook viewing program)). In the .pdf I believe there were only one or two places where I let two word stacks stand (because they were intractable) --- will have to try again using xetex and margin protrusion and character expansion (I'd used DEK's macro for hanging punctuation from _The TeXbook_).
William
-- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow.
___________________________________________________________________________________ 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
___________________________________________________________________________________
-- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew
On 6-3-2012 12:03, Alasdair McAndrew wrote:
If this has been asked before, my apologies.
Is there a style file for formatting PDFs from ConTeXt for reading on an iPad? So far I've just used
\setuppapersize[A4][A4] \setuplayout[backspace=20mm, width=160mm, topspace=20mm, top=0mm, header=0mm, footer=10mm, bottomspace=20mm,bottom=0mm, textheight=250mm]
which works fine - for printing - but isn't optimized for the iPad. If anybody has any suggestions or examples, I'd be very grateful of them!
copied from s-inf-03.mkiv \setuppapersize [S6,landscape] [S6,landscape] \setuplayout [header=0cm, footer=1cm, backspace=.5cm, topspace=.5cm, width=middle, height=middle] (not that I use the ipad for reading docs ... too must hassle to get something on it) 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 -----------------------------------------------------------------
On Tue, 6 Mar 2012, Hans Hagen wrote:
On 6-3-2012 12:03, Alasdair McAndrew wrote:
If this has been asked before, my apologies.
Is there a style file for formatting PDFs from ConTeXt for reading on an iPad? So far I've just used
\setuppapersize[A4][A4] \setuplayout[backspace=20mm, width=160mm, topspace=20mm, top=0mm, header=0mm, footer=10mm, bottomspace=20mm,bottom=0mm, textheight=250mm]
which works fine - for printing - but isn't optimized for the iPad. If anybody has any suggestions or examples, I'd be very grateful of them!
copied from s-inf-03.mkiv
\setuppapersize [S6,landscape] [S6,landscape]
A5 is closer to the screen size than S6. Aditya
On 6-3-2012 14:48, Aditya Mahajan wrote:
On Tue, 6 Mar 2012, Hans Hagen wrote:
On 6-3-2012 12:03, Alasdair McAndrew wrote:
If this has been asked before, my apologies.
Is there a style file for formatting PDFs from ConTeXt for reading on an iPad? So far I've just used
\setuppapersize[A4][A4] \setuplayout[backspace=20mm, width=160mm, topspace=20mm, top=0mm, header=0mm, footer=10mm, bottomspace=20mm,bottom=0mm, textheight=250mm]
which works fine - for printing - but isn't optimized for the iPad. If anybody has any suggestions or examples, I'd be very grateful of them!
copied from s-inf-03.mkiv
\setuppapersize [S6,landscape] [S6,landscape]
A5 is closer to the screen size than S6.
S6 has an 3:4 aspect ratio 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 -----------------------------------------------------------------
On Tue, 6 Mar 2012, Alasdair McAndrew wrote:
If this has been asked before, my apologies.
Is there a style file for formatting PDFs from ConTeXt for reading on an iPad?
I use the following style for an ebook reader: https://gist.github.com/1886670 I set the paper size to the physical size of the device screen, use tiny margins, and set an appropriate font size. See http://randomdeterminism.wordpress.com/2009/10/21/creating-a-style-file-in-c... for example output. Aditya
participants (7)
-
Aditya Mahajan
-
Alasdair McAndrew
-
Hans Hagen
-
Khaled Hosny
-
Nicola
-
Philipp A.
-
William Adams