语言, Latex专题

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

在两列Latex模板中,如果遇到公式比较长,可以通过以下方法直接实现占整行的效果。

方法一:在\begin{equation} \end{equation} 外面套一个 \begin{widetext} \end{widetext} 。推荐使用该方法,效果还不错。该方法由 LouWK 老师提供。

方法二:在\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{widetext}
        \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{widetext}

    \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中公式太长怎么办(公式跨栏显示)

2,076 次浏览

【说明:本站主要是个人笔记和代码的分享,内容可能会不定期修改。目前文章支持直接转载,引用或转载请注明出处:https://www.guanjihuan.com 。本站采用知识共享署名许可协议 CC BY】

发表评论

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

Captcha Code