New answers tagged

1

You're missing a closing bracket for your opening \Fn: \documentclass{article} \usepackage{xcolor} \usepackage[vlined,ruled]{algorithm2e} %% optional fonts and color configuration \SetAlFnt{\sffamily} \renewcommand\ArgSty{\normalfont\ttfamily} \renewcommand\KwSty[1]{\textnormal{\textbf{\ttfamily#1}}\unskip} \SetAlCapFnt{\normalfont\ttfamily\large} \...


0

For me, adding this worked: \renewcommand{\listalgorithmname}{LIST OF ALGORITHMS} (I'm using algorithm rather than algorithm2e)


0

You can use an algorithm inside an algorithm. With a dirty workaround (can't figure out what lenghts the vertical skip comes from): \documentclass[10pt]{article} \usepackage[ruled]{algorithm2e} \usepackage{amsmath} \begin{document} \begin{algorithm}[H] \SetKwInput{Output}{Output} \Output{% \RestyleAlgo{plain} \...


3

This is adapted from Thomas S. Sturm's solution to this question. You can make your algorithm unfloatable and box it within another floatable environment---in this case, an invisible tcolorbox. Change the width variable to adapt the box around your algorithm. \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{amsmath} % \usepackage{amssymb} \...


3

If you're referring to coin.cls that forms part of the Computational Intelligence group at Dalhousie University's Department of Computer Science, then the solution is fairly straight-forward if you want to keep using algorithm2e: set the \procedure and \endprocedure macros to \relax. % https://projects.cs.dal.ca/ci/latex/template-files/coin.cls \...



Top 50 recent answers are included