Skip to main content
Develop Tools
← Return to usage guide

How to preview TeX/LaTeX code and formulas in a browser

When you want to immediately check the contents of the TeX source, check the document structure and formulas with a simple preview, and then compile the final product using the TeX engine in your environment.

Process of loading TeX code or tex file and checking formula preview and syntax diagnosis
Process of loading TeX code or tex file and checking formula preview and syntax diagnosis

When this guide is useful

It is for users who want to use TeX viewer, LaTeX preview, view tex files, display mathematical formulas, and check LaTeX syntax errors without installing it.

  • See an overview of .tex files received via email or shared folders
  • Check frac, sqrt, superscript/subscript notation in mathematical formulas
  • Look for forgetting to close begin and end, curly braces, and formula separators.
  • Search and replace TeX code and save to UTF-8 file

Situations where TeX/LaTeX viewers are useful

  • When quickly checking the document structure and formulas of the received .tex file
  • When looking for basic writing mistakes before preparing the LaTeX environment
  • When checking the input contents of formulas posted in README or teaching materials
  • When organizing TeX source to UTF-8 and saving again

Steps to check TeX source

  1. Enter TeX code or select a .tex file.
  2. Additional information: UTF-8 Shift_JIS
  3. See headings, paragraphs, formulas, lists, and tables in the preview on the right.
  4. Move to the line displayed in the syntax diagnostic and correct the parentheses and environment correspondence.
  5. Save the modified TeX and eventually compile it with the TeX engine you plan to use.

Precautions when using simple preview

The browser version is not a complete compiler such as TeX Live or LuaLaTeX. Display results may not match when including original macros, external packages, BibTeX, images, and multiple files.

For academic papers and PDFs for submission, do not complete with a simple preview; please make a final check using the specified TeX environment, package, font, and build procedure.

Specific example: Correcting a formula that is forgotten to close

If there is no $ at the end of an inline formula, the following sentences will be treated as a formula, leading to compilation errors and unintended display.

Check the line number and error details using syntax diagnosis, move to the relevant line, and match the start and end symbols.

  1. Input
  2. Check "$ in inline formula is not closed" in Syntax Diagnostics.
  3. Select the diagnostic item, move to the corresponding line, and add $ to the end of the formula.
  4. Refresh the preview and diagnostics to confirm that the error is resolved.

Even if the error is resolved, please re-check the results of the packages and custom macros you use with the actual TeX engine.

Frequently asked questions

Can I create PDF from LaTeX using only this tool?
PDF compilation is not supported. Perform a simple preview and diagnosis of the basic syntax, and generate the PDF in a TeX environment such as TeX Live.
Input
Not sent. Files are loaded, analyzed, previewed, and saved within your current browser.

Try It in Your Browser

Your input is processed entirely in your browser. Keep the original data, review the output, and only then save or share it.

Open TeX/LaTeX preview/viewer