So, I am trying to write down a table in the "sn-jnl" document class from Springer: when I do it it "article" instead I get exactly what I want:
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|c|c|c|}
\hline
\multirow{2}{*}{A} & B & C \\cline{2-3}
& D & E\
\hline
\end{tabular}
\end{document}
But, once I use the document class I actually want...
\documentclass[sn-mathphys-num]{sn-jnl}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|c|c|c|}
\hline
\multirow{2}{*}{A} & B & C \\cline{2-3}
& D & E\
\hline
\end{tabular}
\end{document}
returns an "Undefined control sequence" for \cline: why is that? I can see in the file for the "sn-jnl" class the line
\let\cline\cmidrule
but I am not competent enough with LaTeX to know what that means, or more importantly how to circumvent it.
So, how do I use \cline with the document class "sn-jnl"?
Edit:
@cabonah pointed me to Latex Table Missing Border Lines, which suggests a few possible solutions that have not worked with me.
- Requiring the package "booktabs" before declaring the document class returned an "Undefined control sequence" for \begin{document};
- storing the original macro for \cline before declaring the document class resulted in the same problem;
- all other solutions would imply rewriting my whole table, what I think will be the unfortunate solution in the end...


sn-mathphys-numcan't be right. Did you mean to specify eithersn-mathorphys-num? – Mico Mar 06 '24 at 15:29sn-jnl.cls, and Springer has, in factk, created a new option called, drum roll,sn-mathphys-num. Sorry for the extraneous noise. – Mico Mar 06 '24 at 15:45multirow, but also how to fix it. BTW: Storing\clineto\clineorigis only half the way, you need to restore it too. And the other answers also work. So it is a duplicate. – cabohah Mar 06 '24 at 15:50