如何将桌子安装到单光束滑轨上?

如何将桌子安装到单光束滑轨上?

我尝试使用 \small 和 \adjust 命令,但无法获得所需的结果。请帮忙。MWE 附在下面。

\begin{table}[!ht]
\centering
\caption{EXata simulation parameters}
\vspace{0.3cm}
\label{tab-3.2:assumptions}
\begin{tabular}{|l|l|l|}
    \hline
    \textbf{Interface} & \textbf{Parameter}            & \textbf{Value}                                                                 \\ \hline
    & Coordinate System             & Cartesian                                                                      \\
    & Grid Size (mxm)                    & 1500x1500                                                                      \\
    Terrain                  & Altitude Range (m)       & \begin{tabular}[c]{@{}l@{}}1500 (above sea level)\end{tabular}                                                         \\
    & Simulation length (s)   & 900                                                                            \\
    & Number of nodes               & 50, 75, 100, 150, 200                                                                   
    \\
    & Weather mobility (s)   & 100                         
    \\ \hline
    & Frequency (GHz)               & 2.4                                                                            \\
    Channel Properties       & Pathloss Model                & Two Ray                                                                        \\
    & Shadowing Model               & Log normal                                                                     \\
    & Shadowing Mean (dB)           & 5.8                                                                            \\ \hline
    & Radio Type                    & 802.15.4                                                                       \\
    & Transmission Power     & 3.0 dBm                                                                            \\
    & Packet Reception Model        & PHY802.15.4                                                                    \\
    Physical                 & Modulation Scheme             & O-QPSK                                                                         \\
    & CCA Mode                      & Carrier Sense                                                                  \\
    & Antenna Model                 & Omnidirectional                                                                \\
    & Noise Factor                  & 10.0                                                                           \\
    & Energy Model                  & MicaZ                                                                          \\ \hline
    & Protocol                      & 802.15.4                                                                       \\
    MAC                      & Device Type                   & FFD                                                                            \\
    & FFD Mode                      & PAN Coordinator                                                                \\ \hline
    Network                  & Protocol                      & IPv4                                                                           \\
    & Routing Protocol              & \begin{tabular}[c]{@{}l@{}}AODV, Bellman Ford, \\Fisheye, Lanmar\end{tabular} \\ \hline
    & Mobility Model                & \begin{tabular}[c]{@{}l@{}}Random Waypoint\end{tabular}                                                                \\
    Mobility and Placement   & Pause Time (seconds)          & 10                                                                             \\
    & Node Orientation    & \begin{tabular}[c]{@{}l@{}}azimuth=90, \\ elevation=70\end{tabular}            \\ \hline
    & Model                         & Linear                                                                         \\
    Battery Model            & Monitoring Interval (s) & 60                                                                             \\
    & Capacity (mAh)               & 1200                                                                           \\ \hline
    & Number of packets             & 1000                                                                           \\
    & Packet Size (bytes)           & 64                                                                             \\
    Application              & Start Time (seconds)          & 10                                                                             \\
    & End Time (seconds)            & 900                                                                            \\
    & Packet generation rate        & 100 packets/second \\ \hline
\end{tabular}
\end{table}

答案1

您的表格很高...为了将其放入一个框架中,您应该将其字体大小减小到,\tiny并减小\arraystretch到 0.8,并省略框架标题:

在此处输入图片描述

\documentclass{beamer}
\usepackage{booktabs,
            tabularx}

\begin{document}
    \begin{frame}
%\frametitle{The table}
    \begin{table}
    \tiny
    \renewcommand\arraystretch{0.8}
\caption{EXata simulation parameters}
\label{tab-3.2:assumptions}

\begin{tabularx}{\linewidth}{@{} l X >{\raggedright\arraybackslash}X @{}}
    \toprule
\textbf{Interface}  & \textbf{Parameter}    & \textbf{Value}    \\ 
    \midrule
Terrain   
    & Coordinate System         & Cartesian                             \\
    & Grid Size (m$\times$m)    & 1500$\times$1500                      \\
    & Altitude Range (m)        & 1500 (above sea level)                \\
    & Simulation length (s)     & 900                                   \\
    & Number of nodes           & 50, 75, 100, 150, 200                 \\
    & Weather mobility (s)      & 100                                   \\
    \addlinespace[2pt]
