I have a big table shown above with some problems:
1- I want to centralize (horizontally and vertically) the contents of all cells except the second column, vertically and horizontally. Also to centralize all the titles.
2- There should be a little space above and below the title of last 3 columns (three items below "Definition of users").
3- There is extra space below "Method 1 [1]" and on top of "Method 1's description".
4- The "InformationRetrieval1" name on the last row (first column) should break automatically since it is in a fixed length column, but it isn't.
Note that I am showing an MWE example here and the actual table is so bigger and fits the whole page (plus some of the margins). So please do not recommend changing the layout or removing the adjustbox, etc.:
Here's the code:
\RequirePackage{fix-cm}
\RequirePackage{amsmath}
\documentclass{svjour3}
\usepackage[backend=biber, maxnames=10, minnames=10]{biblatex}
\addbibresource{project.bib}
\smartqed % flush right qed marks, e.g. at end of proof
\usepackage{graphicx}
\usepackage{floatrow}
\usepackage{lipsum}
\usepackage{multirow}
\usepackage{hhline}
\usepackage[group-separator={,},group-minimum-digits=4]{siunitx}
\usepackage{geometry}
\usepackage{adjustbox}
\usepackage{changepage}
\usepackage{makecell}
\usepackage{afterpage}
\usepackage{amssymb}
\usepackage{comment}
\usepackage{array}
\newcolumntype{?}{!{\vrule width 2pt}}
\makeatletter
\def\cl@chapter{\@elt {theorem}}
\makeatother
\usepackage{cleveref}%[2013/12/28]
\crefformat{footnote}{#2\footnotemark[#1]#3}
\journalname{Empirical Software Engineering}
\begin{document}
\title{Test project}
\author{Author 1 \and
Author 2
}
\institute{Author 1 \at
University of X \\
\email{author1@someDomain.com}
\and
Author 2 \at
University of X
}
\date{Received: date / Accepted: date}
\maketitle
\begin{abstract}
Abstract
\keywords{keywords}
\end{abstract}
\section{Introduction}
Intro here ...
\section{Literature Review}
Lit review here \cite{Test1} ...
\newgeometry{bottom=0.5cm}
\begin{table}[htbp]
\centering
\begin{adjustbox}{center}
\caption{A review of previous methods and their used information for solving the problem}
\setlength\tabcolsep{2pt}
\hskip-13mm
\begin{tabular}{|m{16mm}?c|p{120mm}|c|c|c|}
\hline
\multirow{2}{*}{Method} & \multirow{2}{*}{Year} & \multicolumn{1}{c|}{\multirow{2}{*}{A summary of the techniques used}} & \multicolumn{3}{c|}{Definition of users} \\
\cline{4-6} & & & \parbox{14mm}{\linespread{1}\selectfont{}\centering Final commenter} & \parbox{11mm}{\linespread{1}\selectfont{}\centering Closer / opener} & \parbox{11mm}{\linespread{1}\selectfont{}\centering Drafted login ...} \\
\Xhline{5\arrayrulewidth}
Method 1 \cite{Test1} & 2004 & Method 1's description: This shows how the method works in different situations and what it has that is not mentioned in other works. & & \checkmark & \checkmark \\ \hline
ML1 & 2006 & Uses \textbf{Support Vector Machines (SVM)} classifier and text categorization to classify and label the input data (documents) into people (categories). Also used other machine learning approaches like and Naive Bayes to solve the problem. There are some Natural Language Processing (NLP) methods used in this method in order to remove stop words and filter extra keywords. & & \checkmark & \\ \hline
InformationRetrieval1 & 2009 & This method utilizes Bag of words;
It Employed the \textbf{Vector Space Model (VSM)} and relies on a vocabulary of ``technical terms'' collected from the users' messages in the Facebook posts and the comments people made on his posts. The users' posts are modeled as a big document and then a term vector, based on each user's history. Given a new topic, their approach finds closest user --according to the \textbf{cosine distance}-- is identified. & \checkmark & & \checkmark \\ \hline
\end{tabular}
\label{tab:previousMethods}
\end{adjustbox}
\vspace{-10pt}
\enlargethispage{-\baselineskip}
\end{table}
\restoregeometry
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
Continue literature review ...
\printbibliography % Prints the bibliography
\end{document}
The full code in the template is here: https://www.overleaf.com/9886798djbxjmvvhnjv#/36227506/
I tried different solutions that would work separately, but they did not work in this example, maybe because of the used template (the .clo and .cls files that are currently available in the above example in overleaf). Feel free to make a copy of the whole project and test separately in overleaf.
I appreciate solutions to any of the above problems.
fix-cm
package.