Skip to main content
This guide walks you through the fastest reliable way to create your first LaTeX project. It covers project setup, package choices, document structure, and the minimum workflow needed to get a clean PDF without guesswork.
Time to complete: 15-20 minutes
Prerequisites: Access to LaTeX Cloud Studio or a LaTeX installation
Outcome: A complete, well-structured LaTeX document

Fastest Path If You Just Want a Working Project

  1. Start with article unless you already know you need report, book, or beamer.
  2. Keep the first file small: title, abstract, two sections, and one list.
  3. Add only the packages you actually need.
  4. Compile early, then add images, references, and bibliography after the base file works.
  5. Use a template once the minimal project is stable.

Project Planning

Before You Start

Before creating your LaTeX project, consider:
  1. Document type - Article, report, book, or presentation?
  2. Required features - Math equations, images, tables, bibliography?
  3. Output format - PDF for print or digital distribution?
  4. Collaboration needs - Working alone or with others?

Choosing the Right Document Class

article

Best for papers, essays, and short documents
  • Sections start at top level
  • No chapters
  • Compact layout

report

Ideal for longer documents with chapters
  • Title page by default
  • Abstract support
  • Chapter organization

book

Full-length books and manuals
  • Front/back matter
  • Two-sided printing
  • Professional typography

beamer

Presentations and slides
  • Frame-based content
  • Themes and transitions
  • Speaker notes

Step 1: Create Project Structure

Basic Project Setup

Understanding the Structure

Preamble Section

The preamble (before \begin{document}) contains:
  • Document class: Defines overall layout
  • Packages: Add functionality
  • Settings: Configure appearance
  • Metadata: Title, author, date

Document Body

The main content (between \begin{document} and \end{document}) contains:
  • Front matter: Title, abstract, table of contents
  • Main content: Sections, paragraphs, lists
  • Back matter: Bibliography, appendices

Step 2: Add Essential Packages

Core Package Set

Package Categories

Step 3: Write Content

Text Formatting

Lists and Enumerations

Step 4: Add Visual Elements

Including Images

Creating Tables

Step 5: Mathematical Content

Equations and Formulas

Step 6: Compile Your Document

Compilation Process

  1. Save your file with .tex extension
  2. Choose compiler:
    • pdfLaTeX: Standard choice, fast compilation
    • XeLaTeX: Unicode and system fonts
    • LuaLaTeX: Advanced features
  3. Run compilation (may need 2-3 passes)
  4. Check output for errors and warnings

Common Compilation Issues

Fix these common errors:
  • Missing $: Math mode not properly closed
  • Undefined control sequence: Typo in command or missing package
  • Missing \end{}: Environment not closed
  • File not found: Check image paths and filenames

Compilation Workflow

Step 7: Add References

Bibliography Management

Project Organization

File Structure

Multi-file Projects

Best Practices

Follow these guidelines for professional documents:
  1. Consistent style - Use the same formatting throughout
  2. Meaningful labels - \label{fig:data-analysis} not \label{fig1}
  3. Regular compilation - Catch errors early
  4. Version control - Track changes with Git
  5. Modular structure - Split large documents into files
  6. Comments - Document complex code with % comments

Complete Example Project

Next Steps

Now that you’ve created your first project:
  1. Experiment with packages - Try TikZ for diagrams or minted for code
  2. Create templates - Save time on future projects
  3. Learn advanced features - Master bibliographies and cross-references
  4. Join the community - Get help on forums and Stack Exchange

Working with Images

Learn image inclusion, positioning, and formatting

Creating Tables

Master professional table creation and formatting

Managing Large Documents

Organize multi-file projects effectively

Fix Errors

Troubleshoot common compilation problems

Quick Reference

Essential Commands


Congratulations! You’ve successfully created your first LaTeX project. Continue exploring our guides to master advanced features and create professional documents.

Start in LaTeX Cloud Studio

Open in LaTeX Cloud Studio

Write, compile, and iterate directly in your browser.

Start from Article Template

Use a ready-made template, then adapt it to your content.