TeX - LaTeX Asked by Anton Neundorfer on February 3, 2021
I’m having following problem:
I have two pictures side by side with minipage. Annoyingly this creates a margin on either side of the minipages, which is much bigger than the normal page margin. Is there a way to reduce this?
My Code:
documentclass[12pt,a4paper]{article}
usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2cm]{geometry}
usepackage[ngerman]{babel}
usepackage {hyperref}
usepackage[section]{placeins}
usepackage{parskip}
usepackage{textcomp}
usepackage{caption}
captionsetup[figure]{font=footnotesize, labelfont=footnotesize}
usepackage{graphicx}
usepackage{adjustbox}
usepackage{fontspec}
usepackage[doublespacing]{setspace}
setmainfont{Arial}
graphicspath{{Grafiken/}}
begin {document}
etc etc
begin{figure} [hbt!]
centering
begin{minipage}{0.45textwidth}
centering
includegraphics [width=.8linewidth]{A1B1}
caption{Aufschluss Westbahnhof}
label {fig:A1B1}
end{minipage}
begin{minipage}{0.45textwidth}
centering
includegraphics [width=.8linewidth]{A1B2}
caption{Einzelner Pflasterstein}
label {fig:A1B2}
end{minipage}
end{figure}
etcetc
end {document}
I’d basically like to adjust the margin on the minipage sizes so it fits more with the margins of the main document.
Cheers
Anton
We can't run your example (you could use example-image
as the image as it's generally available but it perhaps helps to annotate the spaces (just looking at the block within textwidth
assuming the overall page margin is OK)
Your total minipage space is only 90% of the text width and the images only take up 80% of that already reduced space
I would set the minipage width to .5textwidth
and remove the word space between the two with ...end{minipage}begin{minipage}...
with no space, then make the images a bit wider say 0.9linewidth
so 90% of the already wider minipage.
Answered by David Carlisle on February 3, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP