From nobody Tue Apr 01 12:00:57 2025 X-Original-To: tex@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZRmmn4K8Sz5rQlY for ; Tue, 01 Apr 2025 12:01:13 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZRmmn2hQxz48lG; Tue, 01 Apr 2025 12:01:13 +0000 (UTC) (envelope-from bofh@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743508873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pi73A9StnCua1u8Wg0gNPqN6b/HkyvcPZmHa+HF0oH0=; b=OYi3pMJe1udVC+p6Be30zI7iCFksBplfbMD71imMx5RbckoxYRAsToF692C2/nRvh6k/qh cTQCpbe33X3dMp0kLrGRL2RaogauiMkkEJXfnzYODRYe+hbcnOsQUt0ecGdjrilGZO/bTz Z9Abd1iLIKhHL5+xTKl5fpoVEGgQitqy5zmThTQKiRw2DIwdHQ8TeKie2ZdE/8cWrEvQ85 MQ4Q5HKAJcXU1mxb6lGhK5Lw0aZ7l7CvZgi/nEX8pYN0mwGRYioqGzE8VU0FANKRqzNRhy 36B8hjgHjSel4kQwPnaWjtXtWruxuAbl89tiP36WPs+mCg5mL2MHms4yFPWzxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743508873; a=rsa-sha256; cv=none; b=BGghXuDejXz3pEUqr+YW2U3eAI5iUDBT3E5u5wQUlZu/MDj8qZzuCMWsK8ejcjavwCxDa6 XbRVAJsMVek2p652cNRXxX/1NjiSuRJu3KaGWl3HF1R3QBQiURCprAO/fduJ3P1DxTcZjh Rfpfaro8pfs50T3JFggHt2SfuOMEvgwFlLxEw80ulQCwoi/RA9x2DahZr8kex1BNZlPIdC ays6ox7J3uisWUWEmh21EuROHgqQvfK/aEGxGJNNvdEE4w384cOWu2J6cmruOrTeVoypNw NdWacdwY2ucU2PAWer6RwH85T0iD5NEkOdHHSzENJ3wxIu/Ui8eNJS02fD1IoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743508873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pi73A9StnCua1u8Wg0gNPqN6b/HkyvcPZmHa+HF0oH0=; b=uhEbXi+iPIBwNrnID/FfPRed2YV55shBplHI+P1VkiJ1aG0wVMQeNoxFBG1aeWnDAxUlLE e5HdUf3oNF4RxvN27cVdOZLR7TR3etXxMJYdDAZFCr+Pgac5Cmx6ADy2o1ofD5TRWEhfo/ IjlAg0+a3AgrnGQk9gLjaCtXHvBkDLRx6ojJzcUUgyL6OmJ3gWOPd3arhfpKwcIqSogx7i zKIDfiRLFDlWODh9u4zb/Tjr4VwW0v0A+L4sDN3QHP/8SQ3e7VMh/07TbfzjOBw7OYiKEL 8PZcLRxRwqRmOZvhnUXs2Q3FQR/aFMWeNmpWk4dOiaGWGCynykC/gBgnn5gvSg== Received: from mx.bofh.network (mx.bofh.network [IPv6:2a01:4f8:261:25de::227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: bofh/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4ZRmmm4TpszBlg; Tue, 01 Apr 2025 12:01:12 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtpclient.apple (2a02-a470-6810-0-5473-72eb-9d5a-94e9.fixed6.kpn.net [2a02:a470:6810:0:5473:72eb:9d5a:94e9]) by mx.bofh.network (OpenSMTPD) with ESMTPSA id 950c78b3 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Tue, 1 Apr 2025 12:01:08 +0000 (UTC) Content-Type: multipart/signed; boundary="Apple-Mail=_7AEBAA0B-FB23-4242-9BCA-D0C93AB7C26E"; protocol="application/pgp-signature"; micalg=pgp-sha512 List-Id: Porting TeX and related applications to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-tex List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-tex@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.9\)) Subject: Re: Fixing pdfx in TeX Live (maybe upgrade to 2025?) From: Moin Rahman In-Reply-To: <20250401135032.1e43e765.grembo@freebsd.org> Date: Tue, 1 Apr 2025 14:00:57 +0200 Cc: "tex@freebsd.org" Message-Id: References: <20250401121518.0c2734b0.grembo@freebsd.org> <20250401135032.1e43e765.grembo@freebsd.org> To: Michael Gmelin X-Mailer: Apple Mail (2.3731.700.6.1.9) --Apple-Mail=_7AEBAA0B-FB23-4242-9BCA-D0C93AB7C26E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Apr 1, 2025, at 13:50, Michael Gmelin wrote: >=20 >=20 >=20 > On Tue, 1 Apr 2025 12:15:18 +0200 > Michael Gmelin wrote: >=20 >> Hi, >>=20 >> Currently pdfx is broken in TeX Live due to changes in latex. There >> is a new version of pdfx out there that fixes the problem which I >> assume is included in TeX Live 2025 - any chances to upgrade? >> Otherwise we could also patch the existing version. >>=20 >> Until then, adding this to files acts as a workaround: >>=20 >> \RequirePackage[2024-05-01]{latexrelease} >>=20 >> But this breaks other things, so it's not a real solution. >>=20 >> Thanks & Best >> Michael >>=20 >> p.s. this is the error in question: >>=20 >> ! LaTeX Error: Loading a class or package in a group. >>=20 >> p.p.s. for now I'm using the hack below, which could be the bare >> minimum to include - I could open PR or patch myself. >>=20 >> --- share/texmf-dist/tex/latex/pdfx/pdfx.sty.orig 2025-04-01 >> 10:13:02.158341000 +0000 +++ share/texmf-dist/tex/latex/pdfx/pdfx.sty >> 2025-04-01 10:12:48.131257000 +0000 @@ -2740,10 +2740,10 @@ >> %% it should be loaded outside the grouping, else biblatex may >> barf %% >> \RequirePackage{ifthen} >> +\RequirePackage{xmpincl} >> \begingroup >> %% override the \ifpdf check of xmpincl package, inside the >> grouping \pdftrue >> - \RequirePackage{xmpincl} >> %% combine coding from xmpincl and hyperxml to support XeTeX >> \def\pdfx@xmpincl@xetex#1{% >> \IfFileExists{#1.xmp}{% >>=20 >>=20 >=20 > The patch above was too naive, please see below for a working patch we > use in production now: >=20 > --- /usr/local/share/texmf-dist/tex/latex/pdfx/pdfx.sty.orig = 2025-04-01 10:13:02.158341000 +0000 > +++ /usr/local/share/texmf-dist/tex/latex/pdfx/pdfx.sty 2025-04-01 = 10:12:48.131257000 +0000 > @@ -2740,10 +2740,25 @@ > %% it should be loaded outside the grouping, else biblatex may barf > %% > \RequirePackage{ifthen} > -\begingroup > + > +%% 2024-04-05: from July 2024 LaTeX will not allow packages to load > +%% within a grouping, so reorganise a bit. > +%% > %% override the \ifpdf check of xmpincl package, inside the = grouping > - \pdftrue > - \RequirePackage{xmpincl} > +%% after saving its current value: > +\let\pdfx@ifpdf\ifpdf > +\pdftrue > +%% now load the packages, then enter the grouping: > +\RequirePackage{xmpincl} > +%% > +\begingroup > +%%% 20240405 revert the value of \ifpdf ... > +\pdfx@ifpdf > +\else > + %% 20240624 ... outside the grouping > + \aftergroup\pdffalse > +\fi > + > %% combine coding from xmpincl and hyperxml to support XeTeX > \def\pdfx@xmpincl@xetex#1{% > \IfFileExists{#1.xmp}{% >=20 >=20 > Please let me know if I should open a PR with that patch or if you = will > proceed to upgrading TeX Live soon anyway. >=20 > Best > Michael >=20 > -- > Michael Gmelin >=20 Can you confirm whether if the following solved the problem: = https://cgit.freebsd.org/ports/commit/?id=3D993771b186bca2a5de9fa00f7f6788= 763306417c Kind regards, Moin --Apple-Mail=_7AEBAA0B-FB23-4242-9BCA-D0C93AB7C26E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmfr1XlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA vJEReQ/7BylsXcei4Co0PEDtqRwpbEiDuwaUnGBAZRcvqkUHe+vI9XuKDMR4mzcb 645YtLKfaDTMqSTBmJWiq+k/yeMkxoC4F7dxlDg/e/rMjQAzsC81llw/X0hM0uaZ m1Nv0Ms21uqdPJb1oZ/0JZppQpYXYhpRDEYbqJtJYThqH7bK22HF+h7n75exeOzd GhvYumR9ADa08767SFh8Kzu1uExVibw10408Xv8g1wmv+uefM52JHHH7ZH7tFTsI U6wATt2Yayb0FASf89i1JvhSMoItLtIs/J7LNzlM1IcY3LY8AzsEi8LiSRwNbhMD Y0KpX1VtFbKRANdg8alXQoEkqL9W9iOTuRCGXfNjjkOTueJA/ZLUcH4lUhjZ8+gI vFV3+Lm89Vw53b2xJsaYjLsPF99exwz/JN4/DNAmuBdGZUJ4M4xll+VOZrSCKdT2 6LQE9t/yCGCq4B7D00Kso+DZRAcinnVO9dEaelYxipi8qRh0C//GnIRa9RswYz/2 WKrmNs66bruZrm2to+1TRVexAn3zt9QoGqwL19D86O2E2NVPqocO5x6xTCHHGIfw yi5Ly3bAhU/FKm1FBflUGXqGbXJBLZdr3BmVPktQnjbw01SrPlwe2BH48hWBEngN IIbmVMKOd/TvM1O0K9KeRT1rOnIx5lPcZBJVpA2DmbVtD5VFOSM= =OAzZ -----END PGP SIGNATURE----- --Apple-Mail=_7AEBAA0B-FB23-4242-9BCA-D0C93AB7C26E--