在常规方程式中我没有遇到任何问题。但是对于长方程式,我需要使用图形,以便我的方程式看起来更明显。(注意:我使用的是两列纸张样式)。
这是我使用的方程式样式:
\documentclass[journal]{IEEEtran}
\usepackage{cite}
\usepackage{graphicx}
\usepackage{refstyle}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{lipsum}
\begin{document}
\title{\huge Single line equation in two column paper}
\maketitle
\section{First} \label{first}
\lipsum[1-6]
\begin{figure*}[t]
\normalsize
\begin{align} \label{eqn1}
Long_{eqn}^{1} &= aaa aaa aaa aaa + aaa aaa aaa aaa aaa aaa aaa aaa + aaa aaa aaa aaa aaa aaa + aaa aaa aaa aaa \nonumber\\
&+ bbb bbb bbb bbb bbb bbb + bbb bbb bbb bbb bbb bbb bbb bbb bbb +bbb bbb bbb bbb bbb bbb bbb bbb +bbb bbb bbb bbb bbb \nonumber\\
&+ ccc ccc ccc ccc ccc ccc +ccc ccc ccc ccc ccc ccc ccc ccc+ ccc ccc ccc ccc ccc ccc + ccc ccc ccc ccc ccc ccc ccc ccc .
\end{align}
\end{figure*}
\lipsum[2-5]
\section{Second} \label{second}
\lipsum[3-8]
\begin{figure*}[t]
\normalsize
\begin{align} \label{eqn2}
Long_{eqn}^{2} &= aaa aaa aaa aaa + aaa aaa aaa aaa aaa aaa aaa aaa + aaa aaa aaa aaa aaa aaa + aaa aaa aaa aaa \nonumber\\
&+ bbb bbb bbb bbb bbb bbb + bbb bbb bbb bbb bbb bbb bbb bbb bbb +bbb bbb bbb bbb bbb bbb bbb bbb +bbb bbb bbb bbb bbb \nonumber\\
&+ ccc ccc ccc ccc ccc ccc +ccc ccc ccc ccc ccc ccc ccc ccc+ ccc ccc ccc ccc ccc ccc + ccc ccc ccc ccc ccc ccc ccc ccc .
\end{align}
\end{figure*}
\lipsum[4-8]
\end{document}
我的问题是:我无法将此方程式放在其实际位置。它要么在下一页的顶部,要么在底部。我希望它处于正常位置。
我检查过以前相关的问题,例如(如何影响 LaTeX 中图形和表格等浮动环境的位置?) 和 (如何将放置选项 [t]、[h] 与数字一起使用?),但这些问题对我的案例都没什么用。因此,我更愿意问这个问题。
答案1
我认为更好的解决方案是使用bundlecuted
中的包sttools
。它专门用于在双列环境中全宽插入一些材料:
\documentclass[journal]{IEEEtran}
\usepackage{cite}
\usepackage{graphicx}
\usepackage{refstyle}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{cuted, nccmath}
\usepackage{lipsum}
\setlength\stripsep{3pt plus 1pt minus 1pt}
\begin{document}
\title{\huge Single line equation in two column paper}
\maketitle
\section{First} \label{first}
\lipsum[1-6]
\begin{strip}
\begin{align} \label{eqn1}
Long_{eqn}¹ & = aaa aaa aaa aaa + aaa aaa aaa aaa aaa aaa aaa aaa + aaa aaa aaa aaa aaa aaa + aaa aaa aaa aaa \nonumber \\
& + bbb bbb bbb bbb bbb bbb + bbb bbb bbb bbb bbb bbb bbb bbb bbb +bbb bbb bbb bbb bbb bbb bbb bbb +bbb bbb bbb bbb bbb \nonumber \\
& + ccc ccc ccc ccc ccc ccc +ccc ccc ccc ccc ccc ccc ccc ccc+ ccc ccc ccc ccc ccc ccc + ccc ccc ccc ccc ccc ccc ccc ccc .
\end{align}
\end{strip}
%
\lipsum[2-5]
\section{Second} \label{second}
\lipsum[3-8]
\begin{strip}
\normalsize
\begin{align} \label{eqn2}
Long_{eqn}² & = aaa aaa aaa aaa + aaa aaa aaa aaa aaa aaa aaa aaa + aaa aaa aaa aaa aaa aaa + aaa aaa aaa aaa \nonumber \\
& + bbb bbb bbb bbb bbb bbb + bbb bbb bbb bbb bbb bbb bbb bbb bbb +bbb bbb bbb bbb bbb bbb bbb bbb +bbb bbb bbb bbb bbb \nonumber \\
& + ccc ccc ccc ccc ccc ccc +ccc ccc ccc ccc ccc ccc ccc ccc+ ccc ccc ccc ccc ccc ccc + ccc ccc ccc ccc ccc ccc ccc ccc .
\end{align}
\end{strip}
\lipsum[4-8]
\end{document}