[TOC]
Preparation
Sublime Text 3 + LaTeXTools + Skim
Sublime Text 3
You can download Sublime Text 3 for the evaluation without enforced time limit.
LaTeXTools
LaTeXTools is a plugin for Sublime Text 3, which provides LaTeX supports.
Install Package Control by following the instructions in Package Control.
In the Sublime Text 3 window, press Command + Shift + P (Command Palette) and type in install
and return. It will search for a while. Then find LaTeXTools
and install.
Package control install
If you are installing LaTeXTools for the first time, you need to create a configuration file, LaTeXTools.sublime-settings
, in your User
directory (off the Packages) directory. To do so, open the command palette from the Tools menu, search for "LaTeXTools: Reconfigure and migrate settings," and hit Return.
Skim
Skim is a PDF reader to view PDF files.
Basic Operations
Most LaTeXTools facilities are triggered using Ctrl-l
(Windows, Linux) or Cmd-l
(OS X), followed by some other key or key combination.
Compiling LaTeX files
Keybinding: Cmd-b
Multi-file documents: first line in the current file consists of the text %!TEX root = <master file name>
.
TeX engine selection: first line of the current file consists of the text %!TEX program = <program>
. 'pdflatex' is the default. For multi-file documents, the directive must be in the root file.
Tips
Forward Searching: C-l,j
Reverse Searching: Cmd+shift+click
in Skim, noble-clicking in Sumatra.
Jumping to sections and labels: C-r
commands and environments: C-l,c
for commands and C-l,e
for environment.
Wrapping: C-l,C-c
wraps the selected text in a LaTeX command structure, e.g. blah
to \cmd{blah}
. Then tab to the end of command.
C-l,C-e
gives you\emph{blah}
, and the cursor moves to the end of the command.C-l,C-b
gives you\textbf{blah}
C-l,C-u
gives you\underline{blah}
C-l,C-t
gives you\texttt{blah}
C-l,C-n
wraps the selected text in a LaTeX environment structure. You get\begin{env}
,blah
,\end{env}
on three separate lines, with env selected. Change env to whatever environment you want, then hit Tab to move to the end of the environment.
Snippets: Tools|Snippets
So what do you think of it? Do I miss something? Leave your comments below...