book icon indicating copy to clipboard operation
book copied to clipboard

HTML or web-friendly version?

Open joelmccracken opened this issue 11 years ago • 12 comments

Is there any available online version of HoTT?

joelmccracken avatar Jan 03 '14 19:01 joelmccracken

Are you looking for http://homotopytypetheory.org/book/?

JasonGross avatar Jan 03 '14 19:01 JasonGross

Does this site contain the text of the book in HTML somewhere? If so, I can't find it.

On Fri, Jan 3, 2014 at 2:47 PM, Jason Gross [email protected]:

Are you looking for http://homotopytypetheory.org/book/?

— Reply to this email directly or view it on GitHubhttps://github.com/HoTT/book/issues/594#issuecomment-31548193 .

joelmccracken avatar Jan 03 '14 19:01 joelmccracken

No, but it contains pdfs where the margins are optimized for reading on a computer/ebook. Is there a particular reason you're looking for HTML?

JasonGross avatar Jan 03 '14 19:01 JasonGross

Not necessarily. I just prefer to preview books in html.

On Jan 3, 2014, at 2:57 PM, Jason Gross [email protected] wrote:

No, but it contains pdfs where the margins are optimized for reading on a computer/ebook. Is there a particular reason you're looking for HTML?

— Reply to this email directly or view it on GitHub.

joelmccracken avatar Jan 03 '14 19:01 joelmccracken

Have a look at issue #287. @loopspace (Andrew Stacey) made some progress in converting the book to HTML.

andrejbauer avatar Jan 03 '14 20:01 andrejbauer

PlanetMath has a MathML HTML version. I'm in the process of getting an htlatex target, so that e-readers without MathML support/MathJax can read it; for now, you can look at the generated html here. It seems to have some images that aren't generated (I have no idea why, and they don't seem to be present in the pdf version at all), and there are some places where there's " class="math-display" >. It is good enough, as-is, though, that I might use it rather than the ebook pdf (the text is still too small for me to read that comfortably) on my kindle. Any help with polishing it enough to submit a pull request would be appreciated.

JasonGross avatar Apr 14 '14 05:04 JasonGross

I made a terrible sed script that goes through and removes all of the broken images; the resulting html is here.

JasonGross avatar Apr 14 '14 06:04 JasonGross

Wow, we're practically there.

andrejbauer avatar Apr 14 '14 07:04 andrejbauer

If anyone wants the epub or mobi generated by calibre from that html file, I've linked to them. (I can't promise I'll keep them up forever.) It's pretty ugly on the kindle at large font sizes, but it's decent at the smallest font size (which is still larger than the pdf) in Palatino.

JasonGross avatar Apr 14 '14 08:04 JasonGross

Note that htlatex doesn't like \left, \right, and \middle (it converts them all to images), and will convert align environments to text, but will use images for $$...$$ and \[ ... \] math environments.

JasonGross avatar Apr 17 '14 03:04 JasonGross

That's bizarre.

mikeshulman avatar Apr 17 '14 03:04 mikeshulman

tex4ht and htlatex have been improved quite much during the last few years. For the align environment to be treated well, you could simply enable the pic-align option. See also https://github.com/HoTT/book/issues/287#issuecomment-922332994

Iey4iej3 avatar Sep 18 '21 16:09 Iey4iej3