How to reduce de float's white space around it?
I have some floats which size is almost the page size, however there is a little space that I'd like to use with text. How can I make that LaTeX
uses the maximum of the page without creating a page only with the figure?
documentclass{article}
usepackage{tabularx}
usepackage{blindtext}
usepackage{graphicx, graphics}
usepackage[showframe]{geometry}
begin{document}
blindtextpar%
%
begin{figure}
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
%
Blindtext
end{document}
floats margins page
add a comment |
I have some floats which size is almost the page size, however there is a little space that I'd like to use with text. How can I make that LaTeX
uses the maximum of the page without creating a page only with the figure?
documentclass{article}
usepackage{tabularx}
usepackage{blindtext}
usepackage{graphicx, graphics}
usepackage[showframe]{geometry}
begin{document}
blindtextpar%
%
begin{figure}
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
%
Blindtext
end{document}
floats margins page
This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Trybegin{figure}[t]
orbegin{figure}[b]
to move it totop
orbottom
of the page.
– Sigur
Feb 20 at 16:04
@Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names).t
andb
wouldn't be considered, because the amount of text that can fit around the figure is too small.
– Skillmon
Feb 20 at 16:07
@Skillmon, so the situation is much more complicated than I said.
– Sigur
Feb 20 at 16:13
It can be done (+1 to Zarko), but that does not mean it's a good idea.
– Fran
Feb 21 at 4:41
add a comment |
I have some floats which size is almost the page size, however there is a little space that I'd like to use with text. How can I make that LaTeX
uses the maximum of the page without creating a page only with the figure?
documentclass{article}
usepackage{tabularx}
usepackage{blindtext}
usepackage{graphicx, graphics}
usepackage[showframe]{geometry}
begin{document}
blindtextpar%
%
begin{figure}
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
%
Blindtext
end{document}
floats margins page
I have some floats which size is almost the page size, however there is a little space that I'd like to use with text. How can I make that LaTeX
uses the maximum of the page without creating a page only with the figure?
documentclass{article}
usepackage{tabularx}
usepackage{blindtext}
usepackage{graphicx, graphics}
usepackage[showframe]{geometry}
begin{document}
blindtextpar%
%
begin{figure}
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
%
Blindtext
end{document}
floats margins page
floats margins page
edited Feb 20 at 18:14
Bernard
174k776206
174k776206
asked Feb 20 at 16:01
Daniel Valencia C.Daniel Valencia C.
1,144719
1,144719
This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Trybegin{figure}[t]
orbegin{figure}[b]
to move it totop
orbottom
of the page.
– Sigur
Feb 20 at 16:04
@Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names).t
andb
wouldn't be considered, because the amount of text that can fit around the figure is too small.
– Skillmon
Feb 20 at 16:07
@Skillmon, so the situation is much more complicated than I said.
– Sigur
Feb 20 at 16:13
It can be done (+1 to Zarko), but that does not mean it's a good idea.
– Fran
Feb 21 at 4:41
add a comment |
This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Trybegin{figure}[t]
orbegin{figure}[b]
to move it totop
orbottom
of the page.
– Sigur
Feb 20 at 16:04
@Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names).t
andb
wouldn't be considered, because the amount of text that can fit around the figure is too small.
– Skillmon
Feb 20 at 16:07
@Skillmon, so the situation is much more complicated than I said.
– Sigur
Feb 20 at 16:13
It can be done (+1 to Zarko), but that does not mean it's a good idea.
– Fran
Feb 21 at 4:41
This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try
begin{figure}[t]
or begin{figure}[b]
to move it to top
or bottom
of the page.– Sigur
Feb 20 at 16:04
This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try
begin{figure}[t]
or begin{figure}[b]
to move it to top
or bottom
of the page.– Sigur
Feb 20 at 16:04
@Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names).
t
and b
wouldn't be considered, because the amount of text that can fit around the figure is too small.– Skillmon
Feb 20 at 16:07
@Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names).
t
and b
wouldn't be considered, because the amount of text that can fit around the figure is too small.– Skillmon
Feb 20 at 16:07
@Skillmon, so the situation is much more complicated than I said.
– Sigur
Feb 20 at 16:13
@Skillmon, so the situation is much more complicated than I said.
– Sigur
Feb 20 at 16:13
It can be done (+1 to Zarko), but that does not mean it's a good idea.
– Fran
Feb 21 at 4:41
It can be done (+1 to Zarko), but that does not mean it's a good idea.
– Fran
Feb 21 at 4:41
add a comment |
1 Answer
1
active
oldest
votes
default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}
. so try the following:
documentclass{article}
usepackage[showframe]{geometry}
usepackage{graphicx}
renewcommand{textfraction}{0.07} % allow minimal text w. figs
usepackage{lipsum}
begin{document}
lipsum[66]
begin{figure}[htb]
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
lipsum[66]
end{document}
off topic: the package graphicx
load graphics
, so you not do this again.
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%2f475850%2fhow-to-reduce-de-floats-white-space-around-it%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
default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}
. so try the following:
documentclass{article}
usepackage[showframe]{geometry}
usepackage{graphicx}
renewcommand{textfraction}{0.07} % allow minimal text w. figs
usepackage{lipsum}
begin{document}
lipsum[66]
begin{figure}[htb]
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
lipsum[66]
end{document}
off topic: the package graphicx
load graphics
, so you not do this again.
add a comment |
default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}
. so try the following:
documentclass{article}
usepackage[showframe]{geometry}
usepackage{graphicx}
renewcommand{textfraction}{0.07} % allow minimal text w. figs
usepackage{lipsum}
begin{document}
lipsum[66]
begin{figure}[htb]
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
lipsum[66]
end{document}
off topic: the package graphicx
load graphics
, so you not do this again.
add a comment |
default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}
. so try the following:
documentclass{article}
usepackage[showframe]{geometry}
usepackage{graphicx}
renewcommand{textfraction}{0.07} % allow minimal text w. figs
usepackage{lipsum}
begin{document}
lipsum[66]
begin{figure}[htb]
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
lipsum[66]
end{document}
off topic: the package graphicx
load graphics
, so you not do this again.
default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}
. so try the following:
documentclass{article}
usepackage[showframe]{geometry}
usepackage{graphicx}
renewcommand{textfraction}{0.07} % allow minimal text w. figs
usepackage{lipsum}
begin{document}
lipsum[66]
begin{figure}[htb]
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
lipsum[66]
end{document}
off topic: the package graphicx
load graphics
, so you not do this again.
edited Feb 20 at 16:24
answered Feb 20 at 16:17
ZarkoZarko
127k868167
127k868167
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%2f475850%2fhow-to-reduce-de-floats-white-space-around-it%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
This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try
begin{figure}[t]
orbegin{figure}[b]
to move it totop
orbottom
of the page.– Sigur
Feb 20 at 16:04
@Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names).
t
andb
wouldn't be considered, because the amount of text that can fit around the figure is too small.– Skillmon
Feb 20 at 16:07
@Skillmon, so the situation is much more complicated than I said.
– Sigur
Feb 20 at 16:13
It can be done (+1 to Zarko), but that does not mean it's a good idea.
– Fran
Feb 21 at 4:41