Underleaf Logo
Underleaf
BlogPricing
Log InTry Free

Learn LaTeX

Getting Started

  • What is LaTeX?
  • LaTeX for Beginners

LaTeX for Beginners

Welcome to LaTeX! This step-by-step guide will take you from zero to writing your first professional document. No prior experience required.

Step 1: Understanding the Basics

LaTeX documents are written in plain text with special commands that tell LaTeX how to format your document. Commands start with a backslash (\).

Command Example

\ extbf{bold text}

Makes text bold

Environment Example

\egin{center}...\end{center}

Centers content between begin/end

Step 2: Your First Document

Every LaTeX document has two parts: the preamble (settings) and the body (content). Here's the simplest possible document:

What each line does:

  • \documentclass{article} - Tells LaTeX this is an article (other options: report, book, letter)
  • \begin{document} - Marks where your content starts
  • \end{document} - Marks where your content ends

Step 3: Adding a Title

Add title information in the preamble and generate it in the document:

The \today command automatically inserts the current date.

Step 4: Sections and Structure

Organize your document with sections. LaTeX automatically numbers them:

Output hierarchy:

1 Introduction
  1.1 Background
    1.1.1 Details
2 Methods

Step 5: Basic Text Formatting

Here are the most common formatting commands:

Bold text

Italic text

Underlined text

Typewriter font

Step 6: Writing Math Equations

One of LaTeX's greatest strengths is mathematical typesetting. Use $...$ for inline math and \[...\] for displayed equations:

Inline Math

Output: The equation E = mc² changed physics forever.

Display Math

Step 7: Creating Lists

Bullet Points

Numbered List

Step 8: Adding Packages

Packages extend LaTeX's capabilities. Add them in the preamble with \usepackage:

Essential Packages for Beginners:

  • amsmath - Essential for math equations
  • graphicx - Include images
  • hyperref - Clickable links and references
  • geometry - Control page margins
  • booktabs - Professional tables

Complete Starter Document

Here's a complete document template to get you started:

Common Beginner Mistakes

Missing closing braces

\ extbf{bold

\ extbf{bold}

Forgetting to escape special characters

50% complete

50\% complete

Using wrong quotes

"quoted text"

``quoted text''

Special characters that need escaping:

# $ % ^ & _ {} ~ \

Next Steps

Now that you know the basics, explore these topics to level up:

Text Formatting

Math Mode Basics

Creating Tables

Including Code

Quick Reference Card

Text Commands

Math Commands

Try it free

Skip the syntax — let AI write it.

Snap a photo of an equation, a table, or full handwritten notes and Underleaf turns it into clean, compilable LaTeX in seconds. 10 free credits every month, no credit card required.

Convert your page
Handwritten notes converted into a typeset LaTeX document

LaTeX for Beginners

Welcome to LaTeX! This step-by-step guide will take you from zero to writing your first professional document. No prior experience required.

Step 1: Understanding the Basics

LaTeX documents are written in plain text with special commands that tell LaTeX how to format your document. Commands start with a backslash (\).

Command Example

\ extbf{bold text}

Makes text bold

Environment Example

\egin{center}...\end{center}

Centers content between begin/end

Step 2: Your First Document

Every LaTeX document has two parts: the preamble (settings) and the body (content). Here's the simplest possible document:

What each line does:

  • \documentclass{article} - Tells LaTeX this is an article (other options: report, book, letter)
  • \begin{document} - Marks where your content starts
  • \end{document} - Marks where your content ends

Step 3: Adding a Title

Add title information in the preamble and generate it in the document:

The \today command automatically inserts the current date.

Step 4: Sections and Structure

Organize your document with sections. LaTeX automatically numbers them:

Output hierarchy:

1 Introduction
  1.1 Background
    1.1.1 Details
2 Methods

Step 5: Basic Text Formatting

Here are the most common formatting commands:

Bold text

Italic text

Underlined text

Typewriter font

Step 6: Writing Math Equations

One of LaTeX's greatest strengths is mathematical typesetting. Use $...$ for inline math and \[...\] for displayed equations:

Inline Math

Output: The equation E = mc² changed physics forever.

Display Math

Step 7: Creating Lists

Bullet Points

Numbered List

Step 8: Adding Packages

Packages extend LaTeX's capabilities. Add them in the preamble with \usepackage:

Essential Packages for Beginners:

  • amsmath - Essential for math equations
  • graphicx - Include images
  • hyperref - Clickable links and references
  • geometry - Control page margins
  • booktabs - Professional tables

Complete Starter Document

Here's a complete document template to get you started:

Common Beginner Mistakes

Missing closing braces

\ extbf{bold

\ extbf{bold}

Forgetting to escape special characters

50% complete

50\% complete

Using wrong quotes

"quoted text"

``quoted text''

Special characters that need escaping:

# $ % ^ & _ {} ~ \

Next Steps

Now that you know the basics, explore these topics to level up:

Quick Reference Card

Text Commands

Math Commands

Underleaf Logo
Underleaf

Empowering students and researchers with AI-powered tools for academic writing.

Go to appContact us

Company

PricingBlogTutorialsConference TemplatesConference Deadlines

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorLaTeX Table GeneratorCitation GeneratorThesis GeneratorChrome ExtensionAll Tools

Ask AI about Underleaf

Ask ChatGPTAsk ClaudeAsk Perplexity

© 2026 Underleaf. All rights reserved.