Quantcast
Viewing latest article 1
Browse Latest Browse All 2

Answer by Mico for Tabular 2 column issue: Misplaced \noalign

The instruction \centering{\textbf{Description}} creates the error message. Since I can't see a good reason for wanting to center the contents of the header cells, I'd get rid of the \centering directives. (If, for some reason, you simply must center the contents of the right-hand header cell, simply replace \textbf{Description} with \multicolumn{1}{c|}{\textbf{Description}}.

I'd also switch to a tabularx setup and set the target width of the table to \textwidth.

Image may be NSFW.
Clik here to view.
enter image description here

\documentclass{article}\usepackage{tabularx,ragged2e}\usepackage{caption}\begin{document}\begin{table}[htb]\setlength\extrarowheight{2pt} % for a less-cramped look\begin{tabularx}{\textwidth}{ | >{\RaggedRight}p{0.2\linewidth} | % suppress full justification>{\RaggedRight}X | } % suppress full justification\hline\textbf{Feature} & \textbf{Description} \\\hlineCORS control     & test \\\hlineRate Limiting    & test \\\hline\end{tabularx}\caption{API Gateway Requirements.}\label{tab:api-gateway-requirements}\end{table}\end{document}

Viewing latest article 1
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>