add_latex_document¶
This command is provided by ../modules/UseLatexMk.
- add_latex_document¶
Add a custom target that builds a PDF document from a LaTeX source file.
add_latex_document( SOURCE <tex-source> [TARGET <target-name>] [EXCLUDE_FROM_ALL] [REQUIRED] [FATHER_TARGET <meta-target>...] [RCFILE <latexmkrc>...] [INSTALL <destination>] [BUILD_ON_INSTALL] )
SOURCERequired path to the main LaTeX source file.
TARGETOptional target name. If omitted, a name is derived from the source path. A corresponding
<target>_cleantarget is also created.EXCLUDE_FROM_ALLExclude the generated target from the default
alltarget. This is implied whenFATHER_TARGETis specified.REQUIREDFail with a fatal error if the document cannot be built because LaTeX or
latexmkis unavailable.FATHER_TARGETExisting meta-targets that should depend on the generated document target.
RCFILEAdditional
latexmkrcfiles that are configured withconfigure_file()and loaded after the automatically generated rc file. This is an advanced customization mechanism and can also affect non-PDF builds.INSTALLInstall destination for the generated PDF document.
BUILD_ON_INSTALLTrigger a build of the document during installation.
The module also creates a global
clean_latextarget that removes LaTeX output and auxiliary files.