FindLatexMk

Find LatexMk, the Perl-based LaTeX build tool.

This find-module locates the latexmk executable and extracts version information from latexmk --version output.

Result Variables

This module defines the following variables:

LATEXMK_FOUND

Boolean result indicating whether the latexmk executable was found.

LATEXMK_EXECUTABLE

Full path to the discovered latexmk executable.

LATEXMK_VERSION_STRING

Version string reported by the detected latexmk executable.

LATEXMK_VERSION_MAJOR

Major version component extracted from LATEXMK_VERSION_STRING.

LATEXMK_VERSION_MINOR

Minor version component extracted from LATEXMK_VERSION_STRING.

Hints

The following variables may be set to influence this module’s behavior:

LATEXMK_ROOT

Preferred search prefix for the latexmk executable.

LATEXMK_DIR

Alternative search prefix for the latexmk executable. This is treated like LATEXMK_ROOT.