Using the following code, I can not figure out why the last column text is not displayed when using the code
\centering {\textcolor{black} {\bf receptors}}`
giving the error message
! Misplaced \noalign.
\hline ->\noalign
{\ifnum 0=`}\fi \penalty \@M \futurelet \@let@token \LT@@h...
l.38 \end{frame}
?
but it only could be displayed when using the code
\multicolumn{1}{c|}{\parbox {.29\textwidth}{\centering {\textcolor{black} {\bf receptors}}}}
MWE:
\documentclass{beamer}
\setbeamertemplate{navigation symbols}{}
\usepackage{verbatim}
\usepackage{longtable}
\usepackage{colortbl}
\usepackage{multicol}
\usepackage{multirow}
\begin{document}
\begin{frame}[t]
\frametitle{\bf Types of ...}
\begin{table}
\begin{minipage}[c]{1.\textwidth}
{
\begin{center}
\begin{longtable}[!htp]{|m{.16\textwidth}|m{.16\textwidth}|m{.28\textwidth}|}\hline
\centering {\textcolor{black} {\bf hello}} &
\centering {\textcolor{blue} {\bf hello}}\\
{\textcolor{green} {\bf hello}} &
%\centering {\textcolor{black} {\bf receptors}}
\multicolumn{1}{c|}{\parbox {.29\textwidth}{\centering {\textcolor{black} {\bf receptors}}}}
\\ \hline
\centering {\textcolor{black} {\bf hello}} &
\centering {\textcolor{blue} {\bf hello}}\\
{\textcolor{green} {\bf hello}} &
\\ \hline
\centering {\textcolor{black} {\bf hello}} &
\centering {\textcolor{blue} {\bf hello}}\\
{\textcolor{green} {\bf hello}} &
\\ \hline
\end{longtable}
\end{center}
}
\end{minipage}
\end{table}
\end{frame}
\end{document}


\bf, see https://tex.stackexchange.com/questions/516/does-it-matter-if-i-use-textit-or-it-bfseries-or-bf-etc – samcarter_is_at_topanswers.xyz Oct 05 '18 at 10:22