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 also aims to be 99% LaTeX compatible: you can write/import regular LaTeX, and gradually transition to Texlish’s cleaner syntax at your own pace.
Try Texlish for your next document, paper, or presentation!
Quickstart
# Install/update Texlish (assuming NodeJS is installed)npm install -g texlish@latest# Compile a .texlish file to PDFtexlish --pdf filename.texlish
If you want to use a different LaTeX engine than pdflatex
,
see the CLI documentation for more options.
Examples
Full Document
\title: Texlish Demo\author: Me \and Myself
::use amsthm geometry: margin=1in\newtheorem: - theorem - Theorem ~ section
# Introduction*This* is an **example** of ***Texlish***.See [[texlish.org]] for more documentation.
: theorem @=thm:main This is a theorem.: proof[sketch] By recursion; see @thm:main.
.# Features.1. Markdown syntax2. Better LaTeX syntax
\documentclass[11pt]{article}
\title{Texlish Demo}%\author{Me \and Myself}%
\usepackage{amsthm} \usepackage[margin=1in]{geometry}\newtheorem {theorem}% {Theorem}% [section]%
\begin{document}\maketitle\section{Introduction}\emph{This} is an \textbf{example} of \defn{Texlish}.See \cite{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 with Subfigures
: 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}