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

Mike Marchywka marchywka at hotmail.com
Thu Jan 16 17:48:09 CET 2025


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>
Sent: Thursday, January 16, 2025 10:14 AM
To: Mike Marchywka
Cc: 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>> 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>>
Sent: Wednesday, January 15, 2025 7:34 PM
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 :)

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>>> 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.