<div dir="ltr"><div>> 

! LaTeX Error: Loading a class or package in a group. </div><div><br></div><div>pdfx was update this week to fix that</div><div><br></div><div><a href="https://ctan.org/ctan-ann/id/mailman.77.1719900776.3550.ctan-ann@ctan.org">https://ctan.org/ctan-ann/id/mailman.77.1719900776.3550.ctan-ann@ctan.org</a></div><div><br></div><div>David</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 3 Jul 2024 at 11:32, Erik Nijenhuis <<a href="mailto:erik@xerdi.com">erik@xerdi.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
Yesterday, I was working on open-sourcing my resume [1], which had the following<br>
implementation:<br>
\usepackage[a-1b]{pdfx}<br>
\usepackage{hyperref}<br>
...<br>
<br>
However, coincidentally I had to update TeX Live on my docker image [2], due to<br>
the introduction of the ImageMagick dependency (making thumbnails of PDF).<br>
The newest version of TeX Live introduced the following bug [3]:<br>
<br>
! LaTeX Error: Loading a class or package in a group.<br>
<br>
See the LaTeX manual or LaTeX Companion for explanation.<br>
Type  H <return>  for immediate help.<br>
 ...                                              <br>
<br>
l.2746  \RequirePackage<br>
                     {xmpincl}<br>
?<br>
! Emergency stop.<br>
 ...                                              <br>
<br>
l.2746  \RequirePackage<br>
                     {xmpincl} <br>
<br>
So after that, I found a workaround by David Carlisle for this [4]:<br>
\let\foo\currentgrouplevel<br>
\chardef\currentgrouplevel0<br>
\usepackage{pdfx}<br>
\let\currentgrouplevel\foo<br>
<br>
Which led to the next bug [5]:<br>
<br>
! Package pdfx Error: <br>
(pdfx) Cannot change the \pdfminorversion<br>
(pdfx) PDF version remains at 1.5.<br>
(pdfx) Use \pdfmajorversion=1 <br>
and \pdfminorversion=3 before \documentclass.<br>
<br>
See the pdfx package documentation for explanation.<br>
Type  H <return>  for immediate help.<br>
 ...                                              <br>
<br>
l.352 ...\the\pdfmajorversion.\the\pdfminorversion.}<br>
                                                  %<br>
? <br>
! Emergency stop.<br>
 ...                                              <br>
<br>
l.352 ...\the\pdfmajorversion.\the\pdfminorversion.}<br>
<br>
Since I'm using LuaLaTeX, adding the following before the documentclass will<br>
finally solve the problem:<br>
\pdfvariable majorversion = 1<br>
\pdfvariable minorversion = 4<br>
<br>
Also fiddled with \RequirePackage{pdf14}, however, I've noticed that the Docker<br>
image is expecting PDF 1.3 and my locale machine PDF 1.4.<br>
<br>
Does someone know of a clean approach with (or without) package pdfx for PDF/A-<br>
1b compliance with the latest version of TeX Live?<br>
<br>
[1] <a href="https://github.com/MacLotsen/my-resume" rel="noreferrer" target="_blank">https://github.com/MacLotsen/my-resume</a><br>
[2] <a href="https://github.com/Xerdi/xdp-docker" rel="noreferrer" target="_blank">https://github.com/Xerdi/xdp-docker</a><br>
[3]<br>
<a href="https://github.com/MacLotsen/my-resume/actions/runs/9763119831/job/26948215450#step:4:352" rel="noreferrer" target="_blank">https://github.com/MacLotsen/my-resume/actions/runs/9763119831/job/26948215450#step:4:352</a><br>
[4]<br>
<a href="https://tex.stackexchange.com/questions/720981/pdfx-workaround-breaks-itemize/720984#720984" rel="noreferrer" target="_blank">https://tex.stackexchange.com/questions/720981/pdfx-workaround-breaks-itemize/720984#720984</a><br>
[5]<br>
<a href="https://github.com/MacLotsen/my-resume/actions/runs/9765564676/job/26956511671#step:4:313" rel="noreferrer" target="_blank">https://github.com/MacLotsen/my-resume/actions/runs/9765564676/job/26956511671#step:4:313</a><br>
<br>
Kind regards,<br>
<br>
<br>
Erik Nijenhuis<br>
<br>
</blockquote></div>