Comments (6)
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.
Yes please - I'd love an epub/mobi version too.
from milewski-ctfp-pdf.
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.
I'll have a go at this. I'm not sure I can fix it, but it's worth trying.
from milewski-ctfp-pdf.
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.
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)
- nix-shell command doesn't work HOT 2
- inter-word spacing with fontdimen
- Why not give Haskell example of implementation of coproduct?
- Are there readily built pdf files for the covers?
- Cannot build HOT 5
- Possibly a mistake that causes confusion HOT 2
- `make scala` fails to produce full PDF HOT 12
- Missing figure HOT 1
- Chapter 3 - Section 3.5 Clarification
- chapter section numbering
- Haskell version being created when using scala command HOT 7
- Scala Snippet 23 in Chapter 3.4 is Not Desugared
- Releasing in Different Extensions HOT 1
- Update to Scala 3? HOT 1
- ASCII rendering of _|_ instead of Unicode HOT 4
- Use Rust as an alternative of C++? HOT 2
- Consider Formally verifying the properties in Category Theory using proof assistants.
- Result folder appears empty HOT 4
- A mistake in Section 6.3 HOT 5
- latest pdf for category-theory-for-programmers-scala HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from milewski-ctfp-pdf.