From a3689883d488e4aa82413777cfe3b44d19146862 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 29 Aug 2023 16:03:33 +0200 Subject: [PATCH] gnu: Add texlive-tokenizer. * gnu/packages/tex.scm (texlive-tokenizer): New variable. --- gnu/packages/tex.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 76271b94ba..8e9ea045a4 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -98400,6 +98400,30 @@ active, implicit, and catcode-6 tokens as they are digested. The package provides a number of options for handling groups.") (license license:lppl1.3c))) +(define-public texlive-tokenizer + (package + (name "texlive-tokenizer") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/tokenizer/" + "tex/latex/tokenizer/") + (base32 + "0gvqn1rc3aq7kzmg6vibwgcpvpzsqkdfbp5im43405zl3d7rzhb9"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (home-page "https://ctan.org/pkg/tokenizer") + (synopsis "Tokenizer for LaTeX") + (description + "This package provides a tokenizer for LaTeX. +@code{\\GetTokens@{Target1@}@{Target2@}@{Source@}} splits source into two +tokens at the first encounter of a comma. The first token is saved in a newly +created command with the name passed as @samp{} and the second token +likewise. A package option @code{trim} causes leading and trailing space to +be removed from each token; with this option, the @code{\\TrimSpaces} command +is defined, which removes leading and trailing spaces from its argument.") + (license license:lppl))) + ;;; ;;; 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