Figures Near End of Document Don't Display












0














I have a document with a few different figures embedded. The code for each embed is identical, but the placement of each code block is different (sometime we enter the figure environment near the beginning of the document, and sometimes near the end).



begin{figure}[h]
centering
includegraphics[width=linewidth]{sample_image}
caption{10}
Description{blah}
end{figure}


I always use the lowercase h option:



h   Place the float here, i.e., approximately at the same point
it occurs in the source text (however, not exactly at the spot)
--------------------------------------------------------------------
t Position at the top of the page.
--------------------------------------------------------------------
b Position at the bottom of the page.
--------------------------------------------------------------------
p Put on a special page for floats only.
--------------------------------------------------------------------
! Override internal parameters LaTeX uses for determining "good" float positions.
--------------------------------------------------------------------
H Places the float at precisely the location in the LaTeX code.


I have done some playing around with it, and the the figures at the beginning of the document always display. The figures placed close to, but still before, the end{document} statement do not display.



I think that what is happening is that LaTeX has a basket of figures cradled in one arm. LaTeX reads down the document, until it finds a place "suitable" enough for a figure. Then, LaTeX pulls a figure out of the basket and inserts it. The problem is that LaTeX reads to the very end of all of the text while only finding suitable places for some the figures in the basket. At the end of the document, I want LaTeX to dump out any remaining figures in basket. That is, I want LaTeX to put all remaining figures at the very end. Instead, LaTeX just says, "well, we've reached the end. I don't care that I have more figures to insert; we have reached the end and I'm going home." LaTeX throws the basket of remaining figures over its shoulder, where it promptly vanishes into thin air.



How can we force all figures to be displayed, even if that means putting the figures near the end and adding additional pages?










share|improve this question







New contributor




IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    LaTeX should dump all the remaining figures in the queue. Are there any clues in the .log file?
    – Torbjørn T.
    5 hours ago






  • 3




    You should almost never use [h] on its own (LaTeX usually warns you about that and changes it to [ht] but [htp] is better. However LaTex should never drop figures without giving an error message, if they are not appearing there is an error in the file. It is impossible to guess your error as you don't provide any example, and the fragment you do show uses commands (Description) not defined by default.
    – David Carlisle
    5 hours ago






  • 2




    Do you get any warnings or errors in the log (if you get any error, then usually it's not worth even looking at the generated PDF as TeX makes no attempt to make sensible typeset output after an error it just recovers enough to syntax check the rest of the file)
    – David Carlisle
    5 hours ago






  • 1




    What happens when you issue clearpage just before end{document}? There is a clearpage that forms part of end{document} to flush any pending float placements, but it's not clear what's going on with your setup. You should get a warning in your .log if you have floats that are lost. Anyway, some feedback is needed.
    – Werner
    3 hours ago
















0














I have a document with a few different figures embedded. The code for each embed is identical, but the placement of each code block is different (sometime we enter the figure environment near the beginning of the document, and sometimes near the end).



begin{figure}[h]
centering
includegraphics[width=linewidth]{sample_image}
caption{10}
Description{blah}
end{figure}


I always use the lowercase h option:



h   Place the float here, i.e., approximately at the same point
it occurs in the source text (however, not exactly at the spot)
--------------------------------------------------------------------
t Position at the top of the page.
--------------------------------------------------------------------
b Position at the bottom of the page.
--------------------------------------------------------------------
p Put on a special page for floats only.
--------------------------------------------------------------------
! Override internal parameters LaTeX uses for determining "good" float positions.
--------------------------------------------------------------------
H Places the float at precisely the location in the LaTeX code.


I have done some playing around with it, and the the figures at the beginning of the document always display. The figures placed close to, but still before, the end{document} statement do not display.



I think that what is happening is that LaTeX has a basket of figures cradled in one arm. LaTeX reads down the document, until it finds a place "suitable" enough for a figure. Then, LaTeX pulls a figure out of the basket and inserts it. The problem is that LaTeX reads to the very end of all of the text while only finding suitable places for some the figures in the basket. At the end of the document, I want LaTeX to dump out any remaining figures in basket. That is, I want LaTeX to put all remaining figures at the very end. Instead, LaTeX just says, "well, we've reached the end. I don't care that I have more figures to insert; we have reached the end and I'm going home." LaTeX throws the basket of remaining figures over its shoulder, where it promptly vanishes into thin air.



How can we force all figures to be displayed, even if that means putting the figures near the end and adding additional pages?










share|improve this question







New contributor




IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    LaTeX should dump all the remaining figures in the queue. Are there any clues in the .log file?
    – Torbjørn T.
    5 hours ago






  • 3




    You should almost never use [h] on its own (LaTeX usually warns you about that and changes it to [ht] but [htp] is better. However LaTex should never drop figures without giving an error message, if they are not appearing there is an error in the file. It is impossible to guess your error as you don't provide any example, and the fragment you do show uses commands (Description) not defined by default.
    – David Carlisle
    5 hours ago






  • 2




    Do you get any warnings or errors in the log (if you get any error, then usually it's not worth even looking at the generated PDF as TeX makes no attempt to make sensible typeset output after an error it just recovers enough to syntax check the rest of the file)
    – David Carlisle
    5 hours ago






  • 1




    What happens when you issue clearpage just before end{document}? There is a clearpage that forms part of end{document} to flush any pending float placements, but it's not clear what's going on with your setup. You should get a warning in your .log if you have floats that are lost. Anyway, some feedback is needed.
    – Werner
    3 hours ago














0












0








0







I have a document with a few different figures embedded. The code for each embed is identical, but the placement of each code block is different (sometime we enter the figure environment near the beginning of the document, and sometimes near the end).



begin{figure}[h]
centering
includegraphics[width=linewidth]{sample_image}
caption{10}
Description{blah}
end{figure}


I always use the lowercase h option:



h   Place the float here, i.e., approximately at the same point
it occurs in the source text (however, not exactly at the spot)
--------------------------------------------------------------------
t Position at the top of the page.
--------------------------------------------------------------------
b Position at the bottom of the page.
--------------------------------------------------------------------
p Put on a special page for floats only.
--------------------------------------------------------------------
! Override internal parameters LaTeX uses for determining "good" float positions.
--------------------------------------------------------------------
H Places the float at precisely the location in the LaTeX code.


I have done some playing around with it, and the the figures at the beginning of the document always display. The figures placed close to, but still before, the end{document} statement do not display.



I think that what is happening is that LaTeX has a basket of figures cradled in one arm. LaTeX reads down the document, until it finds a place "suitable" enough for a figure. Then, LaTeX pulls a figure out of the basket and inserts it. The problem is that LaTeX reads to the very end of all of the text while only finding suitable places for some the figures in the basket. At the end of the document, I want LaTeX to dump out any remaining figures in basket. That is, I want LaTeX to put all remaining figures at the very end. Instead, LaTeX just says, "well, we've reached the end. I don't care that I have more figures to insert; we have reached the end and I'm going home." LaTeX throws the basket of remaining figures over its shoulder, where it promptly vanishes into thin air.



How can we force all figures to be displayed, even if that means putting the figures near the end and adding additional pages?










share|improve this question







New contributor




IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a document with a few different figures embedded. The code for each embed is identical, but the placement of each code block is different (sometime we enter the figure environment near the beginning of the document, and sometimes near the end).



begin{figure}[h]
centering
includegraphics[width=linewidth]{sample_image}
caption{10}
Description{blah}
end{figure}


I always use the lowercase h option:



h   Place the float here, i.e., approximately at the same point
it occurs in the source text (however, not exactly at the spot)
--------------------------------------------------------------------
t Position at the top of the page.
--------------------------------------------------------------------
b Position at the bottom of the page.
--------------------------------------------------------------------
p Put on a special page for floats only.
--------------------------------------------------------------------
! Override internal parameters LaTeX uses for determining "good" float positions.
--------------------------------------------------------------------
H Places the float at precisely the location in the LaTeX code.


I have done some playing around with it, and the the figures at the beginning of the document always display. The figures placed close to, but still before, the end{document} statement do not display.



I think that what is happening is that LaTeX has a basket of figures cradled in one arm. LaTeX reads down the document, until it finds a place "suitable" enough for a figure. Then, LaTeX pulls a figure out of the basket and inserts it. The problem is that LaTeX reads to the very end of all of the text while only finding suitable places for some the figures in the basket. At the end of the document, I want LaTeX to dump out any remaining figures in basket. That is, I want LaTeX to put all remaining figures at the very end. Instead, LaTeX just says, "well, we've reached the end. I don't care that I have more figures to insert; we have reached the end and I'm going home." LaTeX throws the basket of remaining figures over its shoulder, where it promptly vanishes into thin air.



How can we force all figures to be displayed, even if that means putting the figures near the end and adding additional pages?







graphics floats subfloats embedding includegraphics






share|improve this question







New contributor




IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









IdleCustardIdleCustard

814




814




New contributor




IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






IdleCustard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    LaTeX should dump all the remaining figures in the queue. Are there any clues in the .log file?
    – Torbjørn T.
    5 hours ago






  • 3




    You should almost never use [h] on its own (LaTeX usually warns you about that and changes it to [ht] but [htp] is better. However LaTex should never drop figures without giving an error message, if they are not appearing there is an error in the file. It is impossible to guess your error as you don't provide any example, and the fragment you do show uses commands (Description) not defined by default.
    – David Carlisle
    5 hours ago






  • 2




    Do you get any warnings or errors in the log (if you get any error, then usually it's not worth even looking at the generated PDF as TeX makes no attempt to make sensible typeset output after an error it just recovers enough to syntax check the rest of the file)
    – David Carlisle
    5 hours ago






  • 1




    What happens when you issue clearpage just before end{document}? There is a clearpage that forms part of end{document} to flush any pending float placements, but it's not clear what's going on with your setup. You should get a warning in your .log if you have floats that are lost. Anyway, some feedback is needed.
    – Werner
    3 hours ago














  • 1




    LaTeX should dump all the remaining figures in the queue. Are there any clues in the .log file?
    – Torbjørn T.
    5 hours ago






  • 3




    You should almost never use [h] on its own (LaTeX usually warns you about that and changes it to [ht] but [htp] is better. However LaTex should never drop figures without giving an error message, if they are not appearing there is an error in the file. It is impossible to guess your error as you don't provide any example, and the fragment you do show uses commands (Description) not defined by default.
    – David Carlisle
    5 hours ago






  • 2




    Do you get any warnings or errors in the log (if you get any error, then usually it's not worth even looking at the generated PDF as TeX makes no attempt to make sensible typeset output after an error it just recovers enough to syntax check the rest of the file)
    – David Carlisle
    5 hours ago






  • 1




    What happens when you issue clearpage just before end{document}? There is a clearpage that forms part of end{document} to flush any pending float placements, but it's not clear what's going on with your setup. You should get a warning in your .log if you have floats that are lost. Anyway, some feedback is needed.
    – Werner
    3 hours ago








1




1




LaTeX should dump all the remaining figures in the queue. Are there any clues in the .log file?
– Torbjørn T.
5 hours ago




LaTeX should dump all the remaining figures in the queue. Are there any clues in the .log file?
– Torbjørn T.
5 hours ago




3




3




You should almost never use [h] on its own (LaTeX usually warns you about that and changes it to [ht] but [htp] is better. However LaTex should never drop figures without giving an error message, if they are not appearing there is an error in the file. It is impossible to guess your error as you don't provide any example, and the fragment you do show uses commands (Description) not defined by default.
– David Carlisle
5 hours ago




You should almost never use [h] on its own (LaTeX usually warns you about that and changes it to [ht] but [htp] is better. However LaTex should never drop figures without giving an error message, if they are not appearing there is an error in the file. It is impossible to guess your error as you don't provide any example, and the fragment you do show uses commands (Description) not defined by default.
– David Carlisle
5 hours ago




2




2




Do you get any warnings or errors in the log (if you get any error, then usually it's not worth even looking at the generated PDF as TeX makes no attempt to make sensible typeset output after an error it just recovers enough to syntax check the rest of the file)
– David Carlisle
5 hours ago




Do you get any warnings or errors in the log (if you get any error, then usually it's not worth even looking at the generated PDF as TeX makes no attempt to make sensible typeset output after an error it just recovers enough to syntax check the rest of the file)
– David Carlisle
5 hours ago




1




1




What happens when you issue clearpage just before end{document}? There is a clearpage that forms part of end{document} to flush any pending float placements, but it's not clear what's going on with your setup. You should get a warning in your .log if you have floats that are lost. Anyway, some feedback is needed.
– Werner
3 hours ago




What happens when you issue clearpage just before end{document}? There is a clearpage that forms part of end{document} to flush any pending float placements, but it's not clear what's going on with your setup. You should get a warning in your .log if you have floats that are lost. Anyway, some feedback is needed.
– Werner
3 hours ago










0






active

oldest

votes











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
});


}
});






IdleCustard is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469260%2ffigures-near-end-of-document-dont-display%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








IdleCustard is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















IdleCustard is a new contributor. Be nice, and check out our Code of Conduct.













IdleCustard is a new contributor. Be nice, and check out our Code of Conduct.












IdleCustard is a new contributor. Be nice, and check out our Code of Conduct.
















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469260%2ffigures-near-end-of-document-dont-display%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks