Too much space between floats
I have the problem that in two-column mode there is often too much unused space when there are multiple figures or tables in the same column.
I would like Latex to automatically shift the figures together more and fit more text in that column.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
Leads to:
By moving some blindtext above the second image I can get it to work, but I was hoping there was some way in which Latex automatically positions the figures correctly.
floats positioning two-column
add a comment |
I have the problem that in two-column mode there is often too much unused space when there are multiple figures or tables in the same column.
I would like Latex to automatically shift the figures together more and fit more text in that column.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
Leads to:
By moving some blindtext above the second image I can get it to work, but I was hoping there was some way in which Latex automatically positions the figures correctly.
floats positioning two-column
add a comment |
I have the problem that in two-column mode there is often too much unused space when there are multiple figures or tables in the same column.
I would like Latex to automatically shift the figures together more and fit more text in that column.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
Leads to:
By moving some blindtext above the second image I can get it to work, but I was hoping there was some way in which Latex automatically positions the figures correctly.
floats positioning two-column
I have the problem that in two-column mode there is often too much unused space when there are multiple figures or tables in the same column.
I would like Latex to automatically shift the figures together more and fit more text in that column.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
Leads to:
By moving some blindtext above the second image I can get it to work, but I was hoping there was some way in which Latex automatically positions the figures correctly.
floats positioning two-column
floats positioning two-column
asked Jan 24 at 21:02
Tim KuipersTim Kuipers
1849
1849
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.
However here it works out OK.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
renewcommandfloatpagefraction{.55}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
You could get the same result without changing the global settings by preventing the float being positioned in a float column
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}[t] % position image at top
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
add a comment |
Just move the figures up and down (I mean the code segments begin{figure}...end{figure}
) and add positioning specifiers like [!htbp]
to help put them at the preferred places.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
end{document}
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%2f471729%2ftoo-much-space-between-floats%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.
However here it works out OK.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
renewcommandfloatpagefraction{.55}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
You could get the same result without changing the global settings by preventing the float being positioned in a float column
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}[t] % position image at top
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
add a comment |
You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.
However here it works out OK.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
renewcommandfloatpagefraction{.55}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
You could get the same result without changing the global settings by preventing the float being positioned in a float column
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}[t] % position image at top
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
add a comment |
You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.
However here it works out OK.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
renewcommandfloatpagefraction{.55}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
You could get the same result without changing the global settings by preventing the float being positioned in a float column
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}[t] % position image at top
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.
However here it works out OK.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
renewcommandfloatpagefraction{.55}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
You could get the same result without changing the global settings by preventing the float being positioned in a float column
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
begin{figure}[t] % position image at top
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
blindtext
end{document}
edited Jan 25 at 15:22
Tim Kuipers
1849
1849
answered Jan 24 at 21:47
David CarlisleDavid Carlisle
488k4111271874
488k4111271874
add a comment |
add a comment |
Just move the figures up and down (I mean the code segments begin{figure}...end{figure}
) and add positioning specifiers like [!htbp]
to help put them at the preferred places.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
end{document}
add a comment |
Just move the figures up and down (I mean the code segments begin{figure}...end{figure}
) and add positioning specifiers like [!htbp]
to help put them at the preferred places.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
end{document}
add a comment |
Just move the figures up and down (I mean the code segments begin{figure}...end{figure}
) and add positioning specifiers like [!htbp]
to help put them at the preferred places.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
end{document}
Just move the figures up and down (I mean the code segments begin{figure}...end{figure}
) and add positioning specifiers like [!htbp]
to help put them at the preferred places.
documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}
begin{document}
blindtext
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
begin{figure}[!htbp]
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}
blindtext
end{document}
answered Jan 24 at 21:17
AboAmmarAboAmmar
33.6k22883
33.6k22883
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%2f471729%2ftoo-much-space-between-floats%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