From 51bf1c518853badaebc48ac1144e5afd9b5862c2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 5 Sep 2019 22:16:25 +0200 Subject: [PATCH] gnu: Add texlive-iftex. * gnu/packages/tex.scm (texlive-iftex): New variable. --- gnu/packages/tex.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 0fdd970dde..b792e72693 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -7166,3 +7166,23 @@ (define-public texlive-pst-text a different path and manipulating characters. It includes the functionality of the old package @code{pst-char}.") (license license:lppl)))) + +(define-public texlive-iftex + (let ((template (simple-texlive-package + "texlive-iftex" + (list "/doc/generic/iftex/" + "/tex/generic/iftex/iftex.sty") + (base32 + "089zvw31gby150n1k0zdk2c0q97pgbqs46phxydaqil64b55nnl7") + #:trivial? #t))) + (package + (inherit template) + (home-page "http://www.ctan.org/pkg/iftex") + (synopsis "Determine the currently used TeX engine") + (description "This package, which works both for Plain TeX and for +LaTeX, defines the @code{\\ifPDFTeX}, @code{\\ifXeTeX}, and @code{\\ifLuaTeX} +conditionals for testing which engine is being used for typesetting. The +package also provides the @code{\\RequirePDFTeX}, @code{\\RequireXeTeX}, and +@code{\\RequireLuaTeX} commands which throw an error if pdfTeX, XeTeX or +LuaTeX (respectively) is not the engine in use.") + (license license:lppl1.3+))))