Answers.Body: <p>I suggest you of using LaTeX for such work. LaTeX handles multiple types of documents, text and media environments (complex equations as well as images, videos, plots, program source code (you can find packages to provide syntax highlight)), languages. You can also meaningfully use a Version Control System with its source code (like Git). And the end, you can export your book as PDF, PostScript, or other formats.</p>
  
  <p>There are compilers and integrated editors for every major desktop operating system, for example, various Linux Distributions, Windows, or even macOS.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-04T18:56:16.893Z
Answers.Text: can latex include gifs/animations?
Answers.UserDisplayName: Alexander Mills
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-23T12:31:03.853Z
Answers.LastActivityDate: 2018-07-23T12:31:03.853Z
Answers.UserDisplayName: Bence László
Answers.Body: <p>For very structured pages (manuals with pictures, magazines, encyclopedias, newspapers), use the DjVu format. You can use the DjVuLibre application library to create it. Or <a href="https://jwilk.net/software/python-djvulibre" rel="nofollow noreferrer">python-djvulibre</a> if you like to program in Python.</p>
  
  <p>For pure text with the minimum of images, use Epub format. It also supports animations (gif / mp4).</p>
  
  <p>You can use the <a href="https://sigil-ebook.com/about/" rel="nofollow noreferrer">Sigil</a> program to create it. It runs in Windows and also in Linux.
  Or use Python and <a href="https://code.google.com/archive/p/python-epub-builder/" rel="nofollow noreferrer">python-epub-builder</a> library.</p>
  
  <p>PS: Some PDF version can display animations, but it's pretty obscure. The PDF format was primarily designed as a print format. Animations are useless for print.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-04T18:57:12.500Z
Answers.Text: i wouldn't say "animations are useless for print", that's like being in 1850 and saying "pictures are useless for print" :) but yes useless or rather impossible for a paperback.
Answers.UserDisplayName: Alexander Mills
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-19T22:56:26.157Z
Answers.LastActivityDate: 2018-06-19T22:56:26.157Z
Answers.UserDisplayName: Stilgar Dragonclaw
Body: <p>I am totally new to eBooks / digital publishing.</p>
  
  <p>I want to publish a book on a software/programming topic. It makes zero sense for it to be paperback, because I want readers to be able to copy and paste code from the book to their software editors. I also would like to include animated GIFs in the eBook, so it's more interactive, etc.</p>
  
  <p>Given the above requirements, does anyone have a recommendation for which platform to publish to and which format to publish the eBook in? I here a lot of people use MS Word to write the eBook and export to PDF. But I don't think PDF supports GIFs, so I think I am looking for something else.</p>
  
  <p>It's 2018, I want to publish an eBook with GIFs/animations!</p>
  
  <p>If someone could add the following tags to this question:</p>
  
  <p>gif, animation</p>
  
  <p>that'd be great...</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-17T15:54:47.340Z
Comments.Text: Coincidentally, [this question](https://ebooks.stackexchange.com/questions/6986/creating-an-ebook-with-gif-animations) was bumped to the homepage right about the same time you submitted yours.
Comments.UserDisplayName: beaker
Tags: <ebook-readers><software>
Title: Best platform and format for eBook on software/programming
UserDisplayName: Alexander Mills
ThreadText: # Best platform and format for eBook on software/programming
  
  (Asked by: username_0 on 2018-06-17)
  
  I am totally new to eBooks / digital publishing.
  
  I want to publish a book on a software/programming topic. It makes zero sense for it to be paperback, because I want readers to be able to copy and paste code from the book to their software editors. I also would like to include animated GIFs in the eBook, so it's more interactive, etc.
  
  Given the above requirements, does anyone have a recommendation for which platform to publish to and which format to publish the eBook in? I here a lot of people use MS Word to write the eBook and export to PDF. But I don't think PDF supports GIFs, so I think I am looking for something else.
  
  It's 2018, I want to publish an eBook with GIFs/animations!
  
  If someone could add the following tags to this question:
  
  gif, animation
  
  that'd be great...
  
  **Tags:** ebook-readers, software
  
  > **Comments:**
  > **username_1**: Coincidentally, [this question](https://ebooks.stackexchange.com/questions/6986/creating-an-ebook-with-gif-animations) was bumped to the homepage right about the same time you submitted yours.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-07-23. Score: 2
  
  I suggest you of using LaTeX for such work. LaTeX handles multiple types of documents, text and media environments (complex equations as well as images, videos, plots, program source code (you can find packages to provide syntax highlight)), languages. You can also meaningfully use a Version Control System with its source code (like Git). And the end, you can export your book as PDF, PostScript, or other formats.
  
  There are compilers and integrated editors for every major desktop operating system, for example, various Linux Distributions, Windows, or even macOS.
  
  > **Comments:**
  > **username_0**: can latex include gifs/animations?  
  
  ---
  
  ### Answer by username_3 on 2018-06-19. Score: 1
  
  For very structured pages (manuals with pictures, magazines, encyclopedias, newspapers), use the DjVu format. You can use the DjVuLibre application library to create it. Or [python-djvulibre](https://jwilk.net/software/python-djvulibre) if you like to program in Python.
  
  For pure text with the minimum of images, use Epub format. It also supports animations (gif / mp4).
  
  You can use the [Sigil](https://sigil-ebook.com/about/) program to create it. It runs in Windows and also in Linux.
  Or use Python and [python-epub-builder](https://code.google.com/archive/p/python-epub-builder/) library.
  
  PS: Some PDF version can display animations, but it's pretty obscure. The PDF format was primarily designed as a print format. Animations are useless for print.
  
  > **Comments:**
  > **username_0**: i wouldn't say "animations are useless for print", that's like being in 1850 and saying "pictures are useless for print" :) but yes useless or rather impossible for a paperback.  
  
  ---
  
  