使用 Latex 描述天线的尺寸

使用 Latex 描述天线的尺寸

我一直在尝试在乳胶代码中插入天线尺寸表。我使用了代码

\begin{table}[h]
\centering
\begin{tabular}{l | l | l | l | l}
Reference Number & BW (GhHz) & Antenna size (mm3) & Gain & Notched Bands (GHz) \\
\hline
[20] & 2.3-13.75  & 39*39*1 pt 6 & 1 pt 4-46 & 2 pt 25-3.75
5.08-5.9
7.06-7.95
 \\
[21] & 3.11-13.15 & 28*52*1.6 & 1.53-4.05 & 5.1-5.92 \\
[22] & 2.8-14 & 27*36*1.6 & N/A & 3.26-3.9
4.35-5.05
5.5-6.35
7.95-9.35
 \\
Current Work & 3.1 – 17 & 24*28*1.6 & 4.5-8 & 3.2-3.9
7.2-8.5

\end{tabular}
\caption{Comparison of the suggested antenna to antennas in previous litrature}
\end{table}
\end{document}

但错误:

\begin{table}[h]
\centering
\begin{tabular}{l | l | l | l | l}
Reference Number & BW (GhHz) & Antenna size (mm3) & Gain & Notched Bands (GHz) \\
\hline
[20] & 2.3-13.75  & 39*39*1 pt 6 & 1 pt 4-46 & 2 pt 25-3.75
5.08-5.9
7.06-7.95
 \\
[21] & 3.11-13.15 & 28*52*1.6 & 1.53-4.05 & 5.1-5.92 \\
[22] & 2.8-14 & 27*36*1.6 & N/A & 3.26-3.9
4.35-5.05
5.5-6.35
7.95-9.35
 \\
Current Work & 3.1 – 17 & 24*28*1.6 & 4.5-8 & 3.2-3.9
7.2-8.5

\end{tabular}
\caption{Comparison of the suggested antenna to antennas in previous litrature}
\end{table}
\end{document} 

一直显示。我怎样才能简单地在表中插入项目的尺寸。

答案1

看看您的表格中的以下 MWE 是否可以接受:

\documentclass{article}
\usepackage{makecell}
\setlength\extrarowheight{2pt}

\begin{document}
\begin{table}[ht]
\centering
\begin{tabular}[t]{l | l | l | l | >{\raggedright\arraybackslash}p{9em}}
    \hline
\makecell{Reference\\ Number}
        & \makecell{BW\\(GHz)}
                        & \makecell{Antenna\\ size (mm)}
                                    & \makecell{Gain\\ (dB)}
                                                & \makecell{Notched\\ Bands (GHz)}   \\
    \hline
{[20]}  & 2.3-13.75     & 39*39*1   & 4-46      & 25-3.75 5.08-5.9 7.06-7.95                \\
{[21]}  & 3.11-13.15    & 28*52*1.6 & 1.53-4.05 & 5.1-5.92                                  \\
{[22]}  & 2.8-14        & 27*36*1.6 & N/A       & 3.26-3.9 4.35-5.05 5.5-6.35 7.95-9.35     \\
Current Work & 3.1–17   & 24*28*1.6 & 4.5-8     & 3.2-3.9 7.2-8.5                           \\
    \hline
\end{tabular}
\caption{Comparison of the suggested antenna to antennas in previous literature}
\end{table}
\end{document}

在此处输入图片描述

(红线表示 tex 区域边界)

相关内容