An hline input bug?

Thomas Schneider schneidt at
Mon Sep 20 13:04:38 CEST 2021

This problem did not occur with a previous 2018 version of latex
(Version 3.14159265-2.6-1.40.19 (TeX Live 2018)), but after upgrading
to the latest latex:

% latex --version
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2021)

For this tex file:

================= hline.tex =================
\begin{tabular}{|cr|} \hline

where this file is being input:

================= mytable.tex =================
a & 1 \\
b & 2 \\
c & 3 \\

This should make a little table like so:

|a  1|
|b  2|
|c  3|

However, it now gives an error that I did not get for the 2018 version
of latex:

! Misplaced \noalign.
\hline ->\noalign 
                  {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet...
l.5 \hline
! Emergency stop.
\hline ->\noalign 
                  {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet...
l.5 \hline
End of file on the terminal!

\hline ->\noalign\hline+->\noalign

Apparently the \hline now thinks it is not following a \\ because the
data come from an \input.


also fails.

Putting the \hline into the input file works, but now there is an
extra vertical bar on the left just below the table like this:

|a  1|
|b  2|
|c  3|

I am reading the table in because it is generated by other programs.

Is there a way to do this?

(For now I'm getting around the problem by putting the entire tabular
into the input file and it works properly.)


  Thomas D. Schneider, Ph.D.
  Senior Investigator
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research
  RNA Biology Laboratory
  Biological Information Theory Group
  Frederick, Maryland  21702-1201
  schneidt at

More information about the texhax mailing list.