5
votes
1answer
54 views

Two algorithm counters for different types of algorithms

I want to create two separate algorithm counters in Latex. The first one is for my main algorithms, the second one for subroutines. In particular, I now have the following algorithms (in order): ...
2
votes
2answers
440 views

Change caption number of an algorithm

I am wondering if I can manually set the caption number of an algorithm, or let the caption number of the algorithms in an article start from 2. The following is a MWE. ...
6
votes
1answer
1k views

Numbering in algorithmicx

I have simple code: \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm} \caption{Examples}\label{alg:Examples} \begin{algorithmic}[1] ...
2
votes
1answer
196 views

algorithmic package, get rid of algorithms numbers

My question is about algorithmic package. I have an algorithm which I called A1. \begin{algorithm} \caption{\bf A1:} \label{algorithm-A1} ... I have something like this: Algorithm 1 A1 How can ...
11
votes
1answer
5k views

algorithm numbering

I am having trouble numbering and referencing algorithms. I want to have the references labeled by the chapter, then within the chapter, such as: First algorithm in chapter 1 - Algorithm 1.1 ...
5
votes
1answer
4k views

Algorithm Caption

I want algorithm to NOT show the number in caption. How can i do that? Below is the code: \begin{algorithm} \begin{algorithmic} \caption{ My Algorithm} \IF \ELSE \end{algorithmic} \end{algorithm} ...
5
votes
1answer
938 views

Disable Algorithm Numbering

I have seen this question but I still disable the numbering of algorithms. I have the following code: \begin{algorithm} \caption{\textsc{FizzBuzz}} \begin{algorithmic} ...
3
votes
2answers
2k views

polyglossia and algorithmicx - Missing \endcsname inserted

Trying to compile a simple document using polyglossia with Hebrew as the default language: \documentclass[a4paper]{article} \TeXXeTstate=1 \usepackage{amsmath, amssymb} \usepackage{polyglossia} ...
4
votes
3answers
2k views

How to create an unnumbered algorithm with a caption?

I want to do something like: \begin{algorithm*} \caption{My unnumbered algorithm} % etc. etc. \end{algorithm*} or \begin{algorithm} \nonumbercaption{My unnumbered algorithm} % etc. etc. ...
33
votes
2answers
2k views

Why does an environment's label have to appear after the caption?

\documentclass{article} \usepackage{algorithm} \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label ...
6
votes
2answers
949 views

How to not increment algorithm numbers when using \againframe in beamer

As is known, algorithms and equations in latex are automatically numbered. When using \againframe though, incrementing such number is undesired. How to avoid this? (I still want numbering, but it will ...
4
votes
1answer
428 views

How to include the subsection numbers when using the algorithm2e package?

I am using the package algorithm2e. By default, the numbers of the algorithms either related to part, chapter or section. what I want is to get the following numbering for the algorithms: ...
3
votes
2answers
4k views

Disable the numbering of algorithms

My problem is that I do not know how to disable the numbering for algorithms. I have created an algoritm and its number is "Algorithm 1", but I want to have "Algorithm". \documentclass{article} ...
4
votes
1answer
654 views

Algorithm counter is broken with journal style file

With the style file gSCS2e.cls, found at http://www.tandf.co.uk/journals/authors/gscslatex.zip as well as the algorithm package, if I compile the following LaTeX document, the Algorithm counter seems ...
2
votes
1answer
49 views

Adding a label on a margin (instead of line number) in pseudo code

I would like to mark (e.g. with a *)a line in a pseudo code typesetted with the algorithmic package. I would like the label to appear on the left margin, instead of the line number. Is that possible?. ...
6
votes
2answers
2k views

Number Algorithm floats with dependency (subalgorithms environment)

What I have: 3 algorithms, like so: \begin{algorithm} \caption{Caption One} ... \label{alg:one} \end{algorithm} \begin{algorithm} \caption{Caption Two} ... \label{alg:two} \end{algorithm} ...