Command-Line Interface
Installation
Section titled “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
Section titled “Compilation”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.texlish# Disable Markdown-compatible syntaxtexlish --config -markdownCompat filename.texlishWhen you use a LaTeX option such as --pdf, --xe, --lua, or --latex,
Texlish runs a multi-pass LaTeX build. It runs BibTeX or Biber if needed,
runs makeindex when an index changes, and reruns LaTeX if generated files
such as .bbl, .toc, or cross-reference labels changed.
Configuration
Section titled “Configuration”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:
colonCommands: truecolonEnvironments: trueciteShorthand: truelatexCompat: falsemarkdownCompat: truemarkdownBackticks: 3markdownBlockquotes: truemarkdownEmphasis: truemarkdownFootnotes: truemarkdownHeadings: truemarkdownHorizontalRules: truemarkdownImages: truemarkdownLinks: truemarkdownLists: truemarkdownStrikethrough: truerefShorthand: truescriptGrouping: alphanumericscriptParens: truesmartQuotes: truequotes: '"': open: "``" close: "''"styles: "*": "\\textit"You can also override config options in individual .texlish files
using ::config directives.
VSCode Integration
Section titled “VSCode Integration”Our VSCode plugin
provides the following features in .texlish files:
- Syntax highlighting
- Automatic indentation after
\command:,: environment,::special