Skip to content

Instantly share code, notes, and snippets.

@nuta
Last active November 19, 2019 05:39
Show Gist options
  • Select an option

  • Save nuta/92eb1a54d9ed6e0a7cc250896c3c736f to your computer and use it in GitHub Desktop.

Select an option

Save nuta/92eb1a54d9ed6e0a7cc250896c3c736f to your computer and use it in GitHub Desktop.
LaTeX setup
#!/bin/sh
set -uex
brew cask install mactex-nogui skim
brew install ghostscript
export PATH=$PATH:/usr/local/texlive/2019/bin/x86_64-darwin
# Hiragino
sudo tlmgr update --self
sudo tlmgr install collection-langjapanese japanese-otf-nonfree japanese-otf-uptex-nonfree ptex-fontmaps-macos cjk-gs-integrate-macos
sudo tlmgr repository add http://contrib.texlive.info/current tlcontrib
sudo tlmgr pinning add tlcontrib '*'
sudo cjk-gs-integrate --link-texmf --cleanup
sudo cjk-gs-integrate-macos --link-texmf
sudo mktexlsr
sudo kanji-config-updmap-sys --jis2004 hiragino-highsierra-pron
kanji-config-updmap-sys status
# sudo tlmgr install latexmk framed pxjahyper todonotes titlesec IEEEtran amsmath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment