{algorithm2e} is a package providing a floating algorithm environment with algorithmic keywords.

learn more… | top users | synonyms

2
votes
1answer
64 views

\begin{algorithm} unrecognized

I have used these two packages for creating algorithm \usepackage{algorithm2e} \usepackage{algorithmicx} But \begin{algorithm} shows as unrecognized command. Even \For, \While are shown as ...
2
votes
0answers
51 views

How to complete the algorithm using algorithm2e

I wanted to write this flowchart using \usepackage[linesnumbered,ruled,vlined]{algorithm2e} However, I couldn't get what I want, please refer to my code in below \begin{algorithm} ...
2
votes
0answers
84 views

Sigplanconf algorithm2e missing algorithm when figure

I am rewriting a paper, and stumble over this problem where algorithms are missing in my appendix. I was able to reproduce the problem. The following code only display 2 out of the 4 algorithms on ...
1
vote
0answers
48 views

Using algorithm2e with polyglossia produces undesired emphasized text

Here's a minimal working example: \documentclass[a4paper]{article} \usepackage{fontspec} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text} ...
1
vote
0answers
113 views

when is Implementation of example into LATEX2e?

When the write into texwork the following : \begin{algorithm}[H] \SetAlgoLined \KwData{this text} \KwResult{how to write algorithm with \LaTeX2e } initialization\; \While{not at end of this ...
1
vote
0answers
73 views

How to manually set a line number for end statement in algorithm2e?

I can manually set line numbers in an algorithm2e environment using the \nlset command (together with \LinesNotNumbered). However, I can't figure out how to make the same for lines with the end or ...
0
votes
0answers
30 views

Removing the box around an algorithm

I am using the Algorithm2e package for some algorithm in my reports: link However, there is a "frame" around the algorithm that I would like to remove. I don't find in documentation a way to remove ...
0
votes
0answers
152 views

Big algorithm causing big mess

I am writing a document in which I needed to include the description of the Number Field Sieve (NFS) algorithm as mentioned in the book by Crandall and Pomerance. The algorithm's pseudo code is ...
0
votes
0answers
117 views

Macros like \TitleOfAlgo not recognised in algorithm2e v5.0

I cannot get any macros working from the algorithm2e package. My particular example is to do with the title. In reference to numbering / not numbering algorithms, page 20 of the algorithm2e package ...
0
votes
0answers
551 views

Centering of an Algorithm

My square box is unnecessary large. Also I want centering the algorithm to look it nice. How is it possible? My documentclass is elsarticle. \restylealgo{boxed} \begin{algorithm} \label{algo1} ...
0
votes
0answers
332 views

algorithm2e indentation / line break

I have the following problem: I am writing a couple of algorithms using algorithm2e. I have a bunch of longer if statements and longer if conditions. The lines are broken, but the new lines are not ...