Skip to content

Instantly share code, notes, and snippets.

@kristopherjohnson
Created July 30, 2017 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristopherjohnson/e743da879722c3d0e43aadb18b09317d to your computer and use it in GitHub Desktop.
Save kristopherjohnson/e743da879722c3d0e43aadb18b09317d to your computer and use it in GitHub Desktop.
Bash script that downloads the source to Donald Knuth's "TeX: The Program" and builds a PDF
#!/bin/bash
# This script downloads the source to Donald Knuth's "TeX: The Program"
# and builds a PDF.
#
# Requires curl and a TeX distribution.
curl http://tug.org/texlive/devsrc/Build/source/texk/web2c/tex.web -o tex.web
weave tex.web
tex tex.tex
dvipdfm tex.dvi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment