Effortlessly convert indented text into beautiful LaTeX brace-style tree diagrams.
Manually writing nested LaTeX code with \left\{, \right., and \begin{aligned} to create tree diagrams is tedious, error-prone, and frustrating. Textree was built to solve this exact problem.
It allows you to focus on your content and structure using simple indentation, and instantly get clean, beautiful, and ready-to-use LaTeX code. It's the perfect tool for students, teachers, and researchers who need professional-looking diagrams without the headache.
- Navigate to the Textree Live Demo.
- Type your hierarchical text in the input box on the left, using the
Tabkey to denote levels. - Click the "Convert to LaTeX" button. The live preview and the generated code will appear on the right.
- Copy the code and paste it into your LaTeX editor!
👀 Click to see a quick example
If you type this:
语文试卷结构
积累运用
古诗文默写
词语填写
病句
阅读
古文
应用类文本
文学类文本
作文
You get this LaTeX code:
$$
语文试卷结构
\left\{\begin{aligned}
&积累运用
\left\{\begin{aligned}
&古诗文默写\\
&词语填写\\
&病句\\
\end{aligned}\right.\\
&阅读
\left\{\begin{aligned}
&古文\\
&应用类文本\\
&文学类文本\\
\end{aligned}\right.\\
&作文\\
\end{aligned}\right.
$$Rendered output:
Want to run or modify Textree locally? It's simple!
-
Clone the repository:
git clone https://github.com/2005czq/Textree.git
-
Navigate to the directory:
cd Textree -
Open
index.htmlin your favorite web browser. That's it!
This project is licensed under the MIT License.