From df6e9733740f5bcb5ae48bcdc0a4fb34f4902aba Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 29 Aug 2023 15:51:54 +0200 Subject: [PATCH] gnu: Add texlive-graphicscache. * gnu/packages/tex.scm (texlive-graphicscache): New variable. --- gnu/packages/tex.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 12961c7e02..9134b27848 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -84198,6 +84198,40 @@ of (mathematical) formulae. Options for shifting, smashing and hiding the graphics may be useful in support, for example, of the Beamer framework.") (license license:lppl1.3+))) +(define-public texlive-graphicscache + (package + (name "texlive-graphicscache") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/graphicscache/" + "source/latex/graphicscache/" + "tex/latex/graphicscache/") + (base32 + "1wi1ls3x934f6nifa25rcxl2jicihvgfh3sn5mjiwb15pxv2hmpd"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (home-page "https://ctan.org/pkg/graphicscache") + (synopsis "Cache @code{\\includegraphics} calls") + (description + "This LaTeX package provides caching of @code{\\includegraphics} calls, +therefore recompilations are much faster. Also, images can be post-processed +with Ghostscript before inclusion, with the following consequences: + +@itemize + +@item automatic downscaling to specified DPI; + +@item automatic JPEG compression with configurable quality; + +@item much smaller files. + +@end itemize + +@code{graphicscache} supports pdfLaTeX and LuaLaTeX; XeLaTeX is not +supported.") + (license license:bsd-3))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar