5 ms·
Haven't had too many requests for that yet. Do you have any recommendations for creating an epub file? The book was written in LaTeX with VS Code. I worry th
by opsdisk 7y ago
Haven't had too many requests for that yet. Do you have any recommendations for creating an epub file? The book was written in LaTeX with VS Code. I worry that a lot of the command line stuff and images wouldn't look good on a reader.
- m-p-3 7y agoSigil maybe? https://github.com/Sigil-Ebook/Sigil https://github.com/Sigil-Ebook/Sigil Other than that, this StackExchange discussion has some interesting ways to achieve it: https://tex.stackexchange.com/questions/16569/latex-document-to-epub-or-mobi-ebook-formats-with-mathematical-formulas https://tex.stackexchange.com/questions/16569/latex-document...
- dfc 7y agoPandoc will convert LaTeX to epub.
- mrzool 7y agoThere are definitely several options, but I would recommend Pandoc to compile an epub from LaTeX source — off the top of my head. Images are not problematic at all on an e-reader. Here’s an example of how an illustration looks like on my old Kindle: https://i.imgur.com/zfqbnOO.jpg https://i.imgur.com/zfqbnOO.jpg Tables and such are also usually just raster images embedded in the epub’s XML: https://i.imgur.com/SHYUrNL.jpg https://i.imgur.com/SHYUrNL.jpg https://i.imgur.com/u0tZ2TO.jpg https://i.imgur.com/u0tZ2TO.jpg …and so are code blocks, usually displayed in a monospaced but condensed font and converted to raster image as well to avoid wrapping: https://i.imgur.com/d7ly8GH.jpg https://i.imgur.com/d7ly8GH.jpg https://i.imgur.com/g0lIPpj.jpg https://i.imgur.com/g0lIPpj.jpg Long story short: Images are not an issue, and there’s a way to ensure code blocks will look good by converting them to images. That would indeed require some work, but maybe there's a tool to automate that? Edit: All examples are from UNIX and Linux System Administration Handbook by Garth Snyder et al., Addison-Wesley Professional; 5th edition (2017)
- opsdisk 7y agoCool, thanks for the recommendation.