algorithm2e包参数

完整参数见官方文档:http://tug.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf

这里介绍几个常用的。

测试代码:

\documentclass[UTF8]{ctexart}

\usepackage[linesnumbered, ruled, vlined]{algorithm2e}

\begin{document}

\begin{algorithm}
	\caption{2333}\label{alg:xxx}
	\DontPrintSemicolon
	\If{2333}{
		123333 \;
	}
	\For{2333}{
		123333333 \;
		2333 \;
	}
\end{algorithm}

\end{document}

啥参数都没有

在这里插入图片描述

linesnumbered

标上行号。

在这里插入图片描述

ruled

在这里插入图片描述

noend

在这里插入图片描述

vlined

默认使用\SetAlgoVlined。

在这里插入图片描述

posted @ 2024-09-28 14:08  寻找繁星  阅读(79)  评论(0)    收藏  举报