.. _dune_add_latex_document:

dune_add_latex_document
=======================

.. cmake_function:: dune_add_latex_document

   .. cmake_brief::

      build a pdf document through the Dune build system.

   .. cmake_param:: texfile
      :single:
      :required:
      :positional:

      The texfile to compile into a pdf.

   .. note::

      This function is a wrapper around add_latex_document.
      With Dune 2.7 the function from UseLatexmk.cmake is
      used and the one from UseLATEX.cmake is deprecated
      and will be removed after Dune 2.7.

