rerunfilecheck
Monitors auxiliary files during compilation and issues warnings when changes require additional LaTeX runs for proper document synchronization.
Overview
Enhances LaTeX's compilation process by implementing smart detection of changes in auxiliary files through MD5 checksums. This functionality helps ensure document consistency and completeness.
- Automatically detects modifications in cross-references, table of contents, and other auxiliary files.
- Provides clear warnings when additional compilation runs are necessary.
- Particularly useful for complex documents with extensive cross-referencing, bibliographies, or dynamic content.
- Relies on modern TeX engine features (pdfTeX, LuaTeX, XeTeX) for efficient checksum calculations.
- Helps prevent common issues like outdated references or incomplete document builds.
Getting Started
To use rerunfilecheck
, include it in your document preamble:
\documentclass{article}
\usepackage{rerunfilecheck}
This package requires pdfTeX, LuaTeX, or XeTeX to compile as it uses the MD5 checksum functionality provided by these engines.
Examples
Using rerunfilecheck to detect changes in auxiliary files during document compilation.
\documentclass{article}
\usepackage{rerunfilecheck}
\usepackage{hyperref} % rerunfilecheck is often used with hyperref
\begin{document}
\section{Introduction}
This document demonstrates the use of the \texttt{rerunfilecheck} package, which monitors changes in auxiliary files.
\section{How It Works}
The package automatically calculates MD5 checksums of auxiliary files during compilation. If these files change between compilations, it will generate warnings indicating that additional LaTeX runs are needed.
\section{Benefits}
This helps ensure that cross-references, table of contents, and other document elements that depend on auxiliary files are properly updated.
\tableofcontents
\end{document}