From c03dc294ea70b4fe210f038ff14945d0005228c3 Mon Sep 17 00:00:00 2001 From: "B. Wilson" Date: Mon, 11 May 2020 20:08:10 +0900 Subject: [PATCH 5/7] gnu: Add texlive-microtype. To: guix-patches@gnu.org * gnu/packages/tex.scm (texlive-microtype): 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 ca5b9dbb2e..2d290fdb82 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -7417,3 +7417,37 @@ The Package also offers: @item horizontal lines in tabular environments with defined thickness. @end itemize") (license license:lppl))) + +(define-public texlive-microtype + (package + (inherit (simple-texlive-package + "texlive-microtype" + (list "/tex/latex/microtype/" + "/doc/latex/microtype/") + (base32 "0xmjpzbj4nqmnl5m7xx1bshdk2c8n57rmbvn0j479ypj4wdlq9iy") + #:trivial? #t)) + (propagated-inputs `(("texlive-latex-graphics" ,texlive-latex-graphics))) + (home-page "https://www.ctan.org/pkg/microtype") + (synopsis "Subliminal refinements towards typographical perfection") + (description "The package provides a LaTeX interface to the +micro-typographic extensions that were introduced by pdfTeX and have since also +propagated to XeTeX and LuaTeX: most prominently, character protrusion and font +expansion, furthermore the adjustment of interword spacing and additional +kerning, as well as hyphenatable letterspacing (tracking) and the possibility +to disable all or selected ligatures. + +These features may be applied to customisable sets of fonts, and all +micro-typographic aspects of the fonts can be configured in a straight-forward +and flexible way. Settings for various fonts are provided. + +Note that character protrusion requires pdfTeX, LuaTeX, or XeTeX. Font +expansion works with pdfTeX or LuaTeX. The package will by default enable +protrusion and expansion if they can safely be assumed to work. Disabling +ligatures requires pdfTeX or LuaTeX, while the adjustment of interword spacing +and of kerning only works with pdfTeX. Letterspacing is available with pdfTeX +or LuaTeX. + +The alternative package @code{letterspace}, which also works with plain TeX, +provides the user commands for letterspacing only, omitting support for all +other extensions.") + (license license:lppl1.3c+))) -- 2.26.2