Sublime Text 3の設定方法
$ brew cask install sublime-text3
Ctrl-Shift-`
でコンソールを開くCmd-Shift-P
で Command Pallet を開くinstall package
japanize
を選択$ cp ~/Library/Application Support/Sublime Text 3/Packages/Japanize/*jp ~/Library/Application Support/Sublime Text 3/Packages/Default/
Preferences/Color Scheme
で色選択表示/Syntax/Open all with current extension as .../Markdown Extended
を選択⌘
+⌥
+O
: Preview Markup in Browser.⌘
+⌥
+X
: Export Markup as HTML.Ctrl
+Alt
+C
: Copy Markup as HTML.日本語の変換候補を選択するのに「Tab」キーを押すと,候補が消えてなくなるのに対応
$ mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Default
Preferences/Key Bindings – Default
を開くCtl-s
(保存)して,一回終了して,もう一度2を実行{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },
{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false},
"context":
[
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
参考URL: Sublime Text 3 で日本語入力中に Tab キーで入力・変換候補を選択できるようにする
// Find panel key bindings
// { "keys": ["enter"], "command": "find_next", "context":
// [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
// },
// Replace panel key bindings
// { "keys": ["enter"], "command": "find_next", "context":
// [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
// },
// Incremental find panel key bindings
// { "keys": ["enter"], "command": "hide_panel", "context":
// [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}]
// },
参考URL: Sublime Text 3 で日本語を検索したとき文字が消える不具合を直す
ExportHtmlを使う
Cmd
-Shift
-P
で Command Pallet を開くinstall package
Key Bindings - User
に以下を設定{
"keys": ["ctrl+alt+n"],
"command": "export_html",
"args": {
"numbers": true,
"wrap": 900,
"browser_print": true,
"multi_select": true,
"color_scheme": "Packages/ExportHtml/ColorSchemes/Print-Color.tmTheme",
"style_gutter": false
}
}
LatexToolsを使う。
Cmd-Shift-P
でCommand Pallette起動~/Library/Application\ Support/Sublime\ Text\ 3/Packages/LaTeXTools/builders/traditionalBuilder.py
のDEFAULT_COMMAND_LATEXMK
の設定を以下に変える。(普段使っているlatexmkの設定に応じて修正)
DEFAULT_COMMAND_LATEXMK = ["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 = 'mendex -U -r -c -g -s ~/Dropbox/etc/latex/dot.ist %O -o %D %S'",
"-e", "$dvipdf = 'dvipdfmx %O -o %D %S'",
"-f", "-norc", "-gg", "-pdfdvi"]
Cmd-b
でlatexmkコマンドを起動できる。
注) MacTeXとSkimがインストールしてあること。