From patchwork Mon Apr 25 03:55:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 38818 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2318F27BBEA; Mon, 25 Apr 2022 05:16:02 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5E8EC27BBE9 for ; Mon, 25 Apr 2022 05:16:01 +0100 (BST) Received: from localhost ([::1]:36346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niq8m-0003mJ-9w for patchwork@mira.cbaines.net; Mon, 25 Apr 2022 00:16:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipuk-0007mf-Bj for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:36 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipuV-0001N5-1z for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:19 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipuU-00080d-UW for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:14 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 018/232] gnu: Add texlive-zref. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:01:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55104@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 55104-submit@debbugs.gnu.org id=B55104.165085926630615 (code B ref 55104); Mon, 25 Apr 2022 04:01:14 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:01:06 +0000 Received: from localhost ([127.0.0.1]:60729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipuL-0007xQ-OT for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:01:06 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:44618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niptH-0007i5-NZ for 55104@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:00 -0400 Received: by mail-qt1-f171.google.com with SMTP id t11so2667687qto.11 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 20:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+LPOX6DAHFqIu2+67jNCFG2WFMELiZV0EBLaly0V9oQ=; b=UbMtRMdiAocdpLNorl+XO0LdpKT4NsBJXBY7L9hSdeCN90J/2M9+4XrWmQE4zzzpDG 5O6C6Y50UP6f8nlYZRkuTmAPLedodBUg5jcnMGhN8pEUIHsGyJBbHPRW4Iw6XNLyosPd mH+7qD0bG8y3hgVQB6a+ZNWW7bBjKVDWS/cZikiJCqivRYRT4nlPfFkA/29kQ6OiONE5 LbLEgPclZZiRTaLmBtp1qSHvLjLG1alCyhT3QyvKplJrqgIflPpbmvECTmfEyeFlY/yx g6WYd8Qb9fZKdZiR83JXHgF98AwU5a7m/r5auAjddvpmMclKSMjzZqdrPgok44BFR/kv qmRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+LPOX6DAHFqIu2+67jNCFG2WFMELiZV0EBLaly0V9oQ=; b=sTO9KJhq2RIVG8e/5WLgdCrGMkXXjdnS4xe6gv2TJlZRNS5SoPDHk4lhYSLLZWBrUg 3G5BqGgAshV+6jIlNIoZWdt5dY2zSswO0LBDBgLDQ4HC1GtiuTjp8yM+NyYy2Qqng87W g2fDHRMdfEFVI1rKKf5dhktNKp31Ts4bJS35+TmXc4bAJn2FdImibVjZ9P0Yt/7383hq QoTftkU5Nc1PWpNZFOppq9rs1GDmURQjnbvYQNAzOdndR/Jxl515goIWmqp1iuEXfHdG PxNUxwuKs7JMWsQYATG5q4DRJF2s8Ed05EXqagbEQjpsirvbQk95hSxEFxzJaid0R5Nw lBiA== X-Gm-Message-State: AOAM530vnUNp06ffFo/5ccLKNYRd+/kOCj4d5RTXtjOoIuYfR8Zp1Cns bOzijYuruJGV90n11ZCLyz+Hta7w3tmnnQ== X-Google-Smtp-Source: ABdhPJzhrcY5VwJNH7CX91dM8JAKRDxwYzGp0fmITjhsTiM9keXF6WnZcLniANZfrAYmlGPkriQ6qg== X-Received: by 2002:ac8:7f4d:0:b0:2f1:f967:52bd with SMTP id g13-20020ac87f4d000000b002f1f96752bdmr10598845qtk.597.1650859194034; Sun, 24 Apr 2022 20:59:54 -0700 (PDT) Received: from localhost.localdomain (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id w82-20020a376255000000b0069ee3f0ae63sm4478142qkb.45.2022.04.24.20.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 20:59:53 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:55:44 -0400 Message-Id: <20220425035918.25683-18-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220425035918.25683-1-maxim.cournoyer@gmail.com> References: <20220425035918.25683-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/tex.scm (texlive-zref): New variable. --- gnu/packages/tex.scm | 70 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 82da10c41a..1ebaceb322 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -6360,6 +6360,76 @@ (define-public texlive-zapfding ;; No license version specified. (license license:gpl3+))) +(define-public texlive-zref + (package + (inherit (simple-texlive-package + "texlive-zref" + (list "doc/latex/zref/" + "source/latex/zref/") + (base32 "09l2wrqx0navislkx15iazv7jy0ip8bqaw3c0hjf0jy81kqrrm01"))) + (outputs '("out" "doc")) + (arguments + (list + #:build-targets #~(list "zref.dtx") + #:tex-directory "latex/zref" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (setenv "ROOT_DIR" (getcwd)) + (chdir "source/latex/zref"))) + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (define doc (string-append (assoc-ref outputs "doc") + "/share/texmf-dist/doc")) + (mkdir-p doc) + (copy-recursively (string-append (getenv "ROOT_DIR") "/doc") + doc)))))) + (propagated-inputs (list texlive-generic-atbegshi + texlive-generic-gettitlestring + texlive-generic-iftex + texlive-latex-atveryend + texlive-latex-kvoptions + texlive-latex-pdftexcmds + texlive-latex-xkeyval)) + (home-page "https://github.com/ho-tex/zref") + (synopsis "Reference scheme for LaTeX") + (description "This package offers a means to remove the limitation, of +only two properties, that is inherent in the way LaTeX's reference system +works. The package implements an extensible referencing system, where +properties may be defined and used in the course of a document. It provides +an interface for macro programmers to access the new reference scheme and some +modules that use it. Modules available are: +@table @code +@item zref-user +use zref for traditional labels and references; +@item zref-abspage +retrieve absolute page numbers (physical pages, as opposed to the logical page +number that is normally typeset when a page number is requested; +@item zref-lastpage +provide a zref-label for the last page of the document; +@item zref-nextpage +provide the page number of the next page of the document; +@item zref-totpages +provide the total number of pages in the document; +@item zref-pagelayout +provide the page layout parameters of a each page (which may then be printed +at the end of the document); +@item zref-perpage +make a counter reset for each new page; +@item zref-titleref +make section title or caption text available through the reference system; +@item zref-savepos +make positions on a page available; +@item zref-dotfill +controlled dot-filling +@item zref-env +record the latest environment's name and the line it started on; +@item zref-xr +provide the facilities of the xr and xr-hyper packages. +@end table") + (license license:lppl1.3c+))) + (define-deprecated-package texlive-fonts-adobe-zapfding texlive-zapfding) (define-public texlive-fonts-rsfs