Skip to content
Logo which reads >tex: - lish

Texlish: Better LaTeX

Clean syntax that compiles to LaTeX

Texlish combines the best of LaTeX, Markdown, and indentation sensitivity to offer a clean, easy-to-read, easy-to-write syntax.

Texlish compiles to LaTeX, so it’s compatible with all existing packages, and you can submit to journals, arXiv, etc. as usual.

Texlish aims to be 99% LaTeX compatible: you can write/import regular LaTeX, and gradually transition to Texlish’s cleaner syntax at your own pace. We offer some features that are convenient but not strictly LaTeX-compatible, but they can all be turned off if desired, and gradually turned back on as you migrate.

Texlish also aims to be 99% Markdown compatible, offering the convenience and familiarity of Markdown for easy # Section, *emphasis*, "smart quotes", - lists, > quotes, [^footnotes], links, images, `code`, and horizontal rules. Again you can turn off any features you don’t want to increase LaTeX compatibility.

Try Texlish for your next document, paper, or presentation!

Terminal window
# Install/update Texlish (assuming NodeJS is installed)
npm install -g texlish@latest
# Compile a .texlish file to PDF (similar to latexmk)
texlish --pdf filename.texlish

If you want to use a different LaTeX engine than pdflatex, see the CLI documentation for more options.

\title: Texlish Demo
\author: Me[^MIT]
\and Myself[^MIT]
[^MIT]: MassachuTeX Institute of Texlish
::use
amsthm
geometry: margin=1in
\newtheorem:
- theorem
- Theorem
~ section
# Introduction
*This* is an **example** of ***Texlish***.
See [texlish.org](https://texlish.org) for more documentation.
: theorem @=thm:main
This is a theorem.
: proof[sketch]
By recursion; see @thm:main.
.# Features.
1. Markdown syntax
2. Better LaTeX syntax
\documentclass[11pt]{article}
\title{Texlish Demo}%
\author{Me%
\footnote{\protect\label{footnote:MIT}MassachuTeX Institute of Texlish}
\and Myself\footref{footnote:MIT}}%
\usepackage{amsthm}
\usepackage[margin=1in]{geometry}
\providecommand\defn[1]{\textbf{\textit{\boldmath #1}}}
\begin{document}
\maketitle
\newtheorem
{theorem}%
{Theorem}%
[section]%
\section{Introduction}
\emph{This} is an \textbf{example} of \defn{Texlish}.
See \protect\href{https://texlish.org}{texlish.org} for more documentation.
\begin{theorem}\label{thm:main}
This is a theorem.
\end{theorem}
\begin{proof}[sketch]
By recursion; see \ref{thm:main}.
\end{proof}
\paragraph{Features.}
\begin{enumerate}
\item Markdown syntax
\item Better LaTeX syntax
\end{enumerate}
\end{document}
: figure
\subcaptionbox:
- Subfigure 1
\includegraphics: example1.png
\subcaptionbox:
- Subfigure 2
@=subfig2
\centering
\includegraphics:
~ width = 0.5 \textwidth
- example2.pdf
\caption: A figure with two subfigures.
\begin{figure}
\subcaptionbox
{Subfigure 1}%
{%
\includegraphics{example1.png}}%
\subcaptionbox
{Subfigure 2
\label{subfig2}}%
{%
\centering
\includegraphics
[width = 0.5 \textwidth]%
{example2.pdf}}%
\caption{A figure with two subfigures.}%
\end{figure}