I am using the package algorithm2e. I have a document with several algorithms. I use the float position option [ht], but all my algorithms are positioned at the end of the chapter; none at the position or on the next page. I tried the package float as suggested in this post Floating an algorithm?. But the algorithms looked very different and wrong after that. Does anyone have an idea how I position my algorithms at 'here' or the top of the next page?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
For any kind of float, using an optional argument that does not include Here Note |
|||
|
|

pvastly increases the chance of floats going to the end of document. Perhaps[!htp]will do what you want. – David Carlisle Nov 25 '12 at 19:30p) whether the floats fit on text pages depends what else is there and you haven't shown. But if they are large (say more than half a page) it gets hard to fit them in if there are other unbreakable objects such as section heads or images. the!says to ignore all stylistic constraints like number of floats allowed per page so latex will fit them if it thinks they physically fit without leaving the page breaks unacceptably bad. – David Carlisle Nov 25 '12 at 19:43