Channel Properties
    & Frequency (GHz)           & 2.4                                   \\
    & Pathloss Model            & Two Ray                               \\
    & Shadowing Model           & Log normal                            \\
    & Shadowing Mean (dB)       & 5.8                                   \\
    \addlinespace[2pt]
Physical 
    & Radio Type                & 802.15.4                              \\
    & Transmission Power        & 3.0 dBm                               \\                                                                            & Packet Reception Model    & PHY802.15.4                           \\
    & Modulation Scheme         & O-QPSK                                \\
    & CCA Mode                  & Carrier Sense                         \\
    & Antenna Model             & Omnidirectional                       \\
    & Noise Factor              & 10.0                                  \\
    & Energy Model              & MicaZ                                 \\
    \addlinespace[2pt]
MAC & Protocol                  & 802.15.4                              \\
    & Device Type               & FFD                                   \\
    & FFD Mode                  & PAN Coordinator                       \\ 
    \addlinespace[2pt]
Network             
    & Protocol                  & IPv4                                  \\
    & Routing Protocol          & AODV, Bellman Ford, Fisheye, Lanmar   \\
    \addlinespace[2pt]
Mobility and Placement
    & Mobility Model            & Random Waypoint                       \\
    & Pause Time (seconds)      & 10                                    \\
    & Node Orientation          & azimuth:~90, elevation:~70            \\
    \addlinespace[2pt]
Battery Model   
    & Model                     & Linear                                \\
    & Monitoring Interval (s)   & 60                                    \\
    & Capacity (mAh)            & 1200                                  \\ 
    \addlinespace[2pt]
Application
    & Number of packets         & 1000      \\
    & Packet Size (bytes)       & 64        \\
    & Start Time (seconds)      & 10        \\
    & End Time (seconds)        & 900       \\
    & Packet generation rate    & 100 packets/second \\ 
    \bottomrule
\end{tabularx}
    \end{table}
\end{frame}
\end{document}

另一个选项是将表格分成两部分,并使用\footnotesize字体大小使其更易读。此表格放在框架中的两张幻灯片上(您不想这样做,但是当表格看起来几乎不可读时,预计观众会填满):

\documentclass{beamer}
\usepackage{booktabs,
            tabularx}

\begin{document}
\begin{frame}[allowframebreaks]
\frametitle{The table}
\vspace*{-\baselineskip}
    \begin{table}
    \footnotesize
    \renewcommand\arraystretch{0.85}
    \setlength\tabcolsep{3pt}
\caption{EXata simulation parameters (first part)}
\label{tab-3.2:assumptions}
\begin{tabularx}{\linewidth}{@{} l X >{\raggedright\arraybackslash}X @{}}
    \toprule
\textbf{Interface}  & \textbf{Parameter}    & \textbf{Value}    \\
    \midrule
Terrain
    & Coordinate System         & Cartesian                             \\
    & Grid Size (m$\times$m)    & 1500$\times$1500                      \\
    & Altitude Range (m)        & 1500 (above sea level)                \\
    & Simulation length (s)     & 900                                   \\
    & Number of nodes           & 50, 75, 100, 150, 200                 \\
    & Weather mobility (s)      & 100                                   \\
    \addlinespace
Channel Properties
    & Frequency (GHz)           & 2.4                                   \\
    & Pathloss Model            & Two Ray                               \\
    & Shadowing Model           & Log normal                            \\
    & Shadowing Mean (dB)       & 5.8                                   \\
    \addlinespace
Physical
    & Radio Type                & 802.15.4                              \\
    & Transmission Power        & 3.0 dBm                               \\                                                                            & Packet Reception Model    & PHY802.15.4                           \\
    & Modulation Scheme         & O-QPSK                                \\
    & CCA Mode                  & Carrier Sense                         \\
    & Antenna Model             & Omnidirectional                       \\
    & Noise Factor              & 10.0                                  \\
    & Energy Model              & MicaZ                                 \\
    \bottomrule
\end{tabularx}
    \end{table}

\framebreak
    \begin{table}
    \footnotesize
    \renewcommand\arraystretch{0.85}
    \setlength\tabcolsep{3pt}
\caption{EXata simulation parameters (second part)}
\begin{tabularx}{\linewidth}{@{} l X >{\raggedright\arraybackslash}X @{}}
    \toprule
\textbf{Interface}  & \textbf{Parameter}    & \textbf{Value}    \\
    \midrule
