ubuntu配置sublime
2019-02-20
Install the GPG key:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
|
Ensure apt is set up to work with https sources:
sudo apt-get install apt-transport-https
|
Select the channel to use:
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
|
echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
|
Update apt sources and install Sublime Text
sudo apt-get update sudo apt-get install sublime-text
|
在之前的基础上
sudo apt-get install sublime-merge
|
不能输入中文
在终端输入subl
后能输入中文
简书
固定到收藏夹
参考:CSDN
创建sublime.sh
:
#!/bin/bash LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so subl
|
创建my_sublime.desktop
:
[Desktop Entry] Name = my_sublime Icon = 还没有 Type = Application Exec = path_to/sublime.sh
|
修改my_sublime.desktop
的权限,然后
sudo cp my_sublime.desktop /usr/share/applications/
|
将my_sublime
添加到收藏夹
latex
安装texlive
安装latex-tools
Preference
$\to$Packages Settings
$\to$LaTeXTools
"linux" : { // Path used when invoking tex & friends; MUST include $PATH "texpath" : "$PATH:/usr/local/texlive/2018/bin/x86_64-linux", }
|
- 如果编译错误,在
latex
语法下按ctrl
+shift
+b
选择用xelatex
编译