Source code
I'm working on a LaTeX project which brings 5 files:
cassio.bib: bibliographycomandos.tex: a rich set of commands for easiness of typingtg.tex: document's source codetg.pdf: generated PDFMakefile: compilation tool
To compile it, type make tg.pdf to generate tg.pdf.
The problem
I have a problem related to algorithm environment in algorithm2e package.
Within tg.pdf, plase take a look at page 33. This algorithm should be placed within section (5.2) (in the page 32) and right before section (5.3).
The corresponding code happens at line 1976 in the tg.tex file.
A similar problem
A similar problem happens at tg.pdf (page 43).
This algorithm and the subsequent text (Parte I: Apêndice) should be separated by a page break; i.e., they should not appear in the same page.
My goal is to force algorithm to be rendered in the order it is written in tg.tex.
Could anyone help me figuring out where is the problem?
floatpackage offers an[H]float specifier that inhibits floating. In fact, see the FAQs How to influence the position of float environments like figure and table in LaTeX? and Keeping tables/figures close to where they are mentioned for more precise details. – Werner Jun 29 '13 at 14:11