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):
npm install -g texlish@latestCompilation
You can compile a .texlish file as follows:
# Compile to filename.tex and run pdflatex to make filename.pdftexlish --pdf filename.texlish# Compile to filename.tex and run xelatex to make filename.pdftexlish --xe filename.texlish# Compile to filename.tex and run lualatex to make filename.pdftexlish --lua filename.texlish# Compile to filename.tex and run latex to make filename.dvitexlish --latex filename.texlish# Just compile to filename.textexlish filename.texlish# Override one compiler option for this runtexlish --config scriptGrouping=alpha filename.texlish# Enable LaTeX-compat modetexlish --config latexCompat filename.texlishConfiguration
Texlish looks for a project config file in .config/, then in the
current directory, named one of:
texlishconfig.yaml,texlishconfig.yml,texlishconfig.json,texlishconfig.js,texlishconfig.mjs, ortexlishconfig.cjstexlish.config.yaml,texlish.config.yml,texlish.config.json,texlish.config.js,texlish.config.mjs, ortexlish.config.cjs
YAML config example:
scriptGrouping: alphanumericlatexCompat: falsestyles: "*": "\\textit"You can also override config options in individual .texlish files
using ::config directives.
VSCode Integration
Our VSCode plugin
provides the following features in .texlish files:
- Syntax highlighting
- Automatic indentation after
\command:,: environment,::special