Tag Info

New answers tagged

0

Partial answer: use the package newfloat. \documentclass{scrartcl} \usepackage{newfloat, blindtext} \DeclareFloatingEnvironment[ fileext=lop, listname={List of Protocols}, name=Protocol, placement=p, within=section, %chapterlistsgaps=off, ]{protocoll} \begin{document} \blindtext \begin{protocoll} \caption{Exact integer division} ...


0

Another possibility is to leave algorithmic and remove algpseudocode to eliminate incompatibility. But change the syntax a bit as this: \documentclass{article} \usepackage{amsmath,algorithm,algorithmic} \begin{document} \begin{algorithm} \caption{Resource Allocation Algorithm } \label{alg:algorithm_sum} \begin{algorithmic}[1] \STATE{Initialization of ...


3

First of all you are loading both algorithmic and algpseudocode (variant of algorithmicx) which are not compatible. The syntax you are using is the one of algpseudocode so don't load algorithmic. Moreover, you are using \text and forgot to load amsmath. Finally, the \Until command has to be used to close a \Repeat statement which is missing in your code. ...


6

You have to make additional provisions for the list of algorithms with AMS classes: \documentclass[11pt]{amsart} \usepackage{algorithm}% http://ctan.org/pkg/algorithms \usepackage{algorithmic}% http://ctan.org/pkg/algorithms \makeatletter \def\listofalgorithms{\@starttoc{loa}\listalgorithmname} \def\l@algorithm{\@tocline{0}{3pt plus2pt}{0pt}{1.9em}{}} ...



Top 50 recent answers are included