生活随笔
收集整理的這篇文章主要介紹了
latex在algorithm环境或表格中插入圆圈脚注
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
用的模板默認是帶圓圈的腳注,但是在algorithm環境下直接用\footnote{}則腳注內容無效,解決辦法:
宏包文件中加入以下內容:
\usepackage
{pifont
}
% \usepackage
[perpage
]{footmisc
} 每頁重新編號用的,但在表或算法框里不起作用
\DefineFNsymbols
{circled
}{{\ding
{192}}{\ding
{193}}{\ding
{194}}
{\ding
{195}}{\ding
{196}}{\ding
{197}}{\ding
{198}}{\ding
{199}}
{\ding
{200}}{\ding
{201}}}
文章中algorithm前加入\renewcommand{\thefootnote}{\ding{\numexpr192+\value{footnote}}},需要腳注的地方加入\footnotemark{},algorithm結束加入\footnotetext{腳注內容}。其中\ding{\numexpr192+\value{footnote}}表示腳注為帶編號圓圈類型,也可以使用其他命令改成不同類型的腳注。
\renewcommand
{\thefootnote
}{\ding
{\numexpr192
+\value
{footnote
}}}
\begin
{algorithm
}[h
]
\caption
{求解
(\ref
{eq
:4.3.2})的ADMM算法
}\textbf
{輸入
}:數據樣本$\mathbf
{X
}\in\mathbb
{R
}^{d\times N
}$,$K$,
正則化參數$\lambda_
{1}>0$,最鄰近節點個數$k$\footnotemark
{}。
......
\textbf
{輸出
}:$\mathbf
{P
}$,$\mathbf
{Q
}$和$\mathbf
{S
}$。
\end
{algorithm
}
\footnotetext
{實際中,$k$取較小值時往往取得較好的聚類效果,
并且可以通過
(\ref
{eq
:4.2.6})在每次迭代過程中自適應選取最優值。
}
由于前文已經有一個腳注,模板中腳注是默認每頁重新編號的,這里看到無效??梢酝ㄟ^自定義方式\footnotemark[1]{}將編號設為1。
總結
以上是生活随笔為你收集整理的latex在algorithm环境或表格中插入圆圈脚注的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。