LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

Alignment inaccuracies for \input in {tabular}

Open dginev opened this issue 1 year ago • 0 comments

Encountered while debugging the arXiv report at: https://github.com/arXiv/html_feedback/issues/418

The caption issue reported there is resolved, but a separate bug is using \input inside a complex tabular. As a first minimal example from that article, I extracted:

\documentclass{article}
\usepackage{booktabs}
\begin{document}

\begin{tabular}{llccc}
\toprule
  & & \multicolumn{3}{c}{Comparison} \\
  \cmidrule{3-5}
  Study & Method & $B$ vs. $A$ & $C$ vs. $A$ & $C$ vs. $B$ \\
\midrule
  \input ./datafile
\bottomrule
\end{tabular}

\end{document}

in an adjacent file datafile:

 AB & Truth & $-1.62$ & $-0.92$ & $0.70$ \\
   [0.5ex] & ML-NMR & $-1.53$ & $-0.62$ & $0.90$ \\

dginev avatar Feb 24 '24 13:02 dginev