Tagged Questions
5
votes
1answer
57 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
105 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 ...
8
votes
1answer
1k 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
...
4
votes
1answer
1k 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}
...
4
votes
1answer
518 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
1k 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
1k 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.
...
25
votes
2answers
762 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 ...
4
votes
2answers
531 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
303 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:
...
2
votes
2answers
2k 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
468 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
36 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}
...