Tag Info

New answers tagged

1

Nothing very special here. You can do something like this (notice the use of \SetKwFunction to declare a function): \documentclass{article} \usepackage[linesnumbered,noline,noend]{algorithm2e} \usepackage{amsmath} \SetNlSty{}{}{} \let\oldnl\nl% Store \nl in \oldnl \newcommand\nonl{% \renewcommand{\nl}{\let\nl\oldnl}}% Remove line number for one line ...


1

The documentation hasn't been updated (or I didn't find the information): \SetNoLine is deprecated, and replaced with \SetAlgoNoLine. If you want no vertical lines for the whole document, you have the option noline. \documentclass{article} \usepackage{algorithm2e} \begin{document} {\SetAlgoNoLine% \begin{algorithm} \DontPrintSemicolon % Some LaTeX ...


1

You can find the required definition of \Fn in the algorithm2e documentation code. It's defined using \SetKwProg. The generic algorithm is prefixed with the following definitions: \SetKwProg{Fn}{Function}{}{end}\SetKwFunction{FRecurs}{FnRecursive}% \newcommand{\forcond}{$i=0$ \KwTo $n$} \documentclass{article} \usepackage{algorithm2e} ...



Top 50 recent answers are included