Algorithm keeps appearing on the last page of my latex document The Next CEO of Stack OverflowAlgorithm indent problem with sig-alternate document & algorithm(ic) packageAlgorithmic package in two different languages in same documentIf algorithm in LatexDoes parbox has any conflict with the loop in algorithm?How to use Function in latex algorithm?latex algorithm displaying problems: lines are overlappedHow to remove page number for the page includes “algorithm pseudo-code”?Algorithm In latex Elsevier templateDisable algorithm numbers for only certain algorithms in a documentlatex Algorithm
Why do remote companies require working in the US?
How long to clear the 'suck zone' of a turbofan after start is initiated?
Failed to fetch jessie backports repository
% symbol leads to superlong (forever?) compilations
India just shot down a satellite from the ground. At what altitude range is the resulting debris field?
Whats the best way to handle refactoring a big file?
Opposite of a diet
How to make a software documentation "officially" citable?
How to be diplomatic in refusing to write code that breaches the privacy of our users
How to write papers efficiently when English isn't my first language?
Is it okay to store user locations?
Does the Brexit deal have to be agreed by both Houses?
Why does C# sound extremely flat when saxophone is tuned to G?
Text adventure game code
Go Pregnant or Go Home
Apart from "berlinern", do any other German dialects have a corresponding verb?
MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs
How to use tikz in fbox?
How can I quit an app using Terminal?
Increase performance creating Mandelbrot set in python
Inappropriate reference requests from Journal reviewers
Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?
Only print output after finding pattern
Shade part of a Venn diagram
Algorithm keeps appearing on the last page of my latex document
The Next CEO of Stack OverflowAlgorithm indent problem with sig-alternate document & algorithm(ic) packageAlgorithmic package in two different languages in same documentIf algorithm in LatexDoes parbox has any conflict with the loop in algorithm?How to use Function in latex algorithm?latex algorithm displaying problems: lines are overlappedHow to remove page number for the page includes “algorithm pseudo-code”?Algorithm In latex Elsevier templateDisable algorithm numbers for only certain algorithms in a documentlatex Algorithm
I am writing an algorithm with the algorithmic environment and Latex keeps pushing it on the last page, no matter what I do, this is just a short example.
documentclass[a4paper,10pt, twoside]book
usepackagealgorithm
usepackagealgorithmic
usepackage[utf8]inputenc
begindocument
beginalgorithm[h]
captionmy algorithm
labelalg:example
beginalgorithmic
STATE REQUIRE (F, G, j)
STATE (B_1 = b_1[1],dots,b_1[)
STATE (B_1)
FOR(i=1) TO (n)
STATE DO smoething...
STATE
ENDFOR
ENDFOR
endalgorithmic
endalgorithm
enddocument
The problem is that the algorithm is one page long, so I tried to put the h argument, and then after the algorithm a newpage, so that everything else comes after it. But still it just ignores all my command and puts in on the last page, no matter what I try :S
algorithms algorithmic
|
show 1 more comment
I am writing an algorithm with the algorithmic environment and Latex keeps pushing it on the last page, no matter what I do, this is just a short example.
documentclass[a4paper,10pt, twoside]book
usepackagealgorithm
usepackagealgorithmic
usepackage[utf8]inputenc
begindocument
beginalgorithm[h]
captionmy algorithm
labelalg:example
beginalgorithmic
STATE REQUIRE (F, G, j)
STATE (B_1 = b_1[1],dots,b_1[)
STATE (B_1)
FOR(i=1) TO (n)
STATE DO smoething...
STATE
ENDFOR
ENDFOR
endalgorithmic
endalgorithm
enddocument
The problem is that the algorithm is one page long, so I tried to put the h argument, and then after the algorithm a newpage, so that everything else comes after it. But still it just ignores all my command and puts in on the last page, no matter what I try :S
algorithms algorithmic
1
Welcome to TeX.SX! Obviouslyalgorithm
is an environment with floating enabled.
– user31729
Oct 5 '14 at 11:39
What Christian means is that you shouldn't specifyh
in the optional argument of thealgorithm
environment. Let that environment "float".
– jubobs
Oct 5 '14 at 11:42
@Jubobs: Yes, I was too quick ;-) More over, the code does not compile at all
– user31729
Oct 5 '14 at 11:43
Ok sorry for putting an uncompilable code there, I just tried to copy as fast as possible a short example. my fault. Oh wow it worked... But isn't figure also an floating environment, because I-ve seen a lot of examples using the htb arguments for figures?
– user63716
Oct 5 '14 at 11:48
[h]
tells latex the float isn't allowed at the top of a page (as not
) or bottom (nob
) or on a page of floats (nop
) which gives latex very few places to place it so holding it to the end is quite likely
– David Carlisle
Oct 5 '14 at 11:49
|
show 1 more comment
I am writing an algorithm with the algorithmic environment and Latex keeps pushing it on the last page, no matter what I do, this is just a short example.
documentclass[a4paper,10pt, twoside]book
usepackagealgorithm
usepackagealgorithmic
usepackage[utf8]inputenc
begindocument
beginalgorithm[h]
captionmy algorithm
labelalg:example
beginalgorithmic
STATE REQUIRE (F, G, j)
STATE (B_1 = b_1[1],dots,b_1[)
STATE (B_1)
FOR(i=1) TO (n)
STATE DO smoething...
STATE
ENDFOR
ENDFOR
endalgorithmic
endalgorithm
enddocument
The problem is that the algorithm is one page long, so I tried to put the h argument, and then after the algorithm a newpage, so that everything else comes after it. But still it just ignores all my command and puts in on the last page, no matter what I try :S
algorithms algorithmic
I am writing an algorithm with the algorithmic environment and Latex keeps pushing it on the last page, no matter what I do, this is just a short example.
documentclass[a4paper,10pt, twoside]book
usepackagealgorithm
usepackagealgorithmic
usepackage[utf8]inputenc
begindocument
beginalgorithm[h]
captionmy algorithm
labelalg:example
beginalgorithmic
STATE REQUIRE (F, G, j)
STATE (B_1 = b_1[1],dots,b_1[)
STATE (B_1)
FOR(i=1) TO (n)
STATE DO smoething...
STATE
ENDFOR
ENDFOR
endalgorithmic
endalgorithm
enddocument
The problem is that the algorithm is one page long, so I tried to put the h argument, and then after the algorithm a newpage, so that everything else comes after it. But still it just ignores all my command and puts in on the last page, no matter what I try :S
algorithms algorithmic
algorithms algorithmic
asked Oct 5 '14 at 11:36
user63716user63716
6113
6113
1
Welcome to TeX.SX! Obviouslyalgorithm
is an environment with floating enabled.
– user31729
Oct 5 '14 at 11:39
What Christian means is that you shouldn't specifyh
in the optional argument of thealgorithm
environment. Let that environment "float".
– jubobs
Oct 5 '14 at 11:42
@Jubobs: Yes, I was too quick ;-) More over, the code does not compile at all
– user31729
Oct 5 '14 at 11:43
Ok sorry for putting an uncompilable code there, I just tried to copy as fast as possible a short example. my fault. Oh wow it worked... But isn't figure also an floating environment, because I-ve seen a lot of examples using the htb arguments for figures?
– user63716
Oct 5 '14 at 11:48
[h]
tells latex the float isn't allowed at the top of a page (as not
) or bottom (nob
) or on a page of floats (nop
) which gives latex very few places to place it so holding it to the end is quite likely
– David Carlisle
Oct 5 '14 at 11:49
|
show 1 more comment
1
Welcome to TeX.SX! Obviouslyalgorithm
is an environment with floating enabled.
– user31729
Oct 5 '14 at 11:39
What Christian means is that you shouldn't specifyh
in the optional argument of thealgorithm
environment. Let that environment "float".
– jubobs
Oct 5 '14 at 11:42
@Jubobs: Yes, I was too quick ;-) More over, the code does not compile at all
– user31729
Oct 5 '14 at 11:43
Ok sorry for putting an uncompilable code there, I just tried to copy as fast as possible a short example. my fault. Oh wow it worked... But isn't figure also an floating environment, because I-ve seen a lot of examples using the htb arguments for figures?
– user63716
Oct 5 '14 at 11:48
[h]
tells latex the float isn't allowed at the top of a page (as not
) or bottom (nob
) or on a page of floats (nop
) which gives latex very few places to place it so holding it to the end is quite likely
– David Carlisle
Oct 5 '14 at 11:49
1
1
Welcome to TeX.SX! Obviously
algorithm
is an environment with floating enabled.– user31729
Oct 5 '14 at 11:39
Welcome to TeX.SX! Obviously
algorithm
is an environment with floating enabled.– user31729
Oct 5 '14 at 11:39
What Christian means is that you shouldn't specify
h
in the optional argument of the algorithm
environment. Let that environment "float".– jubobs
Oct 5 '14 at 11:42
What Christian means is that you shouldn't specify
h
in the optional argument of the algorithm
environment. Let that environment "float".– jubobs
Oct 5 '14 at 11:42
@Jubobs: Yes, I was too quick ;-) More over, the code does not compile at all
– user31729
Oct 5 '14 at 11:43
@Jubobs: Yes, I was too quick ;-) More over, the code does not compile at all
– user31729
Oct 5 '14 at 11:43
Ok sorry for putting an uncompilable code there, I just tried to copy as fast as possible a short example. my fault. Oh wow it worked... But isn't figure also an floating environment, because I-ve seen a lot of examples using the htb arguments for figures?
– user63716
Oct 5 '14 at 11:48
Ok sorry for putting an uncompilable code there, I just tried to copy as fast as possible a short example. my fault. Oh wow it worked... But isn't figure also an floating environment, because I-ve seen a lot of examples using the htb arguments for figures?
– user63716
Oct 5 '14 at 11:48
[h]
tells latex the float isn't allowed at the top of a page (as no t
) or bottom (no b
) or on a page of floats (no p
) which gives latex very few places to place it so holding it to the end is quite likely– David Carlisle
Oct 5 '14 at 11:49
[h]
tells latex the float isn't allowed at the top of a page (as no t
) or bottom (no b
) or on a page of floats (no p
) which gives latex very few places to place it so holding it to the end is quite likely– David Carlisle
Oct 5 '14 at 11:49
|
show 1 more comment
1 Answer
1
active
oldest
votes
beginalgorithm[!]
This solved the problem
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f204649%2falgorithm-keeps-appearing-on-the-last-page-of-my-latex-document%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
beginalgorithm[!]
This solved the problem
New contributor
add a comment |
beginalgorithm[!]
This solved the problem
New contributor
add a comment |
beginalgorithm[!]
This solved the problem
New contributor
beginalgorithm[!]
This solved the problem
New contributor
New contributor
answered 7 mins ago
Mohamed SalamaMohamed Salama
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f204649%2falgorithm-keeps-appearing-on-the-last-page-of-my-latex-document%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Welcome to TeX.SX! Obviously
algorithm
is an environment with floating enabled.– user31729
Oct 5 '14 at 11:39
What Christian means is that you shouldn't specify
h
in the optional argument of thealgorithm
environment. Let that environment "float".– jubobs
Oct 5 '14 at 11:42
@Jubobs: Yes, I was too quick ;-) More over, the code does not compile at all
– user31729
Oct 5 '14 at 11:43
Ok sorry for putting an uncompilable code there, I just tried to copy as fast as possible a short example. my fault. Oh wow it worked... But isn't figure also an floating environment, because I-ve seen a lot of examples using the htb arguments for figures?
– user63716
Oct 5 '14 at 11:48
[h]
tells latex the float isn't allowed at the top of a page (as not
) or bottom (nob
) or on a page of floats (nop
) which gives latex very few places to place it so holding it to the end is quite likely– David Carlisle
Oct 5 '14 at 11:49