gnu: texlive-latex-lastpage: Replace with texlive-lastpage.
* gnu/packages/tex.scm (texlive-lastpage): New variable. (texlive-latex-lastpage): Deprecate variable.master
parent
c297a67092
commit
34ac0a1948
|
@ -12469,23 +12469,44 @@ underscores), and hyphenation of text typeset in monospaced (e.g., cmtt)
|
||||||
fonts.")
|
fonts.")
|
||||||
(license license:lppl1.3c+)))
|
(license license:lppl1.3c+)))
|
||||||
|
|
||||||
(define-public texlive-latex-lastpage
|
(define-public texlive-lastpage
|
||||||
(package
|
(let ((template (simple-texlive-package
|
||||||
(inherit (simple-texlive-package
|
"texlive-lastpage"
|
||||||
"texlive-latex-lastpage"
|
|
||||||
(list "doc/latex/lastpage/"
|
(list "doc/latex/lastpage/"
|
||||||
|
"source/latex/lastpage/"
|
||||||
"tex/latex/lastpage/")
|
"tex/latex/lastpage/")
|
||||||
(base32 "0q6x743b8fkw9r82lrxy49f9xsg81bffynwvpnvpnp3h4mkafvdb")
|
(base32
|
||||||
#:trivial? #t))
|
"1cmzl0jkid4w60bjlyxrc5bynbc3lwq5nr77rsip0q9hprxykxks"))))
|
||||||
(build-system texlive-build-system)
|
(package
|
||||||
|
(inherit template)
|
||||||
|
(outputs '("out" "doc"))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments template)
|
||||||
|
((#:tex-directory _ #t) "latex/lastpage")
|
||||||
|
((#:build-targets _ '()) '(list "lastpage.ins"))
|
||||||
|
((#:phases phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _ (chdir "source/latex/lastpage/")))
|
||||||
|
(replace 'copy-files
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((origin (assoc-ref inputs "source"))
|
||||||
|
(source (string-append #$output
|
||||||
|
"/share/texmf-dist/source"))
|
||||||
|
(doc (string-append #$output:doc
|
||||||
|
"/share/texmf-dist/doc")))
|
||||||
|
(copy-recursively (string-append origin "/source") source)
|
||||||
|
(copy-recursively (string-append origin "/doc") doc))))))))
|
||||||
(home-page "https://ctan.org/pkg/lastpage")
|
(home-page "https://ctan.org/pkg/lastpage")
|
||||||
(synopsis "Reference last page for Page N of M type footers")
|
(synopsis "Reference last page for Page N of M type footers")
|
||||||
(description
|
(description
|
||||||
"This package enables referencing the number of pages in a LaTeX document
|
"This package enables referencing the number of pages in a LaTeX
|
||||||
through the introduction of a new label which can be referenced like
|
document through the introduction of a new label which can be referenced like
|
||||||
@code{\\pageref{LastPage}} to give a reference to the last page of a document.
|
@code{\\pageref{LastPage}} to give a reference to the last page of a document.
|
||||||
It is particularly useful in the page footer that says: Page N of M.")
|
It is particularly useful in the page footer that says: @samp{Page N of M}.")
|
||||||
(license license:lppl1.3c+)))
|
(license license:lppl1.3+))))
|
||||||
|
|
||||||
|
(define-deprecated-package texlive-latex-lastpage texlive-lastpage)
|
||||||
|
|
||||||
(define-public texlive-latex-tabto-ltx
|
(define-public texlive-latex-tabto-ltx
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue