Using bmargin to remove whitespace
I interpret this as telling me that bmargin
is what removes the whitespace between the bottom of the document and the bottom figures. But if you run the code you will see that the whitespace is still there, what am I doing wrong?
EDIT: I just noticed that the second page had correctly bmargin=0
. How do I get this to work on the first page aswell?
EDIT2 (answer to comment): The reason I use that particular voffset
is just to make it look a bit more centered, ideally I would like to control the exact voffset
and bmargin
on the first page, it seems like I can do it on every other page but not the first one.
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[margin=0pt, paperheight=830pt, voffset=60pt, bmargin=0pt]{geometry}
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
EDIT3: This code is for my answer in the comment
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[margin=0pt, paperheight=830pt, voffset=20pt, bmargin=50pt]{geometry}
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.5linewidth]{example-image}
label{fig:my_label}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
vspace*{fill}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
geometry paper-size
|
show 2 more comments
I interpret this as telling me that bmargin
is what removes the whitespace between the bottom of the document and the bottom figures. But if you run the code you will see that the whitespace is still there, what am I doing wrong?
EDIT: I just noticed that the second page had correctly bmargin=0
. How do I get this to work on the first page aswell?
EDIT2 (answer to comment): The reason I use that particular voffset
is just to make it look a bit more centered, ideally I would like to control the exact voffset
and bmargin
on the first page, it seems like I can do it on every other page but not the first one.
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[margin=0pt, paperheight=830pt, voffset=60pt, bmargin=0pt]{geometry}
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
EDIT3: This code is for my answer in the comment
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[margin=0pt, paperheight=830pt, voffset=20pt, bmargin=50pt]{geometry}
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.5linewidth]{example-image}
label{fig:my_label}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
vspace*{fill}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
geometry paper-size
Welcome to TeX.SE!
– Kurt
Mar 7 at 17:22
Thanks, it's a great product! :)
– armara
Mar 7 at 17:32
Can you please explain, why you usepaperheight=830pt, voffset=60pt,?
– Kurt
Mar 7 at 17:43
sure, see edit.
– armara
Mar 7 at 17:45
@JohnKormylo when I wrotevspace*{fill}
, the pictures went under the first page.
– armara
Mar 7 at 18:05
|
show 2 more comments
I interpret this as telling me that bmargin
is what removes the whitespace between the bottom of the document and the bottom figures. But if you run the code you will see that the whitespace is still there, what am I doing wrong?
EDIT: I just noticed that the second page had correctly bmargin=0
. How do I get this to work on the first page aswell?
EDIT2 (answer to comment): The reason I use that particular voffset
is just to make it look a bit more centered, ideally I would like to control the exact voffset
and bmargin
on the first page, it seems like I can do it on every other page but not the first one.
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[margin=0pt, paperheight=830pt, voffset=60pt, bmargin=0pt]{geometry}
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
EDIT3: This code is for my answer in the comment
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[margin=0pt, paperheight=830pt, voffset=20pt, bmargin=50pt]{geometry}
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.5linewidth]{example-image}
label{fig:my_label}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
vspace*{fill}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
geometry paper-size
I interpret this as telling me that bmargin
is what removes the whitespace between the bottom of the document and the bottom figures. But if you run the code you will see that the whitespace is still there, what am I doing wrong?
EDIT: I just noticed that the second page had correctly bmargin=0
. How do I get this to work on the first page aswell?
EDIT2 (answer to comment): The reason I use that particular voffset
is just to make it look a bit more centered, ideally I would like to control the exact voffset
and bmargin
on the first page, it seems like I can do it on every other page but not the first one.
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[margin=0pt, paperheight=830pt, voffset=60pt, bmargin=0pt]{geometry}
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
EDIT3: This code is for my answer in the comment
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[margin=0pt, paperheight=830pt, voffset=20pt, bmargin=50pt]{geometry}
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.5linewidth]{example-image}
label{fig:my_label}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
vspace*{fill}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
geometry paper-size
geometry paper-size
edited Mar 7 at 18:12
armara
asked Mar 7 at 17:19
armaraarmara
83
83
Welcome to TeX.SE!
– Kurt
Mar 7 at 17:22
Thanks, it's a great product! :)
– armara
Mar 7 at 17:32
Can you please explain, why you usepaperheight=830pt, voffset=60pt,?
– Kurt
Mar 7 at 17:43
sure, see edit.
– armara
Mar 7 at 17:45
@JohnKormylo when I wrotevspace*{fill}
, the pictures went under the first page.
– armara
Mar 7 at 18:05
|
show 2 more comments
Welcome to TeX.SE!
– Kurt
Mar 7 at 17:22
Thanks, it's a great product! :)
– armara
Mar 7 at 17:32
Can you please explain, why you usepaperheight=830pt, voffset=60pt,?
– Kurt
Mar 7 at 17:43
sure, see edit.
– armara
Mar 7 at 17:45
@JohnKormylo when I wrotevspace*{fill}
, the pictures went under the first page.
– armara
Mar 7 at 18:05
Welcome to TeX.SE!
– Kurt
Mar 7 at 17:22
Welcome to TeX.SE!
– Kurt
Mar 7 at 17:22
Thanks, it's a great product! :)
– armara
Mar 7 at 17:32
Thanks, it's a great product! :)
– armara
Mar 7 at 17:32
Can you please explain, why you use
paperheight=830pt, voffset=60pt,?
– Kurt
Mar 7 at 17:43
Can you please explain, why you use
paperheight=830pt, voffset=60pt,?
– Kurt
Mar 7 at 17:43
sure, see edit.
– armara
Mar 7 at 17:45
sure, see edit.
– armara
Mar 7 at 17:45
@JohnKormylo when I wrote
vspace*{fill}
, the pictures went under the first page.– armara
Mar 7 at 18:05
@JohnKormylo when I wrote
vspace*{fill}
, the pictures went under the first page.– armara
Mar 7 at 18:05
|
show 2 more comments
2 Answers
2
active
oldest
votes
Try this:
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[paperheight=830pt, margin=0pt, noheadfoot]{geometry}
pagestyle{empty}
makeatletter
@fptop=0pt% distance from top of text area to first [p] figure
@fpbot=0pt% distance from bottom of text area to last [p] figure.
makeatother
begin{document}
begin{figure}[p]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
Thanks I'll use this, just have to figure out how that code works betweenmakeatletter
andmakeatother
. By the way, it seems like the code works just as good without thenoheadfoot
.
– armara
Mar 7 at 20:32
You don't needpagestyle{empty}
either, since all of that would be outside the edges of the page. See source2e.pdf from CTAN forfp@top
etc.
– John Kormylo
Mar 8 at 17:17
add a comment |
Too long for a comment:
I'm not sure what you want to get but I suppose there is a missunderstanding ...
Absolutly unusual are the two options paperheight=830pt, voffset=60pt
.
To make things clearer, have a look to package layout
, it shows the used length to build the page and you can also print them in mm or cm.
So let us see your code with package layout (I added option showframe
to geometry
to display the typing area and margins on the first page):
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[%
margin=0pt,
paperheight=830pt,
voffset=60pt,
bmargin=0pt,
showframe % <=========================================================
]{geometry}
usepackage{layout}
makeatletter
renewcommand*{lay@value}[2]{%
strip@ptdimexpr0.351459dimexprcsname#2endcsnamerelaxrelax mm%
}
makeatother
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numbertwo}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberthree}
end{subfigure}
label{fig:pics1}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberfour}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfive}
end{subfigure}
label{fig:pics2}
end{figure}
layout
end{document}
and the results:
and
with the datas:
1 one inch + hoffset 2 one inch + voffset
3 oddsidemargin = -25.39969mm 4 topmargin = -38.40355mm
5 headheight = 4.21747mm 6 headsep = 8.78639mm
7 textheight = 291.70822mm 8 textwidth = 215.89746mm
9 marginparsep = 3.86601mm 10 marginparwidth = 22.84462mm
11 footskip = 10.54367mm marginparpush = 1.75728mm (not shown)
hoffset = 0mm voffset = 21.08734mm
paperwidth = 215.89746mm paperheight = 291.70822mm
Now is that what you want? Usually you do not use geometry
with your voffset=60pt
... Please see that with your length the textheight becommes 291.70822mm, the paperheight = 291.70822mm. That means the textheight goes below the shown paperheigth (that is also shown in the second image, because the scetch of typing area and margins goes into the printed page datas) ...
To get the images reach the bottom uncomment the two lines %vfill
in my code.
I hope this helps you to see better what you want and how you can get it ...
Gave the answer an up because it gave me some understanding, thx!
– armara
Mar 7 at 20:33
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%2f478249%2fusing-bmargin-to-remove-whitespace%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
Try this:
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[paperheight=830pt, margin=0pt, noheadfoot]{geometry}
pagestyle{empty}
makeatletter
@fptop=0pt% distance from top of text area to first [p] figure
@fpbot=0pt% distance from bottom of text area to last [p] figure.
makeatother
begin{document}
begin{figure}[p]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
Thanks I'll use this, just have to figure out how that code works betweenmakeatletter
andmakeatother
. By the way, it seems like the code works just as good without thenoheadfoot
.
– armara
Mar 7 at 20:32
You don't needpagestyle{empty}
either, since all of that would be outside the edges of the page. See source2e.pdf from CTAN forfp@top
etc.
– John Kormylo
Mar 8 at 17:17
add a comment |
Try this:
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[paperheight=830pt, margin=0pt, noheadfoot]{geometry}
pagestyle{empty}
makeatletter
@fptop=0pt% distance from top of text area to first [p] figure
@fpbot=0pt% distance from bottom of text area to last [p] figure.
makeatother
begin{document}
begin{figure}[p]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
Thanks I'll use this, just have to figure out how that code works betweenmakeatletter
andmakeatother
. By the way, it seems like the code works just as good without thenoheadfoot
.
– armara
Mar 7 at 20:32
You don't needpagestyle{empty}
either, since all of that would be outside the edges of the page. See source2e.pdf from CTAN forfp@top
etc.
– John Kormylo
Mar 8 at 17:17
add a comment |
Try this:
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[paperheight=830pt, margin=0pt, noheadfoot]{geometry}
pagestyle{empty}
makeatletter
@fptop=0pt% distance from top of text area to first [p] figure
@fpbot=0pt% distance from bottom of text area to last [p] figure.
makeatother
begin{document}
begin{figure}[p]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
Try this:
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[paperheight=830pt, margin=0pt, noheadfoot]{geometry}
pagestyle{empty}
makeatletter
@fptop=0pt% distance from top of text area to first [p] figure
@fpbot=0pt% distance from bottom of text area to last [p] figure.
makeatother
begin{document}
begin{figure}[p]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
begin{figure}[p]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberthree}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfour}
end{subfigure}
label{fig:pics2}
end{figure}
end{document}
answered Mar 7 at 18:29
John KormyloJohn Kormylo
45.2k12570
45.2k12570
Thanks I'll use this, just have to figure out how that code works betweenmakeatletter
andmakeatother
. By the way, it seems like the code works just as good without thenoheadfoot
.
– armara
Mar 7 at 20:32
You don't needpagestyle{empty}
either, since all of that would be outside the edges of the page. See source2e.pdf from CTAN forfp@top
etc.
– John Kormylo
Mar 8 at 17:17
add a comment |
Thanks I'll use this, just have to figure out how that code works betweenmakeatletter
andmakeatother
. By the way, it seems like the code works just as good without thenoheadfoot
.
– armara
Mar 7 at 20:32
You don't needpagestyle{empty}
either, since all of that would be outside the edges of the page. See source2e.pdf from CTAN forfp@top
etc.
– John Kormylo
Mar 8 at 17:17
Thanks I'll use this, just have to figure out how that code works between
makeatletter
and makeatother
. By the way, it seems like the code works just as good without the noheadfoot
.– armara
Mar 7 at 20:32
Thanks I'll use this, just have to figure out how that code works between
makeatletter
and makeatother
. By the way, it seems like the code works just as good without the noheadfoot
.– armara
Mar 7 at 20:32
You don't need
pagestyle{empty}
either, since all of that would be outside the edges of the page. See source2e.pdf from CTAN for fp@top
etc.– John Kormylo
Mar 8 at 17:17
You don't need
pagestyle{empty}
either, since all of that would be outside the edges of the page. See source2e.pdf from CTAN for fp@top
etc.– John Kormylo
Mar 8 at 17:17
add a comment |
Too long for a comment:
I'm not sure what you want to get but I suppose there is a missunderstanding ...
Absolutly unusual are the two options paperheight=830pt, voffset=60pt
.
To make things clearer, have a look to package layout
, it shows the used length to build the page and you can also print them in mm or cm.
So let us see your code with package layout (I added option showframe
to geometry
to display the typing area and margins on the first page):
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[%
margin=0pt,
paperheight=830pt,
voffset=60pt,
bmargin=0pt,
showframe % <=========================================================
]{geometry}
usepackage{layout}
makeatletter
renewcommand*{lay@value}[2]{%
strip@ptdimexpr0.351459dimexprcsname#2endcsnamerelaxrelax mm%
}
makeatother
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numbertwo}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberthree}
end{subfigure}
label{fig:pics1}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberfour}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfive}
end{subfigure}
label{fig:pics2}
end{figure}
layout
end{document}
and the results:
and
with the datas:
1 one inch + hoffset 2 one inch + voffset
3 oddsidemargin = -25.39969mm 4 topmargin = -38.40355mm
5 headheight = 4.21747mm 6 headsep = 8.78639mm
7 textheight = 291.70822mm 8 textwidth = 215.89746mm
9 marginparsep = 3.86601mm 10 marginparwidth = 22.84462mm
11 footskip = 10.54367mm marginparpush = 1.75728mm (not shown)
hoffset = 0mm voffset = 21.08734mm
paperwidth = 215.89746mm paperheight = 291.70822mm
Now is that what you want? Usually you do not use geometry
with your voffset=60pt
... Please see that with your length the textheight becommes 291.70822mm, the paperheight = 291.70822mm. That means the textheight goes below the shown paperheigth (that is also shown in the second image, because the scetch of typing area and margins goes into the printed page datas) ...
To get the images reach the bottom uncomment the two lines %vfill
in my code.
I hope this helps you to see better what you want and how you can get it ...
Gave the answer an up because it gave me some understanding, thx!
– armara
Mar 7 at 20:33
add a comment |
Too long for a comment:
I'm not sure what you want to get but I suppose there is a missunderstanding ...
Absolutly unusual are the two options paperheight=830pt, voffset=60pt
.
To make things clearer, have a look to package layout
, it shows the used length to build the page and you can also print them in mm or cm.
So let us see your code with package layout (I added option showframe
to geometry
to display the typing area and margins on the first page):
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[%
margin=0pt,
paperheight=830pt,
voffset=60pt,
bmargin=0pt,
showframe % <=========================================================
]{geometry}
usepackage{layout}
makeatletter
renewcommand*{lay@value}[2]{%
strip@ptdimexpr0.351459dimexprcsname#2endcsnamerelaxrelax mm%
}
makeatother
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numbertwo}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberthree}
end{subfigure}
label{fig:pics1}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberfour}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfive}
end{subfigure}
label{fig:pics2}
end{figure}
layout
end{document}
and the results:
and
with the datas:
1 one inch + hoffset 2 one inch + voffset
3 oddsidemargin = -25.39969mm 4 topmargin = -38.40355mm
5 headheight = 4.21747mm 6 headsep = 8.78639mm
7 textheight = 291.70822mm 8 textwidth = 215.89746mm
9 marginparsep = 3.86601mm 10 marginparwidth = 22.84462mm
11 footskip = 10.54367mm marginparpush = 1.75728mm (not shown)
hoffset = 0mm voffset = 21.08734mm
paperwidth = 215.89746mm paperheight = 291.70822mm
Now is that what you want? Usually you do not use geometry
with your voffset=60pt
... Please see that with your length the textheight becommes 291.70822mm, the paperheight = 291.70822mm. That means the textheight goes below the shown paperheigth (that is also shown in the second image, because the scetch of typing area and margins goes into the printed page datas) ...
To get the images reach the bottom uncomment the two lines %vfill
in my code.
I hope this helps you to see better what you want and how you can get it ...
Gave the answer an up because it gave me some understanding, thx!
– armara
Mar 7 at 20:33
add a comment |
Too long for a comment:
I'm not sure what you want to get but I suppose there is a missunderstanding ...
Absolutly unusual are the two options paperheight=830pt, voffset=60pt
.
To make things clearer, have a look to package layout
, it shows the used length to build the page and you can also print them in mm or cm.
So let us see your code with package layout (I added option showframe
to geometry
to display the typing area and margins on the first page):
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[%
margin=0pt,
paperheight=830pt,
voffset=60pt,
bmargin=0pt,
showframe % <=========================================================
]{geometry}
usepackage{layout}
makeatletter
renewcommand*{lay@value}[2]{%
strip@ptdimexpr0.351459dimexprcsname#2endcsnamerelaxrelax mm%
}
makeatother
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numbertwo}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberthree}
end{subfigure}
label{fig:pics1}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberfour}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfive}
end{subfigure}
label{fig:pics2}
end{figure}
layout
end{document}
and the results:
and
with the datas:
1 one inch + hoffset 2 one inch + voffset
3 oddsidemargin = -25.39969mm 4 topmargin = -38.40355mm
5 headheight = 4.21747mm 6 headsep = 8.78639mm
7 textheight = 291.70822mm 8 textwidth = 215.89746mm
9 marginparsep = 3.86601mm 10 marginparwidth = 22.84462mm
11 footskip = 10.54367mm marginparpush = 1.75728mm (not shown)
hoffset = 0mm voffset = 21.08734mm
paperwidth = 215.89746mm paperheight = 291.70822mm
Now is that what you want? Usually you do not use geometry
with your voffset=60pt
... Please see that with your length the textheight becommes 291.70822mm, the paperheight = 291.70822mm. That means the textheight goes below the shown paperheigth (that is also shown in the second image, because the scetch of typing area and margins goes into the printed page datas) ...
To get the images reach the bottom uncomment the two lines %vfill
in my code.
I hope this helps you to see better what you want and how you can get it ...
Too long for a comment:
I'm not sure what you want to get but I suppose there is a missunderstanding ...
Absolutly unusual are the two options paperheight=830pt, voffset=60pt
.
To make things clearer, have a look to package layout
, it shows the used length to build the page and you can also print them in mm or cm.
So let us see your code with package layout (I added option showframe
to geometry
to display the typing area and margins on the first page):
documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
usepackage[%
margin=0pt,
paperheight=830pt,
voffset=60pt,
bmargin=0pt,
showframe % <=========================================================
]{geometry}
usepackage{layout}
makeatletter
renewcommand*{lay@value}[2]{%
strip@ptdimexpr0.351459dimexprcsname#2endcsnamerelaxrelax mm%
}
makeatother
pagestyle{empty}
begin{document}
begin{figure}[h]
centering
includegraphics[width=0.6linewidth]{example-image-a}
label{fig:my_label}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numbertwo}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberthree}
end{subfigure}
label{fig:pics1}
end{figure}
%vfill % <==============================================================
begin{figure}[h]
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-a}
label{fig:numberfour}
end{subfigure}
begin{subfigure}{.5textwidth}
centering
includegraphics[width=0.7linewidth]{example-image-b}
label{fig:numberfive}
end{subfigure}
label{fig:pics2}
end{figure}
layout
end{document}
and the results:
and
with the datas:
1 one inch + hoffset 2 one inch + voffset
3 oddsidemargin = -25.39969mm 4 topmargin = -38.40355mm
5 headheight = 4.21747mm 6 headsep = 8.78639mm
7 textheight = 291.70822mm 8 textwidth = 215.89746mm
9 marginparsep = 3.86601mm 10 marginparwidth = 22.84462mm
11 footskip = 10.54367mm marginparpush = 1.75728mm (not shown)
hoffset = 0mm voffset = 21.08734mm
paperwidth = 215.89746mm paperheight = 291.70822mm
Now is that what you want? Usually you do not use geometry
with your voffset=60pt
... Please see that with your length the textheight becommes 291.70822mm, the paperheight = 291.70822mm. That means the textheight goes below the shown paperheigth (that is also shown in the second image, because the scetch of typing area and margins goes into the printed page datas) ...
To get the images reach the bottom uncomment the two lines %vfill
in my code.
I hope this helps you to see better what you want and how you can get it ...
answered Mar 7 at 18:46
KurtKurt
39.3k850164
39.3k850164
Gave the answer an up because it gave me some understanding, thx!
– armara
Mar 7 at 20:33
add a comment |
Gave the answer an up because it gave me some understanding, thx!
– armara
Mar 7 at 20:33
Gave the answer an up because it gave me some understanding, thx!
– armara
Mar 7 at 20:33
Gave the answer an up because it gave me some understanding, thx!
– armara
Mar 7 at 20:33
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%2f478249%2fusing-bmargin-to-remove-whitespace%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
Welcome to TeX.SE!
– Kurt
Mar 7 at 17:22
Thanks, it's a great product! :)
– armara
Mar 7 at 17:32
Can you please explain, why you use
paperheight=830pt, voffset=60pt,?
– Kurt
Mar 7 at 17:43
sure, see edit.
– armara
Mar 7 at 17:45
@JohnKormylo when I wrote
vspace*{fill}
, the pictures went under the first page.– armara
Mar 7 at 18:05