Graphics, Figures & TablesTable issues misplaced omit and undefined control sequence

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
majo428
Posts: 2
Joined: Wed Aug 23, 2023 3:11 pm

Table issues misplaced omit and undefined control sequence

Post by majo428 »

Hi,

I used an automatic table generator for this table, but Latex is showing 2 main mistakes:
1. This compile didn’t produce a PDF. This can happen if:
There is an unrecoverable LaTeX error. If there are LaTeX errors shown below or in the raw logs, please try to fix them and compile again.
The document environment contains no content. If it’s empty, please add some content and compile again.
This project contains a file called output.pdf. If that file exists, please rename it and compile again.
2. Undefined control sequence. <recently read> \cline

l.320 ...cients - Stress symptomatology} \\ \cline
{1-5} \cline{7-11}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
l.320 ...ess symptomatology} \\ \cline{1-5} \cline
{7-11}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

3. Misplaced \omit.
\multispan ->\omit
\@multispan
l.321 \multicolumn{2}{|l|}{}
&
I expect to see \omit only after tab marks or the \cr of
an alignment. Proceed, and I'll ignore this case.

! Undefined control sequence.
<recently read> \cline


Here is part of the table codes where this error is happening, please could someone help me.





\begin{table}[]
\begin{tabular}{|lllllllllll|}
\hline
\multicolumn{11}{|l|}{} \\ \hline
\multicolumn{5}{|l|}{Independent Samples T-Test} &
\multicolumn{1}{l|}{\multirow{4}{*}{}} &
\multicolumn{5}{l|}{Model Coefficients - Stress symptomatology} \\ \cline{1-5} \cline{7-11}
\multicolumn{2}{|l|}{} &
\multicolumn{1}{l|}{Statistic} &
\multicolumn{1}{l|}{df} &
\multicolumn{1}{l|}{p} &
\multicolumn{1}{l|}{} &
\multicolumn{3}{l|}{} &
\multicolumn{2}{l|}{95\% Confidence Interval} \\
\cline{1-5} \cline{7-11}
\multicolumn{1}{|l|}{Age} &
\multicolumn{1}{l|}{Student's t} &
\multicolumn{1}{l|}{2,16} &
\multicolumn{1}{l|}{60,0} &
\multicolumn{1}{l|}{0,034} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{Predictor} &
\multicolumn{1}{l|}{p} &
\multicolumn{1}{l|}{Odds ratio} &
\multicolumn{1}{l|}{Lower} & {Upper} \\
\cline{1-5} \cline{7-11}
\multicolumn{1}{|l|}{} &
\multicolumn{1}{l|}{} &

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Table issues misplaced omit and undefined control sequence

Post by Stefan Kottwitz »

Hi,

the code that you posted doesn't have any error. See, I completed it for you (next time post a complete code exampke...) and it runs without problem, click on "Run LaTeX here":

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{table}[]
\begin{tabular}{|lllllllllll|}
\hline
\multicolumn{11}{|l|}{} \\ \hline
\multicolumn{5}{|l|}{Independent Samples T-Test} &
\multicolumn{1}{l|}{\multirow{4}{*}{}} &
\multicolumn{5}{l|}{Model Coefficients - Stress symptomatology} \\ \cline{1-5} \cline{7-11}
\multicolumn{2}{|l|}{} &
\multicolumn{1}{l|}{Statistic} &
\multicolumn{1}{l|}{df} &
\multicolumn{1}{l|}{p} &
\multicolumn{1}{l|}{} &
\multicolumn{3}{l|}{} &
\multicolumn{2}{l|}{95\% Confidence Interval} \\
\cline{1-5} \cline{7-11}
\multicolumn{1}{|l|}{Age} &
\multicolumn{1}{l|}{Student's t} &
\multicolumn{1}{l|}{2,16} &
\multicolumn{1}{l|}{60,0} &
\multicolumn{1}{l|}{0,034} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{Predictor} &
\multicolumn{1}{l|}{p} &
\multicolumn{1}{l|}{Odds ratio} &
\multicolumn{1}{l|}{Lower} & {Upper} \\
\cline{1-5} \cline{7-11}
\multicolumn{1}{|l|}{} &
\multicolumn{1}{l|}{} &
\end{tabular}
\end{table}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
As Rainer wrote in your previous topic, post a compilable example that shows the issue for perfect help. Click here: Infominimal working example

Stefan
LaTeX.org admin
Post Reply