语言, Latex专题

两列Latex模板中实现公式占整行的方法

在两列Latex模板中,如果遇到公式比较长,可以通过以下方法直接实现占整行的效果,步骤为:在\begin{equation} \end{equation} 外面套一个\begin{figure*} \end{figure*} 。缺点是:公式只在下一页的顶部显示。可能还有其他使用宏包的方法,之后发现了再补充,有知道的可以留言。

代码示例:

\documentclass[twocolumn]{revtex4-2}
\usepackage{hyperref}

\begin{document}
    \title{Title}
    \maketitle
    \section{Introduction}
    The Schrödinger equation is a linear partial differential equation that governs the wave function of a quantum-mechanical system. Its discovery was a significant landmark in the development of quantum mechanics. It is named after Erwin Schrödinger, who postulated the equation in 1925 and published it in 1926, forming the basis for the work that resulted in his Nobel Prize in Physics in 1933.\cite{wikipedia_1}

    \begin{equation}
        i\hbar\frac{\partial}{\partial t}\psi(\textbf{r},t)=-\frac{\hbar^{2}}{2m}\nabla^{2}\psi(\textbf{r},t)+V(\textbf{r},t)\psi(\textbf{r},t)
    \end{equation}

    \begin{figure*}
        \begin{equation}
            i\hbar\frac{\partial}{\partial t}\psi(\textbf{r},t)=-\frac{\hbar^{2}}{2m}\nabla^{2}\psi(\textbf{r},t)+V(\textbf{r},t)\psi(\textbf{r},t)
        \end{equation}
    \end{figure*}

    \begin{thebibliography}{999}
        \bibitem{wikipedia_1} https://en.wikipedia.org/wiki/Schr\%C3\%B6dinger\_equation
    \end{thebibliography}   
\end{document}

编译结果为:

参考资料:

[1] LaTex中公式太长怎么办(公式跨栏显示)

62 次浏览

【说明:本站主要是个人的一些笔记和代码分享,内容可能会不定期修改。为了使全网显示的始终是最新版本,这里的文章未经同意请勿转载。引用请注明出处:https://www.guanjihuan.com

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code