如何在两列文章中排列多个表格?

如何在两列文章中排列多个表格?

如果我之前的问题在此处输入链接描述我有个问题:

对于我的文章的一页,我应该有两列文本,其中右列有两个相互衔接的表格。页面如下所示:

text here text here text here             table 1
text here text here text here
text here text here text here             table 2

 -table 3 in same width as the page, goes here-
 -table 4 in same width as the page, goes here-

我使用multicolswraptable但表格仍然在左列虽然我把对齐方式放在右边{r}

\documentclass[9pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\usepackage[british]{babel}
\setlength{\columnsep}{25 pt} % Distance between two columns
\usepackage{graphicx}
\usepackage{draftwatermark}
\SetWatermarkLightness{0.9} % Determines the lightness of the watermark color
\SetWatermarkText{\textsf{\textbf{PRELIMINARY}}}
\SetWatermarkScale{0.7} % Specifies the size of the watermark
\usepackage{wrapfig}
\usepackage{paralist}
\usepackage[left=1.5cm,right=1.5cm,top=2.5cm,bottom=3cm]{geometry} % page layout
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{xcolor}
\usepackage{multicol}
\usepackage{calc}
\usepackage{enumitem}
\usepackage{lastpage}
\usepackage{float}
\usepackage{gensymb}
\usepackage{tabularx,ragged2e,booktabs,caption}
\usepackage{subfigure}
\begin{multicols}{2}

\noindent\underline{\textbf{Control and Data Interface}}\\

\noindent Both data and control is supported through a single interface enabling simple integration to a dedicated controller or microprocessor. \\

\noindent\underline{\textbf{Communication information}}\\

\noindent Our device allows a wide range of data rates over the interface, enabled by registery depending on clock rates and other settings, shown in the table 2.\\

\noindent \underline{\textbf{Top Level Performance}}\\

\noindent Overall performance and final image information are available in our website.

\columnbreak

\begin{wraptable}{r}{0.5\textwidth}
\centering
\begin{tabular}{ |c|c|c| } 
\hline
 \multicolumn{3}{|c|}{\textbf{Functional and Performance Parameters}} \\
  \hline
Parameter & Value & Unit \\ 
\hline
Pixel Representation & 8 & bit \\
\hline
\end{tabular}
\caption{Functional and Performance Parameters}


\centering
\begin{tabular}{ |c|c|c|c| } 
\hline
 \multicolumn{4}{|c|}{\textbf{System Requirements}} \\
  \hline
Parameter & Min & Max & Unit \\ 
\hline
System Clock & 12 & 32 & MHz \\
\hline
Spin Clock & - & 24 & MHz \\
\hline
Digital Supply (Nominal) & 3.0 & 3.3 & V \\
\hline
Analog Supply (Nominal) & 3.0 & 3.3 & V \\
\hline
Digital IO Supply  & 1, 2 , 3.3 &  & V \\
\hline
\end{tabular}\\
\caption{System Requirements}
\end{wraptable}

\vspace{5mm}

\begin{table*}
\noindent\underline{\textbf{Operating Modes}}\\\\
\begin{tabularx}{1\textwidth}{|l|X|Xr|}
\hline
\textbf{Active Modes} & \textbf{Description} \\
\hline
Device on & The device can be on if you plug it to electricity. The setting - can be configured easily. The text here is long that's why I used tabluarx to fit it with the page width.\\
\hline
Image type & The final image is of png format and should be converted to jpeg first to process automatically by the device.
\end{tabularx}
\end{table*}



\begin{table*}
\begin{tabularx}{1\textwidth}{|l|X|Xr|}
\hline
\textbf{Inactive Modes} & \textbf{Description} \\
\hline
Power on & Power on is activated whenever you reset the device. It doesn't react to the commands over the control interface.\\ \hline

Standby & This is activated in default. You can change the setting by commands from the control interface and its functionality maybe enabled by register setting.\\ \hline
\end{tabularx}\\
\end{table*}


\underline{\textbf{Mode Transition Times}}\\

\noindent The table below defines typical delays associated with mode transitions.\\

\end{multicols}
\end{document}

我怎样才能按照如上所示的方式排列表格?

答案1

我删除了所有会从 latex 中生成警告(以及错误输出)的虚假信息\\并删除了 wrapfig,您在小于 .5\textwidth 宽度的列中指定文本(因为列分隔)以环绕指定为的表格.5\textwidth

我稍微缩小了表格中的文本,但它们仍然太宽,无法容纳在两列区域中

段落第 37-52 行的 \hbox 过满(宽 35.97255pt)

但利用学科知识,您可能可以进一步缩小或重新格式化。

不要使用\noindent类设计应该指定需要缩进的位置,如果您必须在每一行上覆盖设计,那就出了问题。

我也习惯\label参考表格而不是2明确使用。

在此处输入图片描述

\documentclass{article}

\usepackage{multicol,tabularx,capt-of}

\begin{document}

\begin{multicols}{2}

\section*{Control and Data Interface}

Both data and control is supported through a single interface enabling simple integration to a dedicated controller or microprocessor. 

\section*{Communication information}

Our device allows a wide range of data rates over the interface, enabled by registery depending on clock rates and other settings, shown in the table \ref{tz}.

\section*{Top Level Performance}

Overall performance and final image information are available in our website.

\columnbreak

\begin{center}
\setlength\extrarowheight{3pt}
\begin{tabular}{ |c|c|c| } 
\hline
Parameter & Value & Unit \\ 
\hline
Pixel Rep. & 8 & bit \\
\hline
\end{tabular}
\captionof{table}{Functional and Performance Parameters\label{ty}}
\end{center}

\begin{center}
\setlength\extrarowheight{3pt}
\begin{tabular}{ |c|c|c|c| } 
\hline
Parameter & Min & Max & Unit \\ 
\hline
System Clock & 12 & 32 & MHz \\
\hline
Spin Clock & - & 24 & MHz \\
\hline
Dig. Sup. (Nom.) & 3.0 & 3.3 & V \\
\hline
An. Sup. (Nom.) & 3.0 & 3.3 & V \\
\hline
Dig. IO Supply  & 1, 2, 3.3 &  & V \\
\hline
\end{tabular}
\captionof{table}{\label{tz}System Requirements}
\end{center}

\end{multicols}

\section*{Operating Modes}
\begin{center}
\setlength\extrarowheight{3pt}
\begin{tabularx}{1\textwidth}{|l|X||}
\hline
\textbf{Active Modes} & \textbf{Description} \\
\hline
Device on & The device can be on if you plug it to electricity. The setting - can be configured easily. The text here is long that's why I used tabluarx to fit it with the page width.\\
\hline
Image type & The final image is of png format and should be converted to jpeg first to process automatically by the device.
\end{tabularx}

\bigskip

\begin{tabularx}{\textwidth}{|l|X|}
\hline
\textbf{Inactive Modes} & \textbf{Description} \\
\hline
Power on & Power on is activated whenever you reset the device. It doesn't react to the commands over the control interface.\\ \hline

Standby & This is activated in default. You can change the setting by commands from the control interface and its functionality maybe enabled by register setting.\\ \hline
\end{tabularx}
\end{center}

\begin{multicols}{2}
\section*{Mode Transition Times}

The table below defines typical delays associated with mode transitions.\\

\end{multicols}

\end{document}

相关内容