This project is in development (expect bugs). This is a superset of TeX that extends its syntax adding new several new features. These added features are just designed to make LaTeX code less verbose and faster to write but also just catered more towards my personal preference.
For a more detailed explanation of the features see the documentation.
For installation instructions see the installation section.
eq {
dy/dx = x*(a - b) + [[1, 2], [3, 4]] + sin(x)
}
\begin{document}
\begin{equation}
\frac{dy}{dx} = x \times \left(a - b\right) + \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} +\sin \left(x\right)
\end{equation}
\end{document}
use graphicx, [utf8]inputenc
@img = (src, desc) => {
env center {
\image{@("images/" + src)}{10cm}
\linebreak
**@desc**
}
}
#* Cool Image
## A subsection
@img(cat.png, A cat!)
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\newcommand{\img}[3]{
\begin{center}
\image{#3}{10cm}
\linebreak
\textit{#2}
\end{center}
}
\begin{document}
\section*{Cool Image}
\subsection{A subsection}
\img{cat.png}{A cat!}{images/cat.png}
\end{document}
@muliplication = (a: Number, b: Number) => { $@a \times @b = @(a * b)$ }
* I'm a **Markdown** style ***list***
* @muliplication(2, 3)
* @muliplication(6, 6)
* @muliplication(2, 9)
* I'm indented
* {I'm a multiline
list item}
\newcommand{\muliplication}[3]{
$#1 \times #2 = #3$
}
\begin{document}
\begin{itemize}
\item I'm a \textit{Markdown} style \textbf{list}
\item \muliplication{2}{3}{6}
\item \muliplication{6}{6}{36}
\item \muliplication{2}{9}{18}
\begin{itemize}
\item I'm indented
\end{itemize}
\item {I'm a multiline
list item}
\end{itemize}
\end{document}
OS | Instructions |
---|---|
Arch Linux | Install from the AUR https://aur.archlinux.org/packages/lia-git. |
Other | Download the latest release from the releases page. There is currently no installer so you will need to add the directory to your path manually. |
lia file.lia -w -c "pdflatex -interaction=nonstopmode file.tex"
- Run
lia --help
for more information on usage. - The
-w
flag will tell the compiler to watch the file for changes and recompile it. - The
-c
flag chains a command to run after the build.
Requires Rust to be installed.
git clone https://github.com/jaspwr/LiA
cd LiA
cargo build --release
Your binary will be in target/release
.
For syntax highlighting and other features in VSCode, you can use the extension. To install it, copy tooling/vscode/lia-helper
to your VSCode extensions directory (normally ~\.vscode\extensions
) then restart VSCode.
I am planning to do a full rewrite. Please do not contribute right now.