作者tmml (很爱很爱宝贝琇)
看板LaTeX
标题Re: [问题] 关於跨column的equation
时间Tue Feb 12 18:27:56 2008
※ 引述《CCY0927 (只是个昵称罢了)》之铭言:
====================================================================
% 下面这个 counter 要在 \begin{document} 之前设定好
\newcounter{mytempeqncnt}
====================================================================
\begin{figure*}[!t]
% ensure that we have normalsize text
\normalsize
% Store the current equation number.
\setcounter{mytempeqncnt}{\value{equation}}
% Set the equation number to one less than the one
% desired for the first equation here.
% The value here will have to changed if equations
% are added or removed prior to the place these
% equations are referenced in the main text.
\setcounter{equation}{10}
\begin{equation}
\label{eq:LK-1}
\arg \min_{d_x^L, d_y^L}\sum_{x = u_x^L - w_x}^{u_x^L + w_x}\sum_{y = u_y^L - w_y}^{u_y^L + w_y}( I^L(x, y) - J^L(x + g_x^L + d_x^L, y + g_y^L + d_y) )^2
\end{equation}
% Restore the current equation number.
\setcounter{equation}{\value{mytempeqncnt}}
% IEEE uses as a separator
\hrulefill
% The spacer can be tweaked to stop underfull vboxes.
\vspace*{4pt}
\end{figure*}
\addtocounter{equation}{1}
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.175.230.164
上面一篇我问的问题在爬文到这一篇後找到解决方法,也试了很多次终於成功了 Orz
但上面的方法,我再补充如下 : (假设置底equation number是 11)
一定要把下面这几行打在所加之置底页之前一页的 Tex 中
\begin{figure*}[!b]
\normalsize
\setcounter{mytempeqncnt}{\value{equation}}
\hrulefill
\vspace*{4pt}
\setcounter{equation}{10} %要减1
\begin{equation}
\label{eq:LK-1}
\arg \min_{d_x^L, d_y^L}\sum_{x = u_x^L - w_x}^{u_x^L + w_x}\sum_{y = u_y^L - w
\end{equation}
\setcounter{equation}{\value{mytempeqncnt}}
\hrulefill
\vspace*{4pt}
\end{figure*}
以上几行加完之後,要在 equation 10 之後再加上这一行
\addtocounter{equation}{1}
代表 equation 10 之後的记数再加 1,
如此本文中 equation 10 之後的 equation 计数会直接跳到 12
而 equation 11 则会被当页置底
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.236.114
※ 编辑: tmml 来自: 140.113.236.114 (02/12 18:29)
※ 编辑: tmml 来自: 123.110.152.182 (02/12 23:06)