diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 91b8a4cf..a9bc82c9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -39,8 +39,15 @@ jobs: with: path: .github/workflows - - name: 🟨 Install packages - run: sudo apt-get install dia mscgen inkscape texlive-latex-recommended texlive-latex-extra texlive-font-utils + - name: 🟨 Install TinyTeX + uses: r-lib/actions/setup-tinytex@v2 + env: + TINYTEX_INSTALLER: TinyTeX-0 + + - name: 🟨 Install LaTeX packages + run: | + tlmgr install latex-bin newunicodechar latex-tools-dev courier dvips wasy epstopdf-pkg helvetic etoc caption pdftexcmds hyperref tocloft natbib fancyhdr changepage geometry psnfss ec ulem intcalc alphalph enumitem etoolbox stackengine amsfonts adjustbox iftex hanging pmboxdraw ltxcmds kvsetkeys kvdefinekeys infwarerr kvoptions float xcolor colortbl varwidth fancyvrb multirow epstopdf + tlmgr list --only-installed - name: 🐍 Install Conda environment uses: mamba-org/setup-micromamba@v1.4.3 diff --git a/.github/workflows/micromamba/docs.yml b/.github/workflows/micromamba/docs.yml index b20f5f87..9a35fc2b 100644 --- a/.github/workflows/micromamba/docs.yml +++ b/.github/workflows/micromamba/docs.yml @@ -5,3 +5,4 @@ channels: - defaults dependencies: - doxygen + - ghostscript diff --git a/cmake/Documentation.cmake b/cmake/Documentation.cmake index 35414711..6ff75272 100644 --- a/cmake/Documentation.cmake +++ b/cmake/Documentation.cmake @@ -26,7 +26,7 @@ function(doxyfile_docs) endif() if(DEFINED DOXYGEN_INPUT) - missive(WARN "DOXYGEN_INPUT is set but it will be ignored. Pass the files and directories directly to the doxygen_add_docs() command instead.") + message(WARNING "DOXYGEN_INPUT is set but it will be ignored. Pass the files and directories directly to the doxygen_add_docs() command instead.") endif() set(DOXYGEN_INPUT "${ARGS_UNPARSED_ARGUMENTS}") @@ -132,7 +132,7 @@ function(doxyfile_docs) set(DOXYGEN_GENERATE_LATEX YES) else() set(DOXYGEN_GENERATE_LATEX NO) - missive(WARN "DOXYGEN_GENERATE_LATEX is set to ON but latex compilers are not found ! Disabling the pdf generation !") + message(WARNING "DOXYGEN_GENERATE_LATEX is set to ON but latex compilers are not found ! Disabling the pdf generation !") endif() endif() @@ -207,7 +207,7 @@ function(doxyfile_docs) if(_isGenerated OR (EXISTS "${_abs_item}" AND NOT IS_DIRECTORY "${_abs_item}" AND NOT IS_SYMLINK "${_abs_item}")) list(APPEND _sources "${_abs_item}") elseif(_args_USE_STAMP_FILE) - missive(FATAL_ERROR "Source does not exist or is not a file:\n" + message(FATAL_ERROR "Source does not exist or is not a file:\n" " ${_abs_item}\n" "Only existing files may be specified when the " "USE_STAMP_FILE option is given.") diff --git a/docs/header.tex b/docs/header.tex index 604a3db7..6b0e4098 100644 --- a/docs/header.tex +++ b/docs/header.tex @@ -33,7 +33,6 @@ \RequirePackage{infwarerr} \let\protected@wlog\@@protected@wlog \makeatother -\IfFormatAtLeastTF{2016/01/01}{}{\usepackage{fixltx2e}} % for \textsubscript \IfFormatAtLeastTF{2015/01/01}{\pdfsuppresswarningpagegroup=1}{} \usepackage{doxygen} @@ -43,10 +42,7 @@ \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage{makeidx} -\PassOptionsToPackage{warn}{textcomp} -\usepackage{textcomp} -\usepackage[nointegrals]{wasysym} -\usepackage{ifxetex} +\usepackage{iftex} % NLS support packages $languagesupport @@ -168,15 +164,7 @@ % Hyperlinks %%BEGIN PDF_HYPERLINKS % Hyperlinks (required, but should be loaded last) -\ifpdf -\usepackage[pdftex,pagebackref=true]{hyperref} -\else -\ifxetex \usepackage[pagebackref=true]{hyperref} -\else -\usepackage[ps2pdf,pagebackref=true]{hyperref} -\fi -\fi \hypersetup{% colorlinks=true,%