Skip to content

Installation

Randy Lai edited this page Sep 18, 2016 · 35 revisions

LaTeXBox can be installed via Package Control.


LaTeX configuration

LaTeXBox relies on latexmk, which is an automatic LaTeX complication engine. It comes with TeXLive, MacTeX and MikTeX. Depends on different operation system, you should install a correct version of LaTeX distribution and a relevant PDF viewer.

For OSX

You should have MacTex and Skim installed.

To enable backward sync of Skim, open Preferences -> Sync -> Unclick "Check for file changes" and Input the following in PDF-TeX Sync Support:

Command: /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl
Arguments: "%file":%line

For Windows

You should have TeXLive and SumatraPDF installed. MikTeX is supported, but TeXlive is recommended.

For MikTex, you should also have a Perl interpreter, eg, ActivePerl installed. Also, make sure you have installed latexmk via the Package manager of MikTex.

Make sure that the paths to latxmk and the Perl interpreter are in your system environment PATH variable. They should be there in default if you setup the softwares properly. To set the PATH variable, see.

In most situations, LaTeXBox should be able to find SumatraPDF via Windows Registry. To enable backward sync of SumatraPDF, click Settings > Advanced Options, set InverseSearchCmdLine to

"C:\Program Files\Sublime Text 3\sublime_text.exe" "%f:%l"

or to the path where Sublime Text 3 binary is located.

For Linux (Ubuntu)

You should have TeXLive installed. Don't install via Ubuntu Software Center, that one is not updated. Checkout this installation script. The document viewer Evince should come together with your Ubuntu distribution. Okular and zathura are also supported.

Evince forward and backward sync will be automatic if the PATH variable is set correctly.


To test whether latexmk is well set up, download this sample, open terminal and navigate to where the file is downloaded and run latexmk -pdf sample. A pdf file will be created if latexmk is set up probably.