< Return to Main Page

LuTex Documentation

A simple LaTeX-to-PDF generator using custom intuitive syntax.

Overview

LuTex allows you to write LaTeX-like input in a text editor and convert it into a downloadable PDF. It communicates with a backend API that processes your content and returns a generated PDF file.

How to Use

  1. Type your content into the editor on the home page.
  2. Click Download PDF.
  3. Wait for the API to process your request.
  4. The PDF will automatically download when ready.

Supported Features

Console Panel

The console on the right side of the editor displays system messages such as:

Troubleshooting

Syntax

LuTex uses a lightweight custom syntax that compiles into LaTeX commands before generating a PDF. Most commands follow the format \command(text), and some shortcuts map directly to LaTeX equivalents.

Structure Commands

Text Formatting

Text Size

Lists

Math Syntax Details

The \math(...) block is used for mathematical expressions. Inside the block, you can write standard LaTeX-style math expressions, but without the need for full LaTeX document syntax.

Examples

\math(
a = b + c
)

\math(
E = mc^2
)

\math(
\frac(a,b) = x^2 + y^2
)

\math(
\alpha + \beta = \gamma
)

\math(
\frac(1,2) + \frac(3,4)
)

Note: All expressions are parsed as a single math block. Multi-line alignment and advanced LaTeX environments (like align) may not be fully supported.

Environments

Example

\section(Welcome to LuTex)

\p(This is a lightweight markup system designed to make writing structured documents simple and readable.)

\heading(Why use LuTex?)

\list(
- Clean, minimal syntax
- Easy to parse
- Fast to write
- No boilerplate
)

\heading(Text Styling)

\p(You can emphasize text using simple commands:)

\b(Bold text shows importance)
\strong(Strong text highlights critical information)
\large(Large text stands out for titles or key ideas)

\heading(Code Example)

\code(
function greet(name) {
    console.log("Hello, " + name);
}
)

\heading(Math Support)

\math(
E = mc^2
)

\p(Inline expressions like a = b + c can be used for simple formulas.)

\heading(Layout Control)

\center(This text is centered for emphasis)

\p(That's it — simple, readable, and structured.)

Notes