在 pnastwo 文档类中排版长方程式

在 pnastwo 文档类中排版长方程式

通常,在两列格式中使用revtex4或时revtex4.1,人们希望排版一个较长的公式。执行此操作的标准方法是使用环境widetext(看到这个问题)。

类似地revtex4,有一个名为的样式类pnastwo,这是一个两列样式类。但是,与 不同revtex4pnastwo不支持 widetext 环境。

使用文档类时,如何以单列模式排版长方程式pnastwo

这是一个编译的最小示例。

\documentclass{pnastwo}

\usepackage[pdftex]{graphicx, color}
\DeclareGraphicsRule{.pdftex}{pdf}{.pdftex}{}
\usepackage{amsmath,amssymb,latexsym}

\usepackage[english]{babel}
\usepackage{lipsum}


\contributor{Submitted to Proceedings
of the National Academy of Sciences of the United States of America}
\url{www.pnas.org/cgi/doi/10.1073/pnas.0709640104}
\copyrightyear{2008}
\issuedate{Issue Date}
\volume{Volume}
\issuenumber{Issue Number}


\begin{document}
\title{Title Goes Here.}


\author{First{1}{University of Cambridge, Cambridge,
United Kingdom},
Second{2}{Universidad de Murcia, Bioquimica y Biologia
Molecular, Murcia, Spain}, \and Third\affil{2}{}}

\contributor{Submitted to Proceedings of the National Academy of Sciences
of the United States of America}


\maketitle


\begin{article}

\begin{abstract}
\lipsum[1]
\end{abstract}




\keywords{\LaTeX | problems}


\noindent{\bf Significance:} Why? 

\vspace{5mm}
\dropcap{T}his is some sample text that I want. \lipsum[3]
% this is the wide equation I want to type
\begin{equation}
Lots of math goes here. Lots of math goes here. Lots of math goes here. Lots of math goes here. Lots of math goes here. Lots of math goes here. 
\end{equation}
\lipsum[3]
\end{article}



\end{document}

答案1

你基本上可以选择打破方程式,使其适合一列,例如通过包括

\usepackage{amsmath}

然后

\begin{align}
long math= this\\
         &= that\\
         &= the other
\end{align}

或者让公式在某个页面的顶部全宽浮动

\begin{figure*}
\[ long expression here\]
\end{figure*}

所以...

\documentclass{pnastwo}

\usepackage[pdftex]{graphicx, color}
\DeclareGraphicsRule{.pdftex}{pdf}{.pdftex}{}
\usepackage{amsmath,amssymb,latexsym}

\usepackage[english]{babel}
\usepackage{lipsum}


\contributor{Submitted to Proceedings
of the National Academy of Sciences of the United States of America}
\url{www.pnas.org/cgi/doi/10.1073/pnas.0709640104}
\copyrightyear{2008}
\issuedate{Issue Date}
\volume{Volume}
\issuenumber{Issue Number}


\begin{document}
\title{Title Goes Here.}


\author{First{1}{University of Cambridge, Cambridge,
United Kingdom},
Second{2}{Universidad de Murcia, Bioquimica y Biologia
Molecular, Murcia, Spain}, \and Third\affil{2}{}}

\contributor{Submitted to Proceedings of the National Academy of Sciences
of the United States of America}


\maketitle


\begin{article}

\begin{abstract}
\lipsum[1]
\end{abstract}




\keywords{\LaTeX | problems}


\noindent{\bfseries Significance:} Why? 

\vspace{5mm}
\dropcap{T}his is some sample text that I want. \lipsum[3]
% this is the wide equation I want to type
\begin{figure*}
\begin{equation}
Lots of math goes here. Lots of math goes here. Lots of math goes here. Lots of math goes here. Lots of math goes here. Lots of math goes here. 
\end{equation}
\end{figure*}
\begin{multline}
Lots of math goes here.\\
 Lots of math goes here.\\
 Lots of math goes here. Lots\\
 of math goes here. Lots of\\
 math goes here.\\
 Lots of math goes here. 
\end{multline}

\lipsum[3]
\end{article}



\end{document}

在此处输入图片描述

在这个例子中,顶部浮动位于标题上方,您可以通过不允许标题页上的顶部浮动来在其他地方阻止它,我也摆脱了\bf

相关内容