Re: [問題] 關於跨column的equation
※ 引述《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)
討論串 (同標題文章)
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章