## LaTeX forum ⇒ Math & Science ⇒ missplaced text in a long algorithm

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

### missplaced text in a long algorithm

Hello, I have a long algorithm to put in my report. There is a text before the beginning of it. I used the following code

By doing so, I got some text betwwen the different parts of the algorithms. I tried to use \begin{algorithm}[H] in the two parts break of the algorithm, there is no text betwwen them however I got an extra horizontal line at the beginning of them.
Is there a solution?

Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm
Better place huge algorithms like that into the appendix.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.