New answers tagged

0

There is the CLRS package, code name "clrscode3e", the description of the package as well as the .sty file are available in the web-site: http://www.cs.dartmouth.edu/~thc/clrscode/, you can easily download the .sty file and also read the description. \documentclass{article} \usepackage{clrscode3e} \begin{document} \begin{codebox} \Procname{$\proc{...


5

You seem to be mixing the syntax of different algorithm-like packages into one: \STATE is from algorithmic; \While and \For are from algpseudocode; \; as a line-ending is typical for algorithm2e. Also, even though you specify \usepackage[noend]{algpseudocode} you still have to provide an accompanying \End... for every programming structure. Here's ...


2

The typical behaviour of floats are naturally suppressed within a presentation, as it doesn't have the same flow as an article. So, under beamer, figures and tables may be structured in a similar way they're done under article, but beamer just puts them in the frame you use them, rather than finding "a suitable location" through floating. When you use an ...


1

Inside the LyX environment, you can't show indentation. Moreover, the LyX interface for algorithms is very limited under the algorithm2e module (Document > Settings... > Modules > Algorithm2e). You can use the ERTs \Indp and \Indm to add - or plus - indentation and remove - or minus indentation:


1

You should have the beamercolorbox environment after \State, not conversely. \documentclass[11pt]{beamer} \usetheme{default} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{algorithm}% http://ctan.org/pkg/algorithm \usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx \begin{document} \begin{frame} \begin{algorithmic} \Function{...


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