\documentclass[reprint,amsmath,amssymb,aps]{revtex4-2}
\usepackage{ctex}%可以写中文
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{color}%加入颜色
\usepackage{hyperref}%加入链接
\begin{document}
\title{公式和表达双栏变单栏}
\author{沐睦}
\affiliation{知乎专栏-LaTex学习笔记}
\date{\today}
\begin{abstract}
双栏公式变单栏,需要加入begin\{widetext\},双栏表格变单栏,需要把begin\{table\}改为begin\{table*\}。
\end{abstract}
\maketitle
本文参考资料来源于APS模板,详见网址 \href{https://journals.aps.org/revtex/revtex-faq#u1}{https://journals.aps.org/revtex/revtex-faq}, 找到并下载“The current release of REVTeX 4.2 may be download directly from this site as a zipfile: \textcolor{red}{revtex4-2-tds.zip}. In addition, it may be found on CTAN in the latex/contrib/revtex directory.”模板来源于“REVTeX 4.2 comes with template files called apstemplate.tex for APS journals and aiptemplate.tex for AIP journals as well additional templates for AAPM and SOR journals. They are located in the doc/latex/revtex/sample directory.”
\section{公式从双栏变单栏}
这是一个双栏公式
\begin{equation}
E=mc^2.
\end{equation}
The equation that follows is set in a wide format, i.e., it spans the full page.
The wide format is reserved for long equations
that cannot easily be set in a single column:
这是一个单栏公式
\begin{widetext}
\begin{equation}
{\cal R}^{(\text{d})}=
g_{\sigma_2}^e
\left(
\frac{[\Gamma^Z(3,21)]_{\sigma_1}}{Q_{12}^2-M_W^2}
+\frac{[\Gamma^Z(13,2)]_{\sigma_1}}{Q_{13}^2-M_W^2}
\right)
+ x_WQ_e
\left(
\frac{[\Gamma^\gamma(3,21)]_{\sigma_1}}{Q_{12}^2-M_W^2}
+\frac{[\Gamma^\gamma(13,2)]_{\sigma_1}}{Q_{13}^2-M_W^2}
\right)\;.
\label{eq:wideeq}
\end{equation}
\end{widetext}
然后还原双栏。
\section{表格从双栏变单栏}
下面是一个双栏表格和双栏表格:
\begin{table}
\caption{\label{tab:table1}A table that fits into a single column of a two-column layout.
Note that REV\TeX~4 adjusts the intercolumn spacing so that the table fills the
entire width of the column. Table captions are numbered
automatically.
This table illustrates left-, center-, decimal- and right-aligned columns,
along with the use of the \texttt{ruledtabular} environment which sets the
Scotch (double) rules above and below the alignment, per APS style.
\begin{ruledtabular}
\begin{tabular}{lcdr}
\textrm{Left\footnote{Note a.}}&
\textrm{Centered\footnote{Note b.}}&
\multicolumn{1}{c}{\textrm{Decimal}}&
\textrm{Right}\\
\colrule
1 & 2 & 3.001 & 4\\
10 & 20 & 30 & 40\\
100 & 200 & 300.0 & 400\\
\end{tabular}
\end{ruledtabular}
\end{table}
\clearpage %双栏另起一页
\begin{table*}
\caption{\label{tab:table3}This is a wide table that spans the full page
width in a two-column layout. It is formatted using the
\texttt{table*} environment. It also demonstates the use of
\textbackslash\texttt{multicolumn} in rows with entries that span
more than one column.}
\begin{ruledtabular}
\begin{tabular}{ccccc}
&\multicolumn{2}{c}{$D_{4h}^1$}&\multicolumn{2}{c}{$D_{4h}^5$}\\
Ion&1st alternative&2nd alternative&lst alternative
&2nd alternative\\ \hline
K&$(2e)+(2f)$&$(4i)$ &$(2c)+(2d)$&$(4f)$ \\
Mn&$(2g)$\footnote{The $z$ parameter of these positions is $z\sim\frac{1}{4}$.}
&$(a)+(b)+(c)+(d)$&$(4e)$&$(2a)+(2b)$\\
Cl&$(a)+(b)+(c)+(d)$&$(2g)$\footnotemark[1]
&$(4e)^{\text{a}}$\\
He&$(8r)^{\text{a}}$&$(4j)^{\text{a}}$&$(4g)^{\text{a}}$\\
Ag& &$(4k)^{\text{a}}$& &$(4h)^{\text{a}}$\\