Quantcast
Channel: Tabular 2 column issue: Misplaced \noalign - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

Tabular 2 column issue: Misplaced \noalign

$
0
0

I was previously using 3 columns. I switched to 2 columns, formatted everything to fit, and the table broke.

I cannot find a way to fix it, can someone help me to find and solve the issue?

Minimal Reproducible Example (compiled with Overleaf):

\documentclass{article}\usepackage{caption}\usepackage{float}\usepackage{array}\newcolumntype{L}[1]{>{\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}\newcolumntype{C}[1]{>{\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}\newcolumntype{R}[1]{>{\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}\renewcommand\arraystretch{1.5}\author{mikyll}\title{test}\begin{document}\maketitle\section{Introduction}\begin{table}[H]    \centering    \begin{tabular}{ |p{0.2\linewidth}|p{0.7\linewidth}| }        \hline        \centering{\textbf{Feature}} & \centering{\textbf{Description}}\\        \hline        CORS control & test\\        \hline        Rate Limiting & test \\        \hline    \end{tabular}    \caption{API Gateway Requirements.}    \label{tab:api-gateway-requirements}\end{table}\end{document}

Result:

enter image description here

Error:

enter image description here

31: Misplaced \noalign32: Extra alignment tab has been changed to \cr.

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

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