# Copy/paste code from Overleaf to LaTeX?

I'm a rookie so I copied/pasted code from a document/template which I found on Overleaf.com to my LaTeX document, in hope of getting the table shown below. However, it did not work as intended.

\documentclass[num-refs]{wiley-article}


I believe the above might be the cause of the problem (?)

Here is the code:

\documentclass[num-refs]{wiley-article}

\usepackage{siunitx}
\usepackage{graphicx}
\usepackage[para,online,flushleft]{threeparttable}

\begin{table}[bt]
\caption{This is a table. Tables should be self-contained and complement, but not duplicate, information contained in the text. They should be not be provided as images. Legends should be concise but comprehensive – the table, legend and footnotes must be understandable without reference to the text. All abbreviations must be defined in footnotes.}
\begin{threeparttable}
\begin{tabular}{lccrr}
\thead{Variables} & \thead{JKL ($\boldsymbol{n=30}$)} & \thead{Control ($\boldsymbol{n=40}$)} & \thead{MN} & \thead{$\boldsymbol t$ (68)}\\
Age at testing & 38 & 58 & 504.48 & 58 ms\\
Age at testing & 38 & 58 & 504.48 & 58 ms\\
Age at testing & 38 & 58 & 504.48 & 58 ms\\
Age at testing & 38 & 58 & 504.48 & 58 ms\\
\hiderowcolors
stop alternating row colors from here onwards\\
Age at testing & 38 & 58 & 504.48 & 58 ms\\
Age at testing & 38 & 58 & 504.48 & 58 ms\\
\hline  % Please only put a hline at the end of the table
\end{tabular}

\begin{tablenotes}
\item JKL, just keep laughing; MN, merry noise.
\end{tablenotes}
\end{threeparttable}


Here is the result:

• I added some packages (code updated above) and after compiling everything can be viewed. However, it's not as "colorful" as the picture nor is 'TABLE 1' printed the same way as on the picture. Not to mention \headrow \thead \hiderowcolors are unknown commands. Jan 3 '18 at 23:06
• I updated the code once more, this is how it looks even if I save the whole project to my disk. I need to do some research, but I'll post a solution if I find one. Jan 3 '18 at 23:23

This is the output for the table when compiling main.tex locally: