Skip to content

Command-Line Interface

Installation

To install for the first time, or update your installation of Texlish, run the following command (assuming you have NodeJS installed):

Terminal window
npm install -g texlish@latest

Compilation

You can compile a .texlish file as follows:

Terminal window
# Compile to filename.tex and run pdflatex to make filename.pdf
texlish --pdf filename.texlish
# Compile to filename.tex and run xelatex to make filename.pdf
texlish --xe filename.texlish
# Compile to filename.tex and run lualatex to make filename.pdf
texlish --lua filename.texlish
# Compile to filename.tex and run latex to make filename.dvi
texlish --latex filename.texlish
# Just compile to filename.tex
texlish filename.texlish

VSCode Integration

Our VSCode plugin provides the following features in .texlish files:

  • Syntax highlighting
  • Automatic indentation after \command:, : environment, ::special