0
votes
0answers
119 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 ...
3
votes
2answers
140 views

How to align text within an algorithm environment?

I wish to duplicate an effect I've seen elsewhere (image below) in which text not necessarily at the beginning of a line is aligned with text elsewhere. I don't know which environment is suitable, ...
5
votes
1answer
436 views

Caption spacing using algorithm2e

I am trying to add some spacing above/below captions of algorithms using the algorithm2e package. Consider the following example: \documentclass[a4paper]{article} \usepackage{blindtext} ...
2
votes
1answer
300 views

algorithm2e - Unwanted vertical space

Last days I met a strange behavior with algorithm2e which produces an unwanted space after an IF-block. I put here one MWE which shows that the problem really comes from my customization and not from ...
3
votes
2answers
3k views

Squeezing space around algorithm construct

I am using algorithm2e for developing algorithm constructs in my LaTeX document. However, if I want to use [!t] or [!b] to place the algorithm construct in an appropriate place, sometimes the ...