Skip to content

Commit

Permalink
Tinytex (#270)
Browse files Browse the repository at this point in the history
* Update docs.yml
  • Loading branch information
flagarde authored Jul 6, 2023
1 parent 1e65bdc commit 3994823
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/micromamba/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ channels:
- defaults
dependencies:
- doxygen
- ghostscript
6 changes: 3 additions & 3 deletions cmake/Documentation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down Expand Up @@ -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()

Expand Down Expand Up @@ -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.")
Expand Down
14 changes: 1 addition & 13 deletions docs/header.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Expand Down Expand Up @@ -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,%
Expand Down

0 comments on commit 3994823

Please sign in to comment.