Skip to content

6.3 Distributions

1. Latex Distributions

LaTeX distributions provide all the tools and packages necessary to compile LaTeX documents. They include the core LaTeX engine, additional packages, fonts, and often utilities for managing installations and updates. Here are the most popular LaTeX distributions with a comparison to help you choose the right one based on your needs:

1.1 TeX Live

  • Platform: Cross-platform (Windows, macOS, Linux)
  • Package Management: Uses tlmgr (TeX Live Manager) for installing/updating packages.
  • Default Setup: Comes with a large number of packages by default, making it suitable for most LaTeX needs out of the box.
  • Update Frequency: Regular updates to packages and the TeX Live system.
  • Size: Medium to large, depending on the installation option (basic, medium, full).
  • Advantages:
    • Comprehensive, covering most LaTeX packages.
    • Cross-platform consistency.
    • Regularly maintained and updated.
    • Easy to manage packages using tlmgr.
  • Drawbacks:
    • Installation can be large (especially the full version).
    • Updates and package management can be slower for beginners.

1.2 MiKTeX

  • Platform: Windows (also available for macOS and Linux)
  • Package Management: Uses a package manager that can automatically install missing packages on demand.
  • Default Setup: Minimal installation by default; additional packages are installed as needed.
  • Update Frequency: Frequent updates with the option to update individual packages.
  • Size: Relatively small to start (minimal installation), but grows as packages are installed.
  • Advantages:
    • Lightweight and minimal installation.
    • Automatically installs missing packages when compiling documents.
    • Ideal for beginners due to its simplicity.
    • Has a graphical package manager.
  • Drawbacks:
    • Less comprehensive than TeX Live initially (requires on-demand installations).
    • Cross-platform support isn’t as robust as TeX Live, especially on macOS/Linux.
    • Can become fragmented with too many installed packages.

1.3 MacTeX

  • Platform: macOS (specifically for macOS users)
  • Package Management: Same as TeX Live (because it’s based on TeX Live).
  • Default Setup: A full TeX Live installation with additional macOS-specific tools like TeXShop (LaTeX editor).
  • Update Frequency: Same as TeX Live (regular updates via tlmgr).
  • Size: Very large, because it installs a complete TeX Live setup.
  • Advantages:
    • Tailored for macOS, comes with macOS-specific applications.
    • Complete out of the box with all the necessary tools.
    • User-friendly for macOS users, integrates well into the OS.
  • Drawbacks:
    • Large installation size (4+ GB).
    • May include more than you need if you’re looking for a minimal install.

1.4 ProTeXt

  • Platform: Windows
  • Package Management: Uses MiKTeX internally for package management.
  • Default Setup: An installer that combines MiKTeX with additional documentation and editors (e.g., TeXnicCenter).
  • Update Frequency: Depends on MiKTeX’s package management.
  • Size: Medium to large (depends on installed packages).
  • Advantages:
    • Bundles everything a beginner needs for a LaTeX setup on Windows.
    • Simplifies installation by providing a full setup.
  • Drawbacks:
    • Windows-only distribution.
    • Less flexible than directly using MiKTeX or TeX Live.

1.5 TinyTeX

  • Platform: Cross-platform (Windows, macOS, Linux)
  • Package Management: Uses tlmgr like TeX Live.
  • Default Setup: Minimalist TeX Live distribution created by Yihui Xie, ideal for small setups.
  • Update Frequency: Follows TeX Live updates.
  • Size: Very small, only installs core LaTeX functionality and minimal packages.
  • Advantages:
    • Extremely small footprint, ideal for minimalists or CI environments.
    • Easily customizable; packages can be installed as needed.
    • Cross-platform support like TeX Live.
  • Drawbacks:
    • Minimal setup means you will need to install many packages manually.
    • Lacks many pre-installed packages that TeX Live includes by default.

Comparison Table:

FeatureTeX LiveMiKTeXMacTeXProTeXtTinyTeX
PlatformWindows, macOS, LinuxWindows, macOS, LinuxmacOSWindowsWindows, macOS, Linux
Package ManagementtlmgrAutomatic or manualtlmgrMiKTeX package mgr.tlmgr
SizeMedium to largeSmall (initially)Large (full install)Medium to largeSmall
UpdatesRegular (via tlmgr)FrequentRegularVia MiKTeXRegular (via tlmgr)
Automatic Package InstallNoYesNoYesNo
Best ForComprehensive, cross-platformBeginners on WindowsmacOS usersBeginners on WindowsMinimalists, CI environments

2. TexLive / TinyTex

2.1 Installing a missing package

If you’re referring to installing a LaTeX package for use in TeX Live (a popular LaTeX distribution), you can typically install packages using the tlmgr (TeX Live Manager) command. Here’s how you can install a package:

Steps

  1. Open your terminal (Linux/macOS) or command prompt (Windows).

  2. Update the TeX Live package database (optional but recommended):

    Terminal window
    tlmgr update --self
  3. Install a package: To install a package, use the following command:

    Terminal window
    tlmgr install <package-name>

    Replace <package-name> with the actual name of the LaTeX package you want to install.

Example:

If you want to install the tikz package, you’d run:

Terminal window
tlmgr install tikz

2.2 Notes:

  • If you’re on Windows and installed TeX Live with administrative privileges, you might need to run the command prompt as Administrator.
  • Ensure that tlmgr is included in your system’s PATH if it’s not recognized.

3.Latex Package / Bundles

In LaTeX, many packages are grouped as part of larger “bundles” or packages that provide extensive functionality. Some well-known examples include:

3.1 Common LaTeX Packages that are part of larger bundles

  1. TikZ (tikz):

    • Part of: pgf
    • TikZ is included in the larger pgf package, which is a comprehensive system for creating graphics in LaTeX.
  2. amsmath, amssymb, and amsthm:

    • Part of: ams (American Mathematical Society) packages
    • These are all part of the broader AMS (American Mathematical Society) bundle for typesetting mathematical documents.
  3. geometry:

    • Part of: standard TeX Live distribution
    • Provides control over page dimensions and layout. No additional package needed as it’s typically part of the base distribution.
  4. xcolor:

    • Part of: standard TeX Live distribution
    • A popular package for coloring text and other elements.
  5. hyperref:

    • Part of: standard TeX Live distribution
    • Handles cross-references, clickable links, and more. It’s included in almost all distributions by default.
  6. babel:

    • Part of: standard TeX Live distribution
    • Supports multilingual documents and is generally included in LaTeX distributions.
  7. fontspec:

    • Part of: XeLaTeX and LuaLaTeX
    • Allows custom fonts, usually for non-standard LaTeX compilers like XeLaTeX or LuaLaTeX.
  8. tcolorbox:

    • Part of: pgf/TikZ (indirectly depends on it)
    • Used for making colored boxes, often uses TikZ for advanced features.

3.2 Check Dependencies or Larger Bundles

You can check which larger bundle a LaTeX package belongs to by:

  1. Using CTAN (Comprehensive TeX Archive Network):

    • Visit the CTAN website, search for the package, and look for related or dependent packages.
  2. Using tlmgr command:

    • You can ask tlmgr for details about a package, including dependencies, using:
      Terminal window
      tlmgr info <package-name>
    • This will list relevant information about the package and what it depends on.
  3. Package Documentation:

    • Often, the package documentation will describe if it’s part of a larger package or bundle.