Skip to content

Instantly share code, notes, and snippets.

@vtsatskin
Created April 21, 2014 22:00
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 vtsatskin/11158053 to your computer and use it in GitHub Desktop.
Save vtsatskin/11158053 to your computer and use it in GitHub Desktop.
Setup instructions to use jknielse/WorkReport on Mac OS X

Install MacTex

LaTeX is distributed on Mac OS X via MacTex. As of this wriiting the installer is 2.3 GB. It's pretty large so it'll take some time to download.

You can find the latest version on their website.

(Optional) Add /usr/texbin to your PATH

You can skip this section if you don't use a different system shell (i.e. you use bash).

If you're using a shell other than bash, you'll want to add /usr/texbin to your PATH.

zsh configuration

Open ~/.zshrc in your favorite editor and find a line similiar to:

export PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

You'll want to add /usr/texbin to the path like so (it's at the end):

export PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin"

Generating PDFs

  1. In Terminal.app, cd into your work report directory
  2. Run make. You'll see a bunch of messages scroll across your terminal.
  3. Run open Default_Report.pdf to open the generated PDF.

Every time you make a change to the LaTeX, you'll want to run make again to see your changes. Steps 2 and 3 can be combined into one command such as make && open Default_Report.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment