• Stars
    star
    587
  • Rank 73,752 (Top 2 %)
  • Language
    TeX
  • License
    Creative Commons ...
  • Created over 6 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A document version of my "Vipassana for Hackers" talk

Vipassana for Hackers

A document version of the talk "Vipassana for Hackers" by Steven Deobald (GitHub, Twitter).


TODO

  • tex4ebook vs. LaTeXML?
  • Preethi to format references in Paper Two
  • Transcribe Paper Three and Paper Four notes
  • Invert brain diagram colours for Paper One
  • Create output directory
  • Script epub generation
  • Add a Makefile
  • Switch Paper One 70-minute (children's) Anapana to 20-minute (adult)
  • Test epub gen, add to makefile, add full build target

Setup

Linux:

sudo apt install texlive-full
sudo apt install fonts-deva-extra
sudo apt install latexml
sudo apt install calibre
sudo apt install tidy
sudo apt install graphicsmagick graphicsmagick-dbg # optional

Mac:

brew install latexml
brew install caskroom/cask/calibre
brew install graphicsmagick # optional

Generate the Papers

Clone and make:

$ git clone https://github.com/deobald/vipassana-for-hackers
$ cd vipassana-for-hackers
$ make clean && make

PDF Generation

On a Mac, the easiest option is installing MacTeX. It's also possible to install only the required packages but that process has been abandoned for this project. Once you have MacTeX installed, clone the repo and run each paper's build script:

$ git clone https://github.com/deobald/vipassana-for-hackers
$ cd vipassana-for-hackers/paper-one
$ ./build-pdf.sh
$ cd vipassana-for-hackers/paper-two
$ ./build-pdf.sh

You will see many warnings but you shouldn't see any errors.


EPUB Generation

The epub version of the LaTeX was generated with the following procedure on macOS 10.10.5 and 10.13.4. Each script builds an epub for one paper at a time.

git clone https://github.com/deobald/vipassana-for-hackers
brew install latexml
brew install caskroom/cask/calibre
brew install graphicsmagick # optional
cd vipassana-for-hackers/paper-one
./build-epub.sh
cd vipassana-for-hackers/paper-two
./build-epub.sh # will produce an ignorable error: Unknown option `reprint'