Difference between revisions of "Sublime Notes"

From Aicip
Jump to: navigation, search
(Created page with " = Installation = <nowiki>http://www.sublimetext.com/2</nowiki> and install Skim PDF viewer = Sublime API and Document = <nowiki>https://www.sublimetext.com/docs/2/</nowik...")
 
(Installation)
Line 2: Line 2:
 
= Installation =
 
= Installation =
  
<nowiki>http://www.sublimetext.com/2</nowiki>
+
[http://www.sublimetext.com/3 http://www.sublimetext.com/2]
  
and install Skim PDF viewer
+
and install [http://skim-app.sourceforge.net/ Skim PDF viewer]
  
 
= Sublime API and Document =
 
= Sublime API and Document =
Line 24: Line 24:
 
This open up LaTeX.sublime-settings
 
This open up LaTeX.sublime-settings
  
{
+
<code>{</code>
  
<nowiki> </nowiki>   "auto_wrap" : true,
+
<nowiki> </nowiki>   <code>"auto_wrap" : true,</code>
  
<nowiki> </nowiki>   "auto_wrap_width" : 78
+
<nowiki> </nowiki>   <code>"auto_wrap_width" : 78</code>
  
}
+
<code>}</code>
  
 
= Spell Check =
 
= Spell Check =

Revision as of 00:22, 16 December 2015

Installation

http://www.sublimetext.com/2

and install Skim PDF viewer

Sublime API and Document

https://www.sublimetext.com/docs/2/

Package control

https://packagecontrol.io/

https://github.com/randy3k/AutoWrap

https://github.com/ehuss/Sublime-Wrap-Plus

Auto Wrap

Preference/Settings - More/Syntax specific

This open up LaTeX.sublime-settings

{

   "auto_wrap" : true,

   "auto_wrap_width" : 78

}

Spell Check

Preference/Settings - More/Syntax specific

This open up LaTeX.sublime-settings

{

   "auto_wrap" : true,

   "auto_wrap_width" : 78,

   // Set to true to turn spell checking on by default

   "spell_check": true

}

Wrap Plus Key Binding

Preferences/Key Bindings - Users

[

{ "keys": ["super+alt+q"], "command": "wrap_lines_plus", "args": {"width": 78}}

]

Of course, we could use a different key combination.

For a list of how key are defined, you can open Preferences/Key Binding (Default)

Customize font

https://www.sublimetext.com/docs/2/font.html

Preference/Settings/Users or Cmd + ,

# Preferences.sublime-settings

{

"ignored_packages":

[

"Vintage"

],

"font_face": "Menlo",

"font_size": 14

}

Vim Mode

https://www.sublimetext.com/docs/2/vintage.html

Latex Support

https://github.com/SublimeText/LaTeXTools

%!TEX root = yourmasterfile.tex

C-l j Display PDF from where the current cursor is

C-l ts Toggle PDF syncing

Use spaces (globally)

Preferences/Settings/Default

   "tab_size": 4,

   // Set to true to insert spaces when tab is pressed

   "translate_tabs_to_spaces": true,

Color Themes

First, install “ColorSublime”

Option 1: Pastels on Dark

Option 2: Sunburst/Twilight (both theme are kinda similar)

Option 3: Active4D

The path for installing new color theme packages are:

You can download color theme at:

http://colorsublime.com/

Project Management

Ctrl == ^

Cmd + ^ + p   switch between project

Cmd + b   compile

Cmd + ^ + q format paragraph

Cmd + l v display PDF

Using LuaLatex

Preference/Package Settings/LatexTools/Settings - Users/

"builder_settings" : {

// General settings:

// See README or third-party documentation

"program": "lualatex",

New Build Command

Note that this is how you can put multiple command on Mac OS X

{

   "cmd": [

   "sh", "-c", "cmake . && make"

   ]

}

Fine tune word wrap

http://stackoverflow.com/questions/13416724/in-sublime-text-2-consider-hyphen-as-part-of-word

Preference/Settings/Syntax specific, this doesn’t seem work.

I have to go with Setting - Users for some reason

I got rid of {} [] -

I consider this as whole word things.

   // Characters that are considered to separate words

   "word_separators": "./\\()\"',.;<>~!@#$%^&*|+=`~?"