Skip to content

LaTeX2e 2022-06-01 以降で nidanfloat がエラー #5

@aminophen

Description

@aminophen

確かに ! LaTeX mark Error: Infinite shrinkage found in 'column'. が出ます。

\makeatletter
\def\TABLE{\@ifnextchar*{\TABLE@}{\TABLE@{}}}
\def\TABLE@#1#2{%
  \begin{table#1}[ht]
  \caption{#2}
  \centering
  \begin{tabular}{p{0.25\linewidth}p{0.25\linewidth}p{0.25\linewidth}}
  \hline
  column 1 & column 2 & column 3\\
  \hline
  cell 1 & cell 2 & cell 3\\
  cell 1 & cell 2 & cell 3\\
  \hline
  \end{tabular}
  \end{table#1}}
\makeatother

\documentclass[twocolumn]{article}
\textheight8cm
\usepackage{lipsum}

\usepackage{nidanfloat}
\begin{document}

\TABLE*{First}
\TABLE{Second}
\TABLE*{Third}
\lipsum*[1-4]
\end{document}

\RequirePackage[2022/05/31]{platexrelease} に巻き戻すと一応エラーは消えるので,LaTeX2e 2022-06-01 で何かが起きています。

なお nidanfloat は LaTeX2e 2015/01/01 での「フロート順序修正」に追随していない (#1) ので,フロートの順序が崩れます。これは本件とは別に対処が必要。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions