![algorithm2e 带有规则但具有自定义规则厚度](https://linux22.com/image/246101/algorithm2e%20%E5%B8%A6%E6%9C%89%E8%A7%84%E5%88%99%E4%BD%86%E5%85%B7%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E8%A7%84%E5%88%99%E5%8E%9A%E5%BA%A6.png)
我想在工作中介绍一种算法,我使用了包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)