LaTeX is the standard typesetting for economists. Equations are easier to type, making citations is a breeze, and your finished paper just looks more beautiful.
By the end of the tutorial, you should:
If you are one of the many moving from Sublime Text to Atom, check out our new tutorial for Atom: Creating Your First PDF with LaTeX and Atom
We need a text editor to write our LaTeX documents in. We could technically use any text editor/coding software, but we like this one a lot. There are lots of great features (e.g., snippets), so even if you have a preferred text editor, give this one a shot. Sublime Text 2 is free to evaluate with no enforced time limit for the evaluation, although they do occasionally ask you if you would like to purchase. You don’t have to purchase, but if you find it useful, you should.
We need package control so that Sublime can do fancy things with our LaTeX documents.
Control+`
” (That’s the key right under the escape key). A white window
should pop up.Command+Shift+P
” to open the command pallet.
Alternatively you can find it in the Tools
menuInstall Package
” and you’ll find it auto-completes if for you. Select and hit ”Enter
“.LaTeX Tools
” to find it (don’t worry about capitalization), and install the package.We want inverse search so that when Sublime Text 2 loads the PDF viewer, clicking on text in the PDF viewer brings us back to our LaTeX code. This is very helpful in proofreading changes you have been making to your document.
Download and install SKIM PDF viewer.
Open Skim, go to Preferences > Sync
Uncheck “Check for file changes” option
Under Preset type ”Custom
”
Set the Command to:
/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl
Finally set Arguments to:
"%file":%line
Close and done!
Now that you have installed Sublime Text 2 (ST2) and LaTeXTools, open a new file in ST2 (using the menu or Command+N
).
Copy and paste the following LaTeX source into your new file:
\documentclass{article}
\title{Title}
\author{Your Name}
\begin{document}
\maketitle{}
\section{Introduction}
This is where you will write your content.
\end{document}
Save the file (using the menu File>Save
or Command+S
) as first.tex
. After saving, build the PDF
(using the menu Tools>Build
or Command+B
). You should see the PDF previewer display your first PDF.
Congratulations!
Congratulations! You are all done installing Sublime Text 2 to work with LaTeX and on your way to creating your first document. Next, you’ll want to learn how to use and create snippets to make your life even easier.
Quick Links
Legal Stuff
Social Media