Please Note: Everything on this page started out as my personal notes on installing various packages on my OS-X machines. Please feel free to use any of the information here. However, I can't be responsible for any problems that arise as a result of following these instructions. Use at your own risk.
- Enthought python distribution
- Think Python (book by Allen B. Downey)
- Pandas (book -- resources)
- Quantitative Economics -- Tom Sargent and John Stachurski -- python for quantitative economic modeling
- Python for Econometrics (Kevin Shepard)
- Remote iPython Notebook using an ssh tunnel
Useful Mac Stuff:
- You may need to install XCode (from the App Store), and the activate the command line tools. To do
the latter, type the following in Terminal:
- To update homebrew and the pacakages type:
- Key commands:
brew install package
brew upgrade package
brew cleanup package
- To install with homebrew:
brew install homebrew/x11/inkscape
- After installing with homebrew, you can invoke inkscape
from terminal with the command:
- Also, see the TeXText add-in description below
- brew install ical-buddy
- Dragon Dictate
- command line control of bluetooth utility on-off on Mac OS X
- Get Apache, MySQL, PHP, and phpMyAdmin running on OSX 10.11
LaTeX/Emacs/AucTeX for Mac:
- After installing, to fix permissions and update all packages, in Terminal type:
- sudo chown -R $(whoami):admin /usr/local
- tlmgr update --self
- tlmgr update --all
- Shell commands for updating using TeXLive (see TeXLive site):
- tlmgr update --list (to list all updates)
- tlmgr update --all (to perform all updates)
- tlmgr install pkgname (to install pkgname)
- Emacs for Mac
- To install (using homebrew):
brew cask install emacs
brew install ispell
- See Emacs for MacOS-X
- Starting with emacs-24, you will need to use the package manger (command list-packages in emacs) to install auctex.
- Finally, I use the following .emacs and .latexmkrc initalization files (see http://www.stefanom.org/setting-up-a-nice-auctex-environment-on-mac-os-x/)
(a great PDF-viewer for use with Emacs/LaTeX).
- With the proper setup, use C-c
C-v in emacs to highlight the line you
are editing in Skim. In Skim,
use Cmd+Shift+click to take you to
that point in the tex file being edited in
emacs. To setup:
- In Skim -> Preferences -> Sync:
- Check the box "Check for file changes."
- Preset: -> Custom
- Command: -> /usr/local/bin/emacsclient
- Arguments -> -n +%line "%file"
- In Skim -> PDF:
- PDF Display -> Single Page
- Check Automatically Resize
- Size and position the View window, then click "Use Current View Settings as Default"
- To force Skim to auto-reload the pdf file when it is changed, in a terminal window type:
defaults write -app Skim SKAutoReloadFileUpdate -boolean true
- In Skim -> Preferences -> Sync:
- If you use Beamer for presentations, Skim can display presentation notes on a second monitor while your slides are presented on the main monitor. See:
- With the proper setup, use C-c C-v in emacs to highlight the line you are editing in Skim. In Skim, use Cmd+Shift+click to take you to that point in the tex file being edited in emacs. To setup:
- latexdiff and git-latexdiff:
- If you use git, there is a command git-latexdiff that will compare various commits.
- To install use homebrew
- brew install git-latexdiff
- NOTE: The current version of latexdiff seems to put DOS CRLF's in the diff file, which means
that it won't always compile. To fix this, run:
- latexdiff old-file.tex new-file.tex | tr -d '\r' > diff.tex
- To fix git-latexdiff, you can pull the extra carriage returns out of diff file by going to
/usr/local/bin and running:
- cat git-latexdiff | sed "s/> diff.tex/| tr -d '\\\r' > diff.tex/g" > git-latexdiff-mac
- chmod a+x git-latexdiff-mac
TeXText add-in for Inkscape:
- Inkscape (see the link above) is amazing for creating figures/illustrations. The TeXText extension allow you the label the figures using LaTeX.
- To install the textext extension, do the following:
- Install Inkscape
- Important: You need to follow the instructions for configuring XQuartz appropriately on the Inkscape web site (here).
- Get the latest release of EggBot for OS-X from https://github.com/evil-mad/EggBot/releases/ and install.
- Get TeXtext from http://pav.iki.fi/software/textext/. Open the latest textext tar.gz file (as of 4/2015 this is textext-0.4.4.tar.gz). Open this archive and extract the python file textext.py and place it in the folder /usr/local/Cellar/inkscape/0.91_3/share/inkscape/extensions. Notes: (1) verion number may be different; (2) you may have to change the mode of textext.py ("chmod a+x textext.py")
- In a terminal window type:
brew install pdf2svg.
This will install a pdf->svg converter that texttext needs.
- You may also need to install imagemagick.
- Now, to run textext, go to Extensions->Tex Text in the Inkscape menu. A window will pop up in which you can place your latex equations (with $'s). Hit OK and you will get the processed equation tex-code in your figure.
- Install Inkscape
- Helpful sites for this were/are https://nicolasamiot.wordpress.com/2013/07/25/inkscape-textext-on-mac-os-x-mountain-lion/ and http://pav.iki.fi/software/textext/macports-inkscape-textext-howto.html and