# How to shift a table to the left?

I am sending my paper to mdpi.com. They have their own standard of paper formatting. One of my tables is very wide and exceededs the paper's width

There is big space on the left side. Is there a way I can shift the table only to the left to look like this?

Here is my script:

    \caption{ML algorithms and evaluation methods used for clinical notes.}
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline

\\
\cline{2-16}

\\

\hline

\cline{1-16}

\cline{1-16}

\end{tabular}
\label{table_Algorithms}
\end{center}
\end{table}


Testing all these algorithms manually would require data science expertise along with a large

\documentclass[computers,article,submit,moreauthors,pdftex]{Definitions/mdpi}
\usepackage{amsmath,amssymb,pifont,amsfonts,makecell,ulem}

\usepackage{xcolor}

\usepackage{acronym}

\acrodef{AutoML}[AutoML]{automated machine learning}
\acrodef{ML}[ML]{machine learning}
\acrodef{AI}[AI]{artificial intelligence}
\acrodef{EHR}[EHR]{electronic health record}
\acrodef{NLP}[NLP]{natural language processing}
\acrodef{SVM}[SVM]{support vector machine}
\definecolor{mygreen}{RGB}{30, 155, 30}

\firstpage{1}
\makeatletter
\setcounter{page}{\@firstpage}
\makeatother
\pubvolume{1}
\issuenum{1}
\articlenumber{0}
\pubyear{2021}
\dateaccepted{}
\datepublished{}


Edit:

I rotated them vertically but the header text touches the line above

    \begin{table}[!htb]
\caption{ML algorithms and evaluation methods used for clinical notes.}
\centering  % <---
\setlength\tabcolsep{3pt}

\begin{center}

\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline

\\
\cline{2-16}

\\

\hline



• Please tell us which document class and which LaTeX packages you load. How wide is the text block? How is mygreen defined? How or where is \ding defined?
– Mico
Feb 10 at 7:26
• @Mico i added it to the question Feb 10 at 7:47
• Your table is to wide that it can be fit in the text block, so it spill out on the right page border. Feb 10 at 8:11
• @Zarko I know, that is why I want to shift it left Feb 10 at 8:12
• you need to make narrower ... for shift see changepage package. Feb 10 at 8:20

See, if the following suit to your needs:

\documentclass{article}
\usepackage{geometry}

\usepackage{amsmath,amssymb,pifont,ulem}
\newcommand\Yes{\textcolor{red}{\ding{53}}}     % <---
\newcommand\No{\textcolor{teal}{\checkmark}}    % <---
\usepackage{makecell, multirow, rotating}       % <---
\usepackage{xcolor}

\begin{document}
\begin{table}
\caption{ML algorithms and evaluation methods used for clinical notes.}
\centering  % <---
\setlength\tabcolsep{3pt}  % <---
\begin{tabular}{|c| *{15}{>{\centering\arraybackslash}p{1.8em}|} }
\hline
\\
\cline{2-16}

\hline
& \No   & \Yes  & \No   & \No   & \No   & \No   & \Yes  & \No
& \Yes  & \No   & \No   & \No   & \Yes  & \No   & \No   \\

\cline{1-16}
& \No   & \No   & \No   & \Yes  & \No   & \No   & \Yes  & \Yes
& \Yes  & \No   & \No   & \No   & \Yes  & \No   & \No   \\
\cline{1-16}
\end{tabular}
\label{table_Algorithms}
\end{table}
\end{document}


First two rows in above MWQE I use because I haven't used \documentclass. If table is still to wide, than try to reduce font size to \small:

• Thanks, I used rotated header which indeed helped with reducing the table's width.. the only problem i have now is the space, coz the Accuracy word touching the line on top. I will edit my question Feb 10 at 16:11
• @asmgx, if you consider my answer as it is, you would'n t have your troubles ;-). In your MWE you forgot on the following code line from my MWE: \settowidth\rotheadsize{\theadfont Accuracy}. BTW, consider to remove all clutter in your MWE. For comparison see MWE in received answers. Feb 10 at 16:21

You wrote,

"I cannot make [the table] narrower"

Yes you can -- by, say, getting rid of all \textbf directives and almost all \thead directives in the header cells, omitting all 17 vertical bars, setting \tabcolsep to 0pt and employing a tabular* environment, employing a \small font size directive. Separately, you could use the line-drawing macros of the booktabs package -- \toprule, \midrule, \cmidrule, \addlinespace, and \bottomrule -- instead of \hline and \cline in order to give the table a more open and inviting "look".

\documentclass[computers,article,submit,moreauthors,pdftex]{Definitions/mdpi}

%% [preamble]

%% new:
\usepackage{booktabs,lipsum}
\newcommand\redcross{\textcolor{red}{\footnotesize\ding{53}}}
\newcommand\greencheck{\textcolor{mygreen}{\checkmark}}

\begin{document}

\begin{table}
\setlength\tabcolsep{0pt}
\caption{ML algorithms and evaluation methods used for clinical notes.}
\label{table_Algorithms}

\small
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}} l *{15}{c} }
\toprule

Research
& \multicolumn{6}{c}{Statistical Algorithms}
& \multicolumn{4}{c}{Neural Networks}
& \multicolumn{5}{c}{Evaluation Methods}
\\
\cmidrule{2-7} \cmidrule{8-11} \cmidrule{12-16}
&RF&LR&DT&SVM&NB&KNN
&CNN&RNN&LSTM&GRU
\\
\midrule
\cite{426}
& \redcross & \greencheck & \redcross   & \redcross   & \redcross
& \redcross & \greencheck & \redcross   & \greencheck & \redcross
& \redcross & \redcross   & \greencheck & \redcross   & \redcross \\