Using bmargin to remove whitespaceUsing restoregeometry in environment, next page runs off the page bottomHow...

Why can't we use freedom of speech and expression to incite people to rebel against government in India?

What is the meaning of option 'by' in TikZ Intersections

Paper published similar to PhD thesis

A bug in Excel? Conditional formatting for marking duplicates also highlights unique value

What is the purpose of a disclaimer like "this is not legal advice"?

Giving a talk in my old university, how prominently should I tell students my salary?

Is there a way to find out the age of climbing ropes?

What does "rhumatis" mean?

Why would the IRS ask for birth certificates or even audit a small tax return?

Python function to ask for a multiple-choice answer

Is every open circuit a capacitor?

Does the in-code argument passing conventions used on PDP-11's have a name?

In the world of The Matrix, what is "popping"?

ESPP--any reason not to go all in?

Drawing the Möbius band and the Klein bottle

Named nets not connected in Eagle board design

Affine transformation of circular arc in 3D

Computing the volume of a simplex-like object with constraints

The need of reserving one's ability in job interviews

Can a Mexican citizen living in US under DACA drive to Canada?

What's the best tool for cutting holes into duct work?

Sundering Titan and basic normal lands and snow lands

Calculate total length of edges in select Voronoi diagram

Practical reasons to have both a large police force and bounty hunting network?



Using bmargin to remove whitespace


Using restoregeometry in environment, next page runs off the page bottomHow do I get letter sized paper when I am using the res.cls margin optionPaper size incorrect when using latex instead of pdflatexPdf in bookmark dimensions using geometryAdd bleed using geometryWhy do I get an extra white page before my TikZ picture?Geometry does not seem to change the marginsRemove left padding with geometry packageShould one set the paper size twice, when using KOMA-script and geometry?Accurately remove whitespace introduced by footer on only the first page













1















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}









share|improve this question









New contributor




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





















  • Welcome to TeX.SE!

    – Kurt
    5 hours ago











  • Thanks, it's a great product! :)

    – armara
    4 hours ago











  • Can you please explain, why you use paperheight=830pt, voffset=60pt,?

    – Kurt
    4 hours ago











  • sure, see edit.

    – armara
    4 hours ago











  • @JohnKormylo when I wrote vspace*{fill}, the pictures went under the first page.

    – armara
    4 hours ago


















1















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}









share|improve this question









New contributor




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





















  • Welcome to TeX.SE!

    – Kurt
    5 hours ago











  • Thanks, it's a great product! :)

    – armara
    4 hours ago











  • Can you please explain, why you use paperheight=830pt, voffset=60pt,?

    – Kurt
    4 hours ago











  • sure, see edit.

    – armara
    4 hours ago











  • @JohnKormylo when I wrote vspace*{fill}, the pictures went under the first page.

    – armara
    4 hours ago
















1












1








1








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}









share|improve this question









New contributor




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












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






share|improve this question









New contributor




armara 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




armara 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








edited 4 hours ago







armara













New contributor




armara 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









armaraarmara

83




83




New contributor




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





New contributor





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






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













  • Welcome to TeX.SE!

    – Kurt
    5 hours ago











  • Thanks, it's a great product! :)

    – armara
    4 hours ago











  • Can you please explain, why you use paperheight=830pt, voffset=60pt,?

    – Kurt
    4 hours ago











  • sure, see edit.

    – armara
    4 hours ago











  • @JohnKormylo when I wrote vspace*{fill}, the pictures went under the first page.

    – armara
    4 hours ago





















  • Welcome to TeX.SE!

    – Kurt
    5 hours ago











  • Thanks, it's a great product! :)

    – armara
    4 hours ago











  • Can you please explain, why you use paperheight=830pt, voffset=60pt,?

    – Kurt
    4 hours ago











  • sure, see edit.

    – armara
    4 hours ago











  • @JohnKormylo when I wrote vspace*{fill}, the pictures went under the first page.

    – armara
    4 hours ago



















Welcome to TeX.SE!

– Kurt
5 hours ago





Welcome to TeX.SE!

– Kurt
5 hours ago













Thanks, it's a great product! :)

– armara
4 hours ago





Thanks, it's a great product! :)

– armara
4 hours ago













Can you please explain, why you use paperheight=830pt, voffset=60pt,?

– Kurt
4 hours ago





Can you please explain, why you use paperheight=830pt, voffset=60pt,?

– Kurt
4 hours ago













sure, see edit.

– armara
4 hours ago





sure, see edit.

– armara
4 hours ago













@JohnKormylo when I wrote vspace*{fill}, the pictures went under the first page.

– armara
4 hours ago







@JohnKormylo when I wrote vspace*{fill}, the pictures went under the first page.

– armara
4 hours ago












2 Answers
2






active

oldest

votes


















0














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}





share|improve this answer
























  • 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
    1 hour ago



















0














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:



first page



and



layout page



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






share|improve this answer
























  • Gave the answer an up because it gave me some understanding, thx!

    – armara
    1 hour ago











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


}
});






armara 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%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









0














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}





share|improve this answer
























  • 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
    1 hour ago
















0














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}





share|improve this answer
























  • 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
    1 hour ago














0












0








0







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}





share|improve this answer













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}






share|improve this answer












share|improve this answer



share|improve this answer










answered 3 hours ago









John KormyloJohn Kormylo

44.9k12570




44.9k12570













  • 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
    1 hour ago



















  • 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
    1 hour ago

















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
1 hour ago





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
1 hour ago











0














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:



first page



and



layout page



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






share|improve this answer
























  • Gave the answer an up because it gave me some understanding, thx!

    – armara
    1 hour ago
















0














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:



first page



and



layout page



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






share|improve this answer
























  • Gave the answer an up because it gave me some understanding, thx!

    – armara
    1 hour ago














0












0








0







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:



first page



and



layout page



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






share|improve this answer













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:



first page



and



layout page



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







share|improve this answer












share|improve this answer



share|improve this answer










answered 3 hours ago









KurtKurt

38.7k849162




38.7k849162













  • Gave the answer an up because it gave me some understanding, thx!

    – armara
    1 hour ago



















  • Gave the answer an up because it gave me some understanding, thx!

    – armara
    1 hour ago

















Gave the answer an up because it gave me some understanding, thx!

– armara
1 hour ago





Gave the answer an up because it gave me some understanding, thx!

– armara
1 hour ago










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










draft saved

draft discarded


















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













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












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




draft saved


draft discarded














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





















































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

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...

Castillo d'Acher Características Menú de navegación