Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a minipage with two figures, the problem is, that I want to have them shifted to the left, so the left margin should be smaller, the code of my minipage:

\begin{figure}[H]
\begin{minipage}[b]{0.6\linewidth}
\centering
  \centerline{\includegraphics[scale=0.4]{simplevaralv.png}}
  \caption[VaR assuming normal distribution, Allianz]{VaR assuming normal distribution, Allianz}
\label{sva}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.6\linewidth}
\centering
 \centerline{ \includegraphics[scale=0.4]{simplevarbasf.png}}
  \caption[VaR assuming normal distribution, Basf]{VaR assuming normal distribution, BASF}
\label{svb}
\end{minipage}
\end{figure}

The result looks like this:

enter image description here

And I want to have it shifted to the left, how can I do this?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You can use a box and trick latex to think that the box has zero width and then center it:

\documentclass{article}
\usepackage{graphicx}
\usepackage{showframe} %% just to show frames.

\begin{document}

\begin{figure}[htb]
\centering
\makebox[0pt][c]{%
\begin{minipage}[b]{0.6\linewidth}
\centering
  \includegraphics[scale=0.4]{example-image-a}
  \caption[VaR assuming normal distribution, Allianz]{VaR assuming normal distribution, Allianz}
\label{sva}
\end{minipage}%
\hspace{0.5cm}
\begin{minipage}[b]{0.6\linewidth}
\centering
 \includegraphics[scale=0.4]{example-image-b}
  \caption[VaR assuming normal distribution, Basf]{VaR assuming normal distribution, BASF}
\label{svb}
\end{minipage}%
}%
\end{figure}
\end{document}

enter image description here

This can also be done with adjustbox package.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.