PasTeX is an online clipboard specifically meant to share math written in LaTeX.
When you create a new paste, any LaTeX in the input surrounded by math-mode tags will be rendered in the browser by KaTeX, resulting in beautiful, easy to share online math. PasTeX is aimed to solve a problem I've run up against over and over, and especially so during the COVID-19 pandemic: how can I effectively share math over the internet when communicating through a medium that doesn't support LaTeX?
Once you navigate to PasTeX, simply add any text you want to the sharing text area.
If you want to include math in your paste, surround it with \(
or $
for inline mode and \[
or $$
for display mode.
For example, the following input produced this paste:
Welcome to PasTeX! Here, we can do inline math like $\int f(x) dx$ and display mode math like $$\sum_{n\in\mathbb{N}} a_n .$$
White space is also respected, and display mode math is treated just like display mode in LaTeX.
More complicated math is also supported, like the following:
$$ \delta_{i, j} =
\begin{cases}
1, & i=j,\\
0, & i\not= j.\\
\end{cases}$$
A full list of supported LaTeX functions and symbols can be found at the KaTeX documentation. Suffice it to say that most anything you might want to use in math-mode is supported.
If you want to help make PasTeX better, feel free to open issues or a pull request! All help is appreciated.
PasTeX is MIT-licensed.
The full text of the license can be found in the LICENSE
file in the root of this repository.