1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Macbook Pro 事始め備忘録

Last updated at Posted at 2018-05-01

目的

Macbook Proを購入した際の環境構築のための手順を記載します。

  • OpenMPIを用いた並列計算
  • Fortran, C, C++のコンパイル
  • tex環境の構築

が可能になります。

備忘録

.bashrcの作成

# ~/.bashrc
  
export EVENT_NOKQUEUE=1

PS1="[\u:\W]$"

.bash_profileの作成

# ~/.bash_profile
  
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

export PATH=$PATH:/usr/local/bin

アプリのインストール

  • Chrome
  • Paraview
  • Sublime text 3
  • Ricty diminished
  • Skim
  • Sizeup

Sublime text 3の設定

  • installパッケージをGithubからインストール
    • Flatland
    • ConvertToUTF-8
    • japanize
    • minimalFortran
    • rsub
    • LatexTools
    • OmniMarkupPreviewer
  • Browse Packages/Userに自身でfixしたテーマをコピー

User Prefernceは以下のように設定する。

{
  "color_scheme": "Packages/User/Flatland Dark.tmTheme",
  "default_encoding": "UTF-8",
  "default_line_ending": "unix",
  "draw_white_space": "all",
  "fallback_encoding": "UTF-8",
  "file_exclude_patterns":
  [
    "*.mod",
    "*.pyc",
    "*.pyo",
    "*.exe",
    "*.dll",
    "*.obj",
    "*.o",
    "*.a",
    "*.lib",
    "*.so",
    "*.dylib",
    "*.ncb",
    "*.sdf",
    "*.suo",
    "*.pdb",
    "*.idb",
    ".DS_Store",
    "*.class",
    "*.psd",
    "*.db",
    "*.sublime-workspace"
  ],
  "find_selected_text": true,
  "flatland_square_tabs": true,
  "font_face": "Ricty Diminished",
  "font_options":
  [
    "no_bold"
  ],
  "font_size": 13,
  "highlight_line": true,
  "ignored_packages":
  [
    "Objective-C",
    "Vintage"
  ],
  "open_files_in_new_window": false,
  "show_encoding": true,
  "show_full_path": true,
  "tab_size": 2,
  "theme": "Flatland Dark.sublime-theme",
  "translate_tabs_to_spaces": false,
  "trim_trailing_white_space_on_save": true,
  "word_wrap": true
}

Preferences > Package Settings > LaTeX Tools > Setting User の
"builder_settings" : {}の中に、以下を加筆する。

"command" : ["latexmk", "-cd",
  "-e", "$latex = 'platex %O -interaction=nonstopmode -synctex=1 %S'",
  "-e", "$biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'",
  "-e", "$bibtex = 'upbibtex %O %B'",
  "-e", "$makeindex = 'upmendex %O -o %D %S'",
  "-e", "$dvipdf = 'dvipdfmx %O -o %D %S'",
  "-f", "-%E", "-norc", "-gg", "-pdfdvi"],

Homebrewによるインストール

はじめに、https://brew.sh/index_jaからHomebrewのインストールを行う。

brew install gcc
brew install cmake
brew install gnuplot
brew install open-mpi

BasicTeXのインストール

以下のbrewコマンドでインストールする。

brew install ghostscript
brew install gnupg2
brew tap caskroom/cask
brew cask install basictex

インストール後は、以下のコマンドで、tex環境を構築する。

sudo tlmgr update --self --all
sudo tlmgr install collection-langjapanese
sudo tlmgr install txfonts algorithms helvetic latexmk
sudo tlmgr install latexmk framed enumitem here
cd /usr/local/texlive/2018basic/texmf-dist/scripts/cjk-gs-integrate
sudo ./cjk-gs-integrate.pl --link-texmf --force
sudo mktexlsr
sudo fmtutil --all
kanji-config-updmap -sys ipaex

以下のコマンドを利用し、フォントの環境を確認する。
フォントが埋め込まれていない場合には、CURRENT family : noEmbedと帰ってくる。

kanji-config-updmap status
1
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?