![第二列环境第一页和第二页顶部的表格和 2x2 图](https://linux22.com/image/315415/%E7%AC%AC%E4%BA%8C%E5%88%97%E7%8E%AF%E5%A2%83%E7%AC%AC%E4%B8%80%E9%A1%B5%E5%92%8C%E7%AC%AC%E4%BA%8C%E9%A1%B5%E9%A1%B6%E9%83%A8%E7%9A%84%E8%A1%A8%E6%A0%BC%E5%92%8C%202x2%20%E5%9B%BE.png)
谁能帮我修改我的代码以便我能够实现以下目标。
1.如何让表格位于第一页的顶部?现在它会跳过第一页并跳转到第二页的中间。
2.图表看起来不太好。有没有办法让它们在第二页的顶部变成 2x2。就像我附上的图片一样(它是 1x3,但我想要 3x2,不确定 2x3 是否看起来更好)。
3.任何其他修改都极受欢迎!
% arara: pdflatex
\documentclass[aps,prl,reprint,twocolumn,secnumarabic,nobalancelastpage,amsmath,amssymb,nofootinbib]{revtex4}
%graphics is outdated, I believe
\usepackage{graphicx} % remove demo!
\usepackage{fancyhdr}
\usepackage{xcolor} % use the more modern xcolor!
\usepackage{atbegshi}
\usepackage{siunitx}
\pagestyle{fancy}
\lhead{PHYSICS \textbf{18L}}
\chead{MODERN\quad PHYSICS\quad LABOTORARY}
\rhead{23 APRIL 2015}
\AtBeginDocument{%
\rfoot{\raisebox{1.5pt}{\scalebox{0.7}{\textcopyright}} 2015 UCLA Physics Department}%
\AtBeginShipoutNext{%
\rfoot{}%
}%
}
\renewcommand{\headrulewidth}{1pt}
\newcommand*\espa{\\[2.5 mm]}
\usepackage{blindtext} % just for demo
\begin{document}
Here are the table and plots.
\begin{table*}[t]
\begin{tabular}{l >{\ttfamily}l S[table-format=1.6] S[table-format=1.0]}
\hline\hline \\[-0.8em]
Method Name & \normalfont Matlab Function & {Elapsed Time(s)} & {Figure Number}\\[0.5ex]
\hline \\[-0.35em]
Component Averaging method & cav & 2.411990 & 1\espa
Cimmino's method & cimmino & 2.197837 & 2\espa
Diagonally Relaxed Orthogonal Projections method & drop & 2.268414 & 3\espa
Landweber's method & landweber & 2.056113 & 4\espa
Simultaneous Algebraic Reconstruction Technique(SART) & sart & 0.864440 & 5\espa
Algebraic Reconstruction Technique(ART) & kaczmarz & 784.641220 & 6\espa
\hline\hline
\end{tabular} %784.641220
\caption{Measured elapse time of Matlab internal execution from various tomographic algorithms}
\end{table*}
\begin{figure*}[t]
\vspace{-2.42cm}
\begin{minipage}[t]{.50\linewidth}
\includegraphics[width=1.1\textwidth, height = 6cm]{cav.png}
\caption{ cav.}
\end{minipage}%
\hfill
\begin{minipage}[t]{.50\linewidth}
\includegraphics[width=1.1\textwidth, height = 6cm]{cimmino.png}
\caption{ cimmino.}
\end{minipage}
\bigskip%
\begin{minipage}[t]{.50\linewidth}
\includegraphics[width=1.1\textwidth, height = 6cm]{drop.png}
\caption{ drop.}
\end{minipage}%
\hfill
\begin{minipage}[t]{.50\linewidth}
\includegraphics[width=1.1\textwidth, height = 6cm]{landweber.png}
\caption{ landweber.}
\end{minipage}
\bigskip%
\begin{minipage}[t]{.50\linewidth}
\includegraphics[width=1.1\textwidth, height = 6cm]{sart.png}
\caption{ sart.}
\end{minipage}%
\hfill
\begin{minipage}[t]{.50\linewidth}
\includegraphics[width=1.1\textwidth, height = 6cm]{art.png}
\caption{ art.}
\end{minipage}%
\end{figure*}
\end{document}
答案1
第一行上方的表格似乎相当棘手。请参阅评论中的链接。其余的,您可以按照我的 MWE 中的方法进行操作。由于subcaption
与您的文档类不兼容,我只是将它们放入minipage
s 中。如果您想要 2x3,只需重新排序空白行和\hfil
s 即可。
% arara: pdflatex
\documentclass[aps,prl,reprint,twocolumn,secnumarabic,nobalancelastpage,amsmath,amssymb,nofootinbib]{revtex4}
%graphics is outdated, I believe
\usepackage[demo]{graphicx} % remove demo!
\usepackage{fancyhdr}
\usepackage{xcolor} % use the more modern xcolor!
\usepackage{atbegshi}
\usepackage{siunitx}
\pagestyle{fancy}
\lhead{PHYSICS \textbf{18L}}
\chead{MODERN\quad PHYSICS\quad LABOTORARY}
\rhead{23 APRIL 2015}
\AtBeginDocument{%
\rfoot{\raisebox{1.5pt}{\scalebox{0.7}{\textcopyright}} 2015 UCLA Physics Department}%
\AtBeginShipoutNext{%
\rfoot{}%
}%
}
\renewcommand{\headrulewidth}{1pt}
\newcommand*\espa{\\[2.5 mm]}
\usepackage{blindtext} % just for demo
\begin{document}
\begin{table*}
\begin{tabular}{l >{\ttfamily}l S[table-format=1.6] S[table-format=1.0]}
\hline\hline \\[-0.8em]
Method Name & \normalfont Matlab Function & {Elapsed Time(s)} & {Figure Number}\\[0.5ex]
\hline \\[-0.35em]
Component Averaging method & cav & 2.411990 & 1\espa
Cimmino's method & cimmino & 2.197837 & 2\espa
Diagonally Relaxed Orthogonal Projections method & drop & 2.268414 & 3\espa
Landweber's method & landweber & 2.056113 & 4\espa
Simultaneous Algebraic Reconstruction Technique(SART) & sart & 0.864440 & 5\espa
\hline\hline
\end{tabular}
\caption{Measured elapse time of Matlab internal execution from various tomographic algorithms}
\end{table*}
\Blindtext\Blindtext
\begin{figure*}[t]
\begin{minipage}[t]{.3\linewidth}
\includegraphics[scale=0.677]{cav.png}
\caption{ cav.}
\end{minipage}\hfil
\begin{minipage}[t]{.3\linewidth}
\includegraphics[scale=0.677]{cimmino.png}
\caption{ cimmino.}
\end{minipage}\hfil
\begin{minipage}[t]{.3\linewidth}
\includegraphics[scale=0.677]{cimmino.png}
\caption{ cimmino.}
\end{minipage}%
\bigskip%
\begin{minipage}[t]{.3\linewidth}
\includegraphics[scale=0.245]{drop.png}
\caption{ drop.}
\end{minipage}\hfil
\begin{minipage}[t]{.3\linewidth}
\includegraphics[scale=0.677]{landweber.png}
\caption{ landweber.}
\end{minipage}\hfil
\begin{minipage}[t]{.3\linewidth}
\includegraphics[scale=0.677]{sart.png}
\caption{ sart.}
\end{minipage}%
\end{figure*}
\Blindtext\Blindtext
\end{document}
请注意,为了获得更清晰的外观,我不得不删除多少代码。这距离 MWE 还很远。对于以后的问题,请尽量减少。