gnu: Add texlive-ifnextok.

* gnu/packages/tex.scm (texlive-ifnextok): New variable.
This commit is contained in:
Nicolas Goaziou 2023-08-29 15:52:54 +02:00
parent 5c361d6132
commit a08793ed89
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -85461,6 +85461,31 @@ (define-public texlive-ifmslide
presentations with pdfLaTeX.")
(license license:lppl1.2+)))
(define-public texlive-ifnextok
(package
(name "texlive-ifnextok")
(version (number->string %texlive-revision))
(source (texlive-origin
name version
(list "doc/latex/ifnextok/"
"source/latex/ifnextok/"
"tex/latex/ifnextok/")
(base32
"0hlf4vn8ki9p425s9wki2b86jx9kxcmbk12h3cljmy32f6bxs7bh")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
(home-page "https://ctan.org/pkg/ifnextok")
(synopsis "Utility macro: peek ahead without ignoring spaces")
(description
"The package deals with the behaviour of the LaTeX internal command
@code{\\@@ifnextchar}, which skips blank spaces. This has the potential to
surprise users, since it can produce really unwanted effects. A common
example occurs with brackets starting a line following @code{\\\\}: the
command looks for an optional argument, whereas the user wants the brackets to
be printed. The package offers commands and options for modifying this
behaviour, maybe limited to certain parts of the document source.")
(license license:lppl1.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