summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2023-03-31 17:23:14 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2023-04-18 15:18:58 +0200
commit34ac0a1948881523050c3c2a178679ccb6567c3f (patch)
treeb5fd4ab58c2f69a9544036768d53df7b13ef4cd0 /gnu
parentc297a67092ac85baecb09b83afb6fbec14fc096c (diff)
gnu: texlive-latex-lastpage: Replace with texlive-lastpage.
* gnu/packages/tex.scm (texlive-lastpage): New variable. (texlive-latex-lastpage): Deprecate variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/tex.scm53
1 files changed, 37 insertions, 16 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index c7699a6b7c4..919bb8cddd6 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -12469,23 +12469,44 @@ underscores), and hyphenation of text typeset in monospaced (e.g., cmtt)
12469fonts.") 12469fonts.")
12470 (license license:lppl1.3c+))) 12470 (license license:lppl1.3c+)))
12471 12471
12472(define-public texlive-latex-lastpage 12472(define-public texlive-lastpage
12473 (package 12473 (let ((template (simple-texlive-package
12474 (inherit (simple-texlive-package 12474 "texlive-lastpage"
12475 "texlive-latex-lastpage" 12475 (list "doc/latex/lastpage/"
12476 (list "doc/latex/lastpage/" 12476 "source/latex/lastpage/"
12477 "tex/latex/lastpage/") 12477 "tex/latex/lastpage/")
12478 (base32 "0q6x743b8fkw9r82lrxy49f9xsg81bffynwvpnvpnp3h4mkafvdb") 12478 (base32
12479 #:trivial? #t)) 12479 "1cmzl0jkid4w60bjlyxrc5bynbc3lwq5nr77rsip0q9hprxykxks"))))
12480 (build-system texlive-build-system) 12480 (package
12481 (home-page "https://ctan.org/pkg/lastpage") 12481 (inherit template)
12482 (synopsis "Reference last page for Page N of M type footers") 12482 (outputs '("out" "doc"))
12483 (description 12483 (arguments
12484 "This package enables referencing the number of pages in a LaTeX document 12484 (substitute-keyword-arguments (package-arguments template)
12485through the introduction of a new label which can be referenced like 12485 ((#:tex-directory _ #t) "latex/lastpage")
12486 ((#:build-targets _ '()) '(list "lastpage.ins"))
12487 ((#:phases phases)
12488 #~(modify-phases #$phases
12489 (add-after 'unpack 'chdir
12490 (lambda _ (chdir "source/latex/lastpage/")))
12491 (replace 'copy-files
12492 (lambda* (#:key inputs #:allow-other-keys)
12493 (let ((origin (assoc-ref inputs "source"))
12494 (source (string-append #$output
12495 "/share/texmf-dist/source"))
12496 (doc (string-append #$output:doc
12497 "/share/texmf-dist/doc")))
12498 (copy-recursively (string-append origin "/source") source)
12499 (copy-recursively (string-append origin "/doc") doc))))))))
12500 (home-page "https://ctan.org/pkg/lastpage")
12501 (synopsis "Reference last page for Page N of M type footers")
12502 (description
12503 "This package enables referencing the number of pages in a LaTeX
12504document through the introduction of a new label which can be referenced like
12486@code{\\pageref{LastPage}} to give a reference to the last page of a document. 12505@code{\\pageref{LastPage}} to give a reference to the last page of a document.
12487It is particularly useful in the page footer that says: Page N of M.") 12506It is particularly useful in the page footer that says: @samp{Page N of M}.")
12488 (license license:lppl1.3c+))) 12507 (license license:lppl1.3+))))
12508
12509(define-deprecated-package texlive-latex-lastpage texlive-lastpage)
12489 12510
12490(define-public texlive-latex-tabto-ltx 12511(define-public texlive-latex-tabto-ltx
12491 (package 12512 (package