我正在尝试将表格添加到我的 Latex 文档中。
但是表格宽度超出了页面。
这是我的代码
%table
\begin{table}[h]
\centering
\caption{Implementation Assumptions and Dependencies}
\label{tab: c4T1}
\begin{tabular}{|l|l|}
\hline \textbf{Assumptions} & \textbf{Dependencies} \\
\hline
Private and Public keys share according to \newline secure exiting protocols.
& Video Stream Scanning Quality \newline depends on Mobile camera quality.\\
\hline
All keys Store secure manner in devices.
& Encoded data decoding depends on picture quality and another environment condition. (light)\\
\hline
Assume media broadcast channel free of noise.
& Encode and Decoding time depend on CPU power and Memory of machine and Mobile. \\
\hline
\end{tabular}
\end{table}
这是我的输出。
我需要一些专家来纠正下面的输出格式。
答案1
\noindent% <-- important
\setlength\tabcolsep{3pt} % default: 6pt
\begin{table}[h]
\centering
\caption{Implementation Assumptions and Dependencies}
\label{tab: c4T1}
\begin{tabularx}{\textwidth}{|X|X|}
\hline \textbf{Assumptions} & \textbf{Dependencies} \\
\hline
Private and Public keys share according to secure exiting protocols.
& Video Stream Scanning Quality depends on Mobile camera quality.\\
\hline
All keys Store secure manner in devices.
& Encoded data decoding depends on picture quality and another environment condition. (light)\\
\hline
Assume media broadcast channel free of noise.
& Encode and Decoding time depend on CPU power and Memory of machine and Mobile. \\
\hline
\end{tabularx}
\end{table}