Coder Social home page Coder Social logo

epub/mobi/html5 version about milewski-ctfp-pdf HOT 6 OPEN

hmemcpy avatar hmemcpy commented on May 9, 2024 36
epub/mobi/html5 version

from milewski-ctfp-pdf.

Comments (6)

onlurking avatar onlurking commented on May 9, 2024 26

I'm currently working on the ePub version, and after being finished, i will also target mobi(using KindleGen) and HTML(I can export, but I need a better styling for the HTML version).

The project is here if you guys are interested, and I'm following this guide mostly.

from milewski-ctfp-pdf.

adishavit avatar adishavit commented on May 9, 2024 14

Yes please - I'd love an epub/mobi version too.

from milewski-ctfp-pdf.

kevinwright avatar kevinwright commented on May 9, 2024 12

Has there been any more progress on this, and are there any specific issues that need handling?

I'm especially interested in seeing the scala version in eBook form

from milewski-ctfp-pdf.

barisere avatar barisere commented on May 9, 2024 11

I'll have a go at this. I'm not sure I can fix it, but it's worth trying.

from milewski-ctfp-pdf.

mb21 avatar mb21 commented on May 9, 2024 5

I'll share how far I've come in my attempt.
TL;DR: ePub successfully generated, but still a few issues.

Install pandoc > 2.1, then cd milewski-ctfp-pdf/src and:

pandoc ctfp.tex -o category-theory-for-programmers.epub --webtex -M author="Bartosz Milewski" -M title="Category Theory for Programmers" --resource-path=.:content/0.0:content/1.1:content/1.10:content/1.2:content/1.3:content/1.4:content/1.5:content/1.6:content/1.7:content/1.8:content/1.9:content/2.1:content/2.2:content/2.3:content/2.4:content/2.5:content/2.6:content/3.1:content/3.10:content/3.11:content/3.12:content/3.13:content/3.14:content/3.15:content/3.2:content/3.3:content/3.4:content/3.5:content/3.6:content/3.7:content/3.8:content/3.9

See jgm/pandoc#3983 for a discussion about how pandoc handles this LaTeX project, but basically:

  • use --resource-path with all image directories because of the \renewcommand*{\subfile} in this LaTeX project.
  • use --webtex to convert MathML to SVG because most eReaders don't support MathML, see https://pandoc.org/epub.html#math

TODO:

  • rename Monads, Monoids, and Categories file to not use commas.
  • ...?

Pandoc does handle \renewcommand to some extent, but obviously it cannot reimplement all of TeX macro behaviours. I guess it's debatable what should be fixed in pandoc and what things are just too non-standard in this LaTeX source for pandoc to re-implement...

Here my generated epub: category-theory-for-programmers.zip (rename .zip to .epub after download)

from milewski-ctfp-pdf.

hmemcpy avatar hmemcpy commented on May 9, 2024 3

Wow, this looks fantastic!
I've removed a bunch of unneeded macros already, but it seems there's more work to be done.
Thank you so much for the effort! I'll see if I can help in any way by simplifying things further...

from milewski-ctfp-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.