another issue migrating code this time pretty specific to tabular fields :)

Mike Marchywka marchywka at hotmail.com
Thu Jan 16 18:21:45 CET 2025


Not long ago I brought up another system with revtex4.2 and it seemed
to work but I don't have it in front of me right now and maybe I did
not test the p format. 
I took array.sty from  my very old working system, dated about 2020, and that failed
but the post you cite suggested I need a 2016 version anyway lol. 

I'll see if I can produce a MWE or come up with a hack .

Thanks. 

 pdflatex --recorder --halt-on-error copper.tex | highlight array | more
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded forma
t=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./copper.tex
LaTeX2e <2024-11-01> patch level 1
L3 programming layer <2024-12-25>
(/home/documents/latex/share/includes/myrevtexheaders.tex
(/usr/local/texlive/2024/texmf-dist/tex/latex/revtex/revtex4-2.cls
Document Class: revtex4-2 2022/06/05 4.2f (https://journals.aps.org/revtex/ for
 documentation)
ltxutil[2022/06/05 4.2f utilities package (portions licensed from W. E. Baxter 
web at superscript.com)]
ltxfront[2022/06/05 4.2f frontmatter package (AO,DPC,MD)]
ltxgrid[2022/06/05 4.2f page grid package (portions licensed from W. E. Baxter 
web at superscript.com)]
(/usr/local/texlive/2024/texmf-dist/tex/latex/revtex/aps4-2.rtx)

Class revtex4-2 Warning: No journal specified, using default pra.


Class revtex4-2 Warning: No type size specified, using default 10.

(/usr/local/texlive/2024/texmf-dist/tex/latex/revtex/aps10pt4-2.rtx)
(/usr/local/texlive/2024/texmf-dist/tex/latex/textcase/textcase.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/natbib/natbib.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/revtex/revsymb4-2.sty))
(/home/documents/latex/share/includes/myskeletonpackages.tex
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp.sty
`Fixed Point Package', Version 0.8, April 2, 1995 (C) Michael Mehlich
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/defpattern.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-basic.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-addons.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-snap.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-exp.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-trigo.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-pas.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-random.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-eqn.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-upn.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fp/fp-eval.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/siunitx/siunitx.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/translations/translations.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/local/texlive/2024/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)))
(./array.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/pbox/pbox.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ifthen.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/comment/comment.sty
Excluding comment 'comment')
(/usr/local/texlive/2024/texmf-dist/tex/latex/framed/framed.sty)
(/home/documents/latex/pkg/lgrind.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-def/pdftex.def)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-cfg/graphics.cfg))
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/keyval.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/longtable.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/epsf/epsf.sty
This is `epsf.tex' v2.7.4 <14 February 2011>
) (/usr/local/texlive/2024/texmf-dist/tex/latex/tools/bm.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hycolor/hycolor.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/refcount/refcount.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/gettitlestring/gettitlestring.s
ty (/usr/local/texlive/2024/texmf-dist/tex/latex/kvoptions/kvoptions.sty))

Package nameref Warning: The definition of \label has changed! 
(nameref)                Check your packages! 
(nameref)                Replacing it with the kernel definition on input line 
149.

) (/usr/local/texlive/2024/texmf-dist/tex/generic/stringenc/stringenc.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2024/texmf-dist/tex/generic/intcalc/intcalc.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/puenc.def)



 Mike Marchywka 
157 Zachary 
Talking Rock GA 30175
was 44 Crosscreek Trail Jasper GA 30143
was 306 Charles Cox Drive  Canton, GA 30115
470-758-0799
404-788-1216 




________________________________________
From: David Carlisle <d.p.carlisle at gmail.com>
Sent: Thursday, January 16, 2025 11:58 AM
To: Mike Marchywka
Cc: texhax at tug.org
Subject: Re: another issue migrating code this time pretty specific to tabular fields :)