MAC & Protocol                  & 802.15.4                              \\
    & Device Type               & FFD                                   \\
    & FFD Mode                  & PAN Coordinator                       \\
    \addlinespace
Network
    & Protocol                  & IPv4                                  \\
    & Routing Protocol          & AODV, Bellman Ford, Fisheye, Lanmar   \\
    \addlinespace
Mobility and Placement
    & Mobility Model            & Random Waypoint                       \\
    & Pause Time (seconds)      & 10                                    \\
    & Node Orientation          & azimuth:~90, elevation:~70            \\
    \addlinespace
Battery Model
    & Model                     & Linear                                \\
    & Monitoring Interval (s)   & 60                                    \\
    & Capacity (mAh)            & 1200                                  \\
    \addlinespace
Application
    & Number of packets         & 1000      \\
    & Packet Size (bytes)       & 64        \\
    & Start Time (seconds)      & 10        \\
    & End Time (seconds)        & 900       \\
    & Packet generation rate    & 100 packets/second \\
    \bottomrule
\end{tabularx}
    \end{table}
\end{frame}
\end{document}

这使:

在此处输入图片描述

答案2

高度约 3 厘米被注释掉,我会拆分表格或删除标题:

\documentclass[12pt,oneside]{beamer}

\begin{document}
%
\begin{frame}
%\frametitle{This is a frame with a table}
\begin{table}[!ht]
\centering
\caption{EXata simulation parameters}
\vspace{0.3cm}
\label{tab-3.2:assumptions}
%\resizebox{\linewidth}{3cm}{% i would split it up
\resizebox{\linewidth}{!}{%
\begin{tabular}{|l|l|l|}
    \hline
    \textbf{Interface} & \textbf{Parameter}            & \textbf{Value}                                                                 \\ \hline
    & Coordinate System             & Cartesian                                                                      \\
    & Grid Size (mxm)                    & 1500x1500                                                                      \\
    Terrain                  & Altitude Range (m)       & \begin{tabular}[c]{@{}l@{}}1500 (above sea level)\end{tabular}                                                         \\
    & Simulation length (s)   & 900                                                                            \\
    & Number of nodes               & 50, 75, 100, 150, 200                                                                   
    \\
    & Weather mobility (s)   & 100                         
    \\ \hline
    & Frequency (GHz)               & 2.4                                                                            \\
    Channel Properties       & Pathloss Model                & Two Ray                                                                        \\
    & Shadowing Model               & Log normal                                                                     \\
    & Shadowing Mean (dB)           & 5.8                                                                            \\ \hline
    & Radio Type                    & 802.15.4                                                                       \\
    & Transmission Power     & 3.0 dBm                                                                            \\
    & Packet Reception Model        & PHY802.15.4                                                                    \\
    Physical                 & Modulation Scheme             & O-QPSK                                                                         \\
    & CCA Mode                      & Carrier Sense                                                                  \\
    & Antenna Model                 & Omnidirectional                                                                \\
    & Noise Factor                  & 10.0                                                                           \\
    & Energy Model                  & MicaZ                                                                          \\ \hline
    & Protocol                      & 802.15.4                                                                       \\
    MAC                      & Device Type                   & FFD                                                                            \\
    & FFD Mode                      & PAN Coordinator                                                                \\ \hline
    Network                  & Protocol                      & IPv4                                                                           \\
    & Routing Protocol              & \begin{tabular}[c]{@{}l@{}}AODV, Bellman Ford, \\Fisheye, Lanmar\end{tabular} \\ \hline
    & Mobility Model                & \begin{tabular}[c]{@{}l@{}}Random Waypoint\end{tabular}                                                                \\
    Mobility and Placement   & Pause Time (seconds)          & 10                                                                             \\
    & Node Orientation    & \begin{tabular}[c]{@{}l@{}}azimuth=90, \\ elevation=70\end{tabular}            \\ \hline
    & Model                         & Linear                                                                         \\
    Battery Model            & Monitoring Interval (s) & 60                                                                             \\
    & Capacity (mAh)               & 1200                                                                           \\ \hline
    & Number of packets             & 1000                                                                           \\
    & Packet Size (bytes)           & 64                                                                             \\
    Application              & Start Time (seconds)          & 10                                                                             \\
    & End Time (seconds)            & 900                                                                            \\
    & Packet generation rate        & 100 packets/second \\ \hline
\end{tabular}
}
\end{table}
\end{frame}
\end{document}```

相关内容