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

learn more… | top users | synonyms

2
votes
0answers
32 views

Using special characters with lstlisting

I am using the Algorithm2e package to use code in my LaTeX document. However, the code contains special characters such as à, é, è etc. Those characters causes errors such as Unicode character x not ...
2
votes
0answers
22 views

Underline line numbers in algorithm2e

is there a way to underline specific line number? For example I have lines 1,2,3 and 4, and I want number 2 to be underlined. Thanks alot
2
votes
0answers
147 views

subcaption package changing algorithm2e caption position

I have a project which makes use of the subcaption and algorithm2e packages. For whatever reason, the subcaption package is causing the captions in the algorithms to be misplaced. Here we have a MWE ...
2
votes
0answers
73 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
153 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
24 views

Underline entire line in algorithm2e

is there a way to underline entire line of code in algorithm2e? Including keywords like for each etc.
1
vote
0answers
202 views

Publication style for Algorithms

I want to make own paragraphs for algorithms by numbering them appropriately. I do not need any fancy things - white background, no borders and black font are ok. I am trying to write in Springer ...
1
vote
0answers
69 views

make latex to automatically choose the placement of algorithms

I have several algorithms written down in a single file and would like latex to spread them across the document to save spaces. For example an algorithm can be just 3 or 4 lines and another can be 20 ...
1
vote
0answers
146 views

algorithm2e with RevTex

Note: I have seen the previous answer to this problem here and it doesn't work for my purposes. I suspect that others are in the same boat. I'm writing a paper for which the publisher requires the ...
1
vote
0answers
93 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
125 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
80 views

Reference title does not show properly

My latex file works fine until I inserted an algorithm to the document. Then the tile of the bibliography did not show up properly. \documentclass[ijoc,nonblindrev]{informs3} ...
0
votes
0answers
100 views

How to fix undefined control sequence in algorithm2e?

% !TEX program = xelatex \documentclass{article} \usepackage[ruled,vlined,algosection]{algorithm2e} \begin{document} \begin{algorithm}[htbp!] \SetKwProg{add}{add}{(a,b)}{} ...
0
votes
0answers
68 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 ...