TeXipedia

pdftexcmds

Provides essential pdfTeX utility functions and primitives for LuaTeX, ensuring compatibility and consistent functionality across TeX engines.

Overview

Bridges important functionality gaps between pdfTeX and LuaTeX by implementing missing utility commands and primitives through Lua code. This package is particularly valuable for document compatibility and portability across different TeX engines.

  • Enables seamless migration of documents from pdfTeX to LuaTeX without losing essential functionality.
  • Implements commonly used pdfTeX primitives that are not natively available in LuaTeX.
  • Critical for package developers and advanced users working with multiple TeX engines.
  • Particularly useful when maintaining documents that need to compile under both pdfTeX and LuaTeX.

Getting Started

To use pdftexcmds, include it in your document preamble:

\documentclass{article}
\usepackage{pdftexcmds}

This package provides pdfTeX utility functions for LuaTeX. It automatically detects which engine you're using (pdfTeX, XeTeX, or LuaTeX) and provides appropriate implementations of the utility commands.