What is LaTeX: Basic Concepts of TeX and LaTeX
Explain what LaTeX is, how it differs from TeX and Word, and why LaTeX source code can produce consistently formatted pages. Suitable for readers preparing to write a thesis or encountering LaTeX files for the first time, to build basic concepts.
Key points of this article
- TeX is a typesetting engine; LaTeX is a set of commands and conventions built on top of TeX. When writing, focus on structure and let the compilation process handle formatting uniformly.
- Word is WYSIWYG, whereas LaTeX means writing source code first and then compiling it. The difference lies in who controls the formatting and when it is computed.
- When there are many formulas, a need for automatic numbering and cross-references, and a requirement to strictly follow journal layout specifications, LaTeX's advantages are more pronounced.
- If you already have a LaTeX source package, you can upload it directly for translation, and then check the formulas, numbering, and terminology after translation.
Many people, the first time they encounter the words TeX and LaTeX in a thesis template, a journal submission guide, or a compressed archive sent by a colleague, wonder first: is this a piece of software, a file format, or a way of writing? If you are used to writing in Word, you may also ask how it really differs from Word, and why one needs to write a pile of backslash commands to get a single page of beautiful layout.
This article is written for readers who are preparing a thesis, looking at journal templates, or have received a LaTeX source file and don't know where to start. After reading it, you will understand what LaTeX is, the relationship between TeX and LaTeX, its fundamental difference from Word, and why LaTeX source code can produce pages with standardized formatting. This background is necessary before moving on to learning to write, converting files, and doing translation work.
First, I'll present the core conclusion, then break down three concepts, and finally explain the principles of LaTeX display formatting and give judgments for several common scenarios.
What is LaTeX? One-sentence conclusion
In short, LaTeX is a set of commands and conventions for describing a document's structure and content. Once the source file is written, a typesetting engine compiles it into a PDF or other layout-based file with consistent formatting. It does not rely on dragging and placing elements on the page. Instead, you use text to specify things like "this is a first-level heading," "this paragraph is a formula," or "insert an image here," and the system calculates the final layout according to its rules.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| Writing ordinary reports, notices, and short documents, and often needing to adjust the layout. | Word and other WYSIWYG (What You See Is What You Get) office software | Write as you read, edit directly, low learning cost |
| Write a paper or book manuscript containing many formulas, numbering, and cross-references. | LaTeX writing | Formulas, charts, and section numbers are maintained automatically by the system, so they will not become misaligned after changes. |
| The journal or conference to which you are submitting provides a LaTeX template. | Write directly based on the official template, and do not change the layout or typesetting on your own. | The layout specifications are uniformly defined by the template, and deviations from the template are likely to be returned for revision. |
| I already have a Word manuscript, and I just want to convert it to LaTeX for submission. | Finalize the text in Word first, then convert as needed, and manually check after conversion. | Complex tables and mixed text-and-image layouts often require manual adjustment after conversion. |
| I received a .tex archive and want to understand its contents. | Find the main file first, then look at the document structure and the referenced images. | The source code itself is plain text; once its structure is clear, it is easy to read. |
Three Concepts to Distinguish First: TeX, LaTeX, and Typesetting Engines
Much of the confusion comes from mixing these terms together. They can be distinguished as follows.
What is TeX
TeX is a typesetting system designed by computer scientist Donald Knuth. Its core is a typesetting engine, which reads text and control commands and determines fonts, font sizes, line spacing, line breaking, page breaks, and the positions of mathematical formulas. TeX's own commands are fairly low-level, so using them directly to write ordinary articles is rather cumbersome.
What is LaTeX
LaTeX is a set of macro packages and writing conventions built on top of TeX. It wraps common structures into easier-to-understand commands, such as sections, lists, figures and tables, bibliographies, and math environments. The author only needs to describe "this is a section," while the specific font sizes and numbering rules are determined by the document class and packages.
So, TeX can be understood as the "engine," while LaTeX is "a set of driving controls installed on that engine." In everyday usage, "LaTeX" typically refers at the same time to the source format, the writing method, and the compilation workflow.
Common Misconceptions
- Misconception 1: LaTeX and TeX are two unrelated pieces of software. In fact, LaTeX runs on top of the TeX engine; they are different layers of the same technical lineage.
- Misconception 2: LaTeX is just an editor. An editor is only a tool for writing source code; what turns the source into a page layout is the compilation process. You can write it in a plain text editor or in a tool with a live preview, and both are part of the LaTeX workflow.
- Misconception 3: Using LaTeX guarantees good-looking layout. Typographic quality depends on whether the template is appropriate, whether commands are used correctly, and whether anyone has manually overridden the default formatting. Messy source code produces messy pages just the same.
LaTeX Formatting Display Principles: How Source Code Becomes a Page
LaTeX can "display formatting" because the formatting does not exist in the text you write; it is calculated by the compilation process. The whole process roughly consists of four steps:
- Write the source file: The source file is usually a plain-text file with the .tex extension, mixing body text and commands.
- Read the document class and packages: The beginning of the file declares which document class to use, such as an article, book, or report, and loads the required packages. These define rules for heading sizes, page margins, bibliography styles, and so on.
- Typeset according to the rules: The engine calculates, paragraph by paragraph, the width of each line, where lines break, the baseline alignment of formulas, and where figures and tables are placed, and it automatically generates section numbers and page numbers.
- Output the result: The compiled result is usually a PDF. If an error occurs along the way, the compiler reports it and points to the specific line number, and the author uses that to revise the source code and compile again.
Illustrate with a simple example: in the source code, you write a section command and a formula. After compilation, the section automatically gets its number, font, and spacing, and the formula is centered and aligned according to mathematical typesetting rules. The author does not need to manually adjust number positions. Just change the source code and compile once more, and the numbering and typesetting of the entire document are updated in sync.
This is also why LaTeX has a clear advantage in long documents: when you insert a section before Chapter 3, all subsequent chapter numbers, figure and table numbers, and cross-references are automatically renumbered, without needing to edit each one by hand.
📊 Core Comparison
From the same document's perspective, compare Word and LaTeX, looking only at differences in how they work, without scoring either as better or worse.
| Comparison item | Word (WYSIWYG) | LaTeX (write the source code, then compile) |
|---|---|---|
| Difficulty to get started | Low, open and write | Higher level; you need to understand the commands and the compilation process. |
| Format control methods | Adjust fonts, paragraphs, and layout directly in the interface. | Describe structures through templates and commands, with unified computation. |
| Formulas and Cross-References | It can be done, but maintaining the numbering in long documents is quite laborious. | Automatic updating of equation numbers, figure and table numbers, and cross-references |
| Modification method | Edit directly on the page | Modify the source code, then recompile and check the result. |
| Multi-person Collaboration and Version Comparison | Frequently relies on revision history and file versions. | Source code is plain text, which makes line-by-line comparison easy. |
| Common Usage Scenarios | Everyday documents, reports, general contracts | Academic papers, mathematics or science/engineering manuscripts, submitted according to journal templates |
How It's Actually Used
If you already have LaTeX-related files, you can process them in the following order:
- If you have a LaTeX source package (containing .tex files and images), you can upload it to omnidoc.top, choose bilingual side-by-side or translation-only output, and download the result. After translation, please check whether the formulas, cross-references, and bibliography numbering are still correct.
- If you need to convert between Word and LaTeX in a web browser, you can open app.unidoc.top and use its Word-compatible editing, formula editing, and Word-to-LaTeX and LaTeX-to-Word conversion features. After the conversion is complete, check each paragraph.
- If you need to process PDFs locally, such as editing paragraph text, adding signatures, filling in forms, or exporting to Word or Excel, you can download the desktop client: download.omnidoc.top.
🎯 Which approach suits you?
- If you are writing everyday documents with frequently changing layouts and mainly collaborate through text discussion, a Word-type tool is more convenient.
- If you need to write a large number of formulas, require automatic numbering and cross-references, and will submit to journals using their templates, it is worth learning LaTeX.
- If you only occasionally need to make sense of LaTeX source code, you don't have to study it systematically first; mastering the file structure and the location of the main file is enough for practical use.
❓ Frequently Asked Questions (FAQ)
1. What does "LaTeX" mean in Chinese?
In Chinese, "LaTeX" is usually written directly as is, without translation. It can be understood as a "typesetting system" or "document preparation language," referring to a whole set of methods that use commands to describe a document's structure, which are then compiled by the system into a typeset page.
2. Do I need to learn TeX before learning LaTeX?
Usually this isn't necessary. For everyday writing, you can work directly with LaTeX, which wraps up the low-level details of TeX. You would only need to use TeX's own commands when you need to deeply modify the behavior of the typesetting engine.
3. What should be noted when writing Chinese documents in LaTeX?
Chinese text requires a document class or template that supports Chinese, and the Chinese fonts must be set correctly in the preamble. If you directly use an English template, Chinese characters may fail to display properly or line breaks may behave abnormally.
4. Can Word be converted to LaTeX?
It can be converted, but the conversion results need to be checked. Simple paragraphs and headings usually convert smoothly, while complex tables, mixed text and graphics, and special formatting often require manual adjustment. After conversion, please check formulas, numbering, and references page by page.
5. What should be checked after machine-translating a LaTeX manuscript?
It is recommended to focus on checking three categories of content: whether the formulas remain unchanged, whether the cross-references between figures, tables, and sections are correct, and whether the numbering and format of the references are complete. Machine translation may alter terminology, so key terms should be verified against the original text.
📝 Summary
LaTeX is a writing and typesetting system built on the TeX typesetting engine. It describes a document's structure through source code, and the compilation process then calculates the formatting uniformly, which is why it can maintain consistent, standards-compliant layout. Understanding the differences between TeX, LaTeX, and Word will help you judge which tool suits your document, and will let you handle LaTeX source files with greater confidence.
Open OmniDoc to edit, convert, or translate your LaTeX documents


