unicode-math LaTeX Package

repository·master·Indexed 43 days ago

https://github.com/latex3/unicode-math

An implementation of Unicode/OpenType mathematics for XeLaTeX and LuaLaTeX. It allows users to leverage modern OpenType math fonts instead of traditional TeX math fonts using the \setmathfont command. Requires XeTeX or LuaTeX and dependencies including fontspec and expl3.

Tokens
534
Snippets
2
Records
5
Agent score
4%

What's inside unicode-math

  1. Use the unicode-math package for OpenType mathematics

    master

    The unicode-math package enables the use of Unicode/OpenType mathematics in XeLaTeX and LuaLaTeX. This allows you to use modern OpenType math fonts instead of traditional TeX math fonts.

    To use the package, include it in your LaTeX preamble and use \setmathfont to specify your desired math font file.

    Note: While most standard LaTeX math commands remain compatible, the visual appearance of the math will change to match the selected OpenType font.

    \usepackage{unicode-math}
    \setmathfont{texgyrepagella-math.otf}
  2. Requirements for using unicode-math

    master

    To use unicode-math, you must meet the following requirements:

    1. Engine: You must use either XeTeX or LuaTeX.
    2. Required LaTeX Packages: Ensure your TeX distribution has recent versions of the following packages installed:
      • lm-math
      • fontspec
      • expl3
      • xpackages
      • lualatex-math
  3. Supported OpenType math fonts

    master

    The unicode-math package supports a wide variety of OpenType math fonts.

    Open Source Fonts

    • Latin Modern Math
    • TeX Gyre Bonum Math
    • TeX Gyre Pagella Math
    • TeX Gyre Schola Math
    • TeX Gyre Termes Math
    • DejaVu Math TeX Gyre
    • Asana Math
    • STIX
    • XITS Math
    • Libertinus Math
    • Fira Math

    Proprietary Fonts

    • Lucida Bright Math
    • Cambria Math
    • Minion Math
  4. Locate unicode-math documentation and examples

    master

    The package includes several typeset PDF documents and source files for learning and reference:

    • User Documentation: unicode-math.pdf (typeset from unicode-math.ltx)
    • Code Documentation: unicode-math-code.pdf (typeset from unicode-math-code.ltx)
    • Minimal Usage Example: unimath-example.pdf (typeset from unimath-example.ltx)
    • Symbol Listing: unimath-symbols.pdf (typeset from unimath-symbols.ltx)
  5. Identify unicode-math engine-specific style files

    master

    The unicode-math package provides specific .sty files depending on the TeX engine being used. When installing or manually managing files, ensure you use the correct one for your workflow:

    • LuaTeX: unicode-math-luatex.sty
    • XeTeX: unicode-math-xetex.sty
    • General/Fallback: unicode-math.sty
    unicode-math-luatex.sty
    unicode-math-xetex.sty
    unicode-math.sty