左边距小页两位数字

左边距小页两位数字

我有minipage两个数字,问题是,我想将它们向左移动,因此左边距应该更小,我的代码是minipage

\documentclass{article}
\usepackage{graphicx}

\begin{document}
\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}
\end{document}

结果如下:

在此处输入图片描述

我想将其向左移动,我该怎么做?

答案1

您可以使用一个盒子并欺骗乳胶让其认为该盒子的宽度为零,然后将其居中:

\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}

在此处输入图片描述

这也可以通过包来完成adjustbox

答案2

A\hspace{}就足够了。将其添加到第一个小页面的前面(具体多少空间取决于具体情况)。

\documentclass{article}
\usepackage{graphicx}
\usepackage{showframe}

\begin{document}

\begin{figure}[htb]
\hspace{-1.6cm}\begin{minipage}[b]{0.6\linewidth} %%% ADDED HERE %%%
\centering
  \centerline{\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
 \centerline{ \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}

在此处输入图片描述

相关内容