I would guess that your issue is as in this post and my answer there will fix it (but as you have not shown any information to reproduce the error, that's only a guess.

https://tex.stackexchange.com/a/731850/1090



On Thu, 16 Jan 2025 at 16:48, Mike Marchywka <marchywka at hotmail.com<mailto:marchywka at hotmail.com>> wrote:
The code that is actually bombing seems to be in revtex4.2f
and I can't figure out how to get earlier revtex4.2 version from ctan
or aps.
It seems to get farther with this change but no idea what this code does lol,

 \do{%
  \@testpach
  \ifcase\@chclass
   \@classz
 % mjm  \or
   \@classi
  \or
   \@classii
  \or
   \save at decl


then it dies with this,

! Bad register code (-1).
\save at decl ->\toks \count@
                           =\expandafter \expandafter \expandafter {\expanda...
l.2966  \mjmdistab



 Mike Marchywka
157 Zachary
Talking Rock GA 30175
was 44 Crosscreek Trail Jasper GA 30143
was 306 Charles Cox Drive  Canton, GA 30115
470-758-0799
404-788-1216




________________________________________
From: David Carlisle <d.p.carlisle at gmail.com<mailto:d.p.carlisle at gmail.com>>
Sent: Thursday, January 16, 2025 10:14 AM
To: Mike Marchywka
Cc: texhax at tug.org<mailto:texhax at tug.org>
Subject: Re: another issue migrating code this time pretty specific to tabular fields :)



On Thu, 16 Jan 2025 at 13:49, Mike Marchywka <marchywka at hotmail.com<mailto:marchywka at hotmail.com><mailto:marchywka at hotmail.com<mailto:marchywka at hotmail.com>>> wrote:
Thanks. The array.sty seems to be coming from the proper directory.
Is there an invokation option i should use to get more debug info?
Suspicious includes ( not from 2024/texlive ) include lgrind and fltpage
and I just got the most recent fltpage.

You haven't shown any version  numbers or example that reproduces the problem
but most likely you have packages not expecting the current latex release,
It's not suspicious that lgrind and fltpage do not come from texlive as they are not
distributed with texlive for licence reasons.

David



more copper.fls | grep -v 2024/tex
PWD /home/documents/latex/proj/copper
INPUT ./copper.tex
OUTPUT copper.log
INPUT /home/documents/latex/share/includes/myrevtexheaders.tex
INPUT /home/documents/latex/share/includes/myskeletonpackages.tex
INPUT /home/documents/latex/pkg/lgrind.sty
INPUT /home/documents/latex/pkg/fltpage.sty
INPUT /home/documents/latex/share/includes/recent_template.tex
INPUT /home/documents/latex/share/includes/mycommands.tex
INPUT /home/documents/latex/share/includes/mjmaddbib.tex
INPUT /home/documents/latex/share/includes/mjmlistings.tex


 Mike Marchywka
157 Zachary
Talking Rock GA 30175
was 44 Crosscreek Trail Jasper GA 30143
was 306 Charles Cox Drive  Canton, GA 30115
470-758-0799
404-788-1216




________________________________________
From: David Carlisle <d.p.carlisle at gmail.com<mailto:d.p.carlisle at gmail.com><mailto:d.p.carlisle at gmail.com<mailto:d.p.carlisle at gmail.com>>>
Sent: Wednesday, January 15, 2025 7:34 PM
To: Mike Marchywka
Cc: texhax at tug.org<mailto:texhax at tug.org><mailto:texhax at tug.org<mailto:texhax at tug.org>>
Subject: Re: another issue migrating code this time pretty specific to tabular fields :)

you are showing version numbers for pdftex but the error isn't in pdftex.
Most likely you have code assuming an old copy of array.sty when you are using a new one (or the other way round)

David


On Wed, 15 Jan 2025 at 21:43, Mike Marchywka <marchywka at hotmail.com<mailto:marchywka at hotmail.com><mailto:marchywka at hotmail.com<mailto:marchywka at hotmail.com>><mailto:marchywka at hotmail.com<mailto:marchywka at hotmail.com><mailto:marchywka at hotmail.com<mailto:marchywka at hotmail.com>>>> wrote:
Previously I had updated latex and the input here helped me to create
a "legacy" flag in my latex source that appears to more or less work.
However, this time I encountered a very specific problem. This document
will compile ok if I change the tabular spec.

The code that was working generates this error on the new latex,

./copper.tex:3476: Extra \or.
<argument> \@testpach \ifcase \@chclass \@classz \or
                                          \@classi \or \@classii \or \save at decl
l.3476 \mjmhersheytable

It seems to work if change the "4in" paragraph to a "r" field,

\newcommand{\mjmhersheytable}
{
\begin{table}[H] \centering
% this used to work
\begin{tabular}{|c|r|p{4in}|}
% this works
%\begin{tabular}{|c|r|r|}




literally just got it today,

pdflatex --version
pdfTeX 3.141592653-2.6-1.40.26 (TeX Live 2024)
kpathsea version 6.4.0
Copyright 2024 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.43; using libpng 1.6.43
Compiled with zlib 1.3.1; using zlib 1.3.1
Compiled with xpdf version 4.04


Thoughts? I had installed the ubuntu repo version first as its in my
scripts to bring up a new system so it could be pulling wrong file
somewhere.

Thanks.

 Mike Marchywka
157 Zachary
Talking Rock GA 30175
was 44 Crosscreek Trail Jasper GA 30143
was 306 Charles Cox Drive  Canton, GA 30115
470-758-0799
404-788-1216






More information about the texhax mailing list.