Good morning, i've copied a code for a table that works in https://latexbase.com/ but i can't manage to get it work on texmaker.
The code is this one
\begin{table}[]
\centering
\caption{Experimental results}
\label{my-label}
\begin{tabular}{|llll|}
\cline{1-4}
\multicolumn{1}{|l|}{Scenario} & \multicolumn{1}{l|}{Drowsiness F_1-Score} & \multicolumn{1}{l|}{Non-drowsiness F_1-Score} & \multicolumn{1}{l|}{Accuracy} \\ \cline{1-4}
BareFace & 75.95\% & 76.12\% & 76.04\% \\ \cline{1-4}
Glasses & 76.78\% & 70.91\% & 74.17\% \\ \cline{1-4}
Sunglasses & 68.90\% & 75.18\% & 72.39\% \\ \cline{1-4}
Night-BareFace & 80.66\% & 72.11\% & 77.16\% \\ \cline{1-4}
Night-Glasses & 74.20\% & 81.66\% & 78.56\% \\ \cline{1-4}
Overall & 75.81\% & 75.65\% & 75.73\% \\ \cline{1-4}
\end{tabular}
\end{table}
And i've got this error
...\multicolumn{1}{l|}{Drowsiness F_1-Score}
& \multicolumn{1}{l|}{Non...
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Missing $ inserted.
<inserted text>
$
I've seen different threads about this problem but i'm still not able the get this work.
_
in text mode, you probably wantDrowsiness $F_1$-Score
tabular
environment comprises 4 columns, one could replace all instances of\cline{1-4}
with\hline
.