我想在工作中介绍一种算法,我使用了包algorithm2e
。我想知道是否有办法hrule
用选项控制厚度ruled
,这样就可以使用更粗的线条预标题或后标题。
任何帮助深表感谢。
答案1
这是没有记录的,但可行:这些应该相当于默认设置
\setlength{\algoheightrule}{0.8pt} % thickness of the rules above and below
\setlength{\algotitleheightrule}{0.8pt} % thicknes of the rule below the title
按照你希望的去改变。
从algorithm2e.sty
:
% - november 17 2009 - revision 4.00 -
[...]
% * ADD/FIX: rules of ruled, algoruled, tworuled styles used rules of different sizes! This
% is now fixed. Moreover size of the rules is now controlled by a length and so
% can be customized by the user.
% \algoheightrule is the height of the rules and can be changed via \setlength
% \algoheightruledefault is the default height of he rules (0.8pt)
% \algotitleheightrule is the height of the rule that comes just after the
% caption in ruled and algoruled style; it can be changed via \setlength
% \algotitleheightruledefault is the default height of this rules (0.8pt)