乳胶亚图不集中

问题描述 投票:0回答:1

这个乳胶代码:

\begin{figure}[H]
 \setlength{\figW}{5cm} % determines the width of the images
      \begin{subfigure}[b]{0.5\textwidth}
           \input{images/eigw_kegel_0.5.tex}
           \caption{}
      \end{subfigure}
      \begin{subfigure}[b]{0.5\textwidth}
           \input{images/eigw_kegel_0.05.tex}
           \caption{}
      \end{subfigure} \\
      \begin{subfigure}[b]{0.5\textwidth}
           \input{images/eigv_norm_kegel_0.5.tex}
           \caption{}
      \end{subfigure}
      \begin{subfigure}[b]{0.5\textwidth}
           \input{images/eigv_norm_kegel_0.05.tex}
           \caption{}
      \end{subfigure}
  \caption{(a) and (b): $\lambda_1(\VM{\omega})$ and 
  $\lambda_2(\VM{\omega})$ with $\omega_1 = 0.5$ (left) and $\omega_1 = 
  0.05$ (right), (c) and (d): norm of $\pderiv{\VM{x}_1(\VM{\omega})} 
   {\omega_2}$  with $\omega_1= 0.5$ (left) and $\omega_1= 0.05$ (right)}
  \end{figure}

给我以下输出:

我想有以下输出(使用油漆)。如何调整乳胶代码以便得到这个结果?

enter image description here

latex subfigure
1个回答
0
投票

我自己解决了这个问题。你只需要添加\hspace{0.8cm}来向右移动数字。

\begin{figure}[H]
 \setlength{\figW}{5cm} % determines the width of the images
      \begin{subfigure}[b]{0.5\textwidth}
           \hspace{0.8cm}
           \input{images/eigw_kegel_0.5.tex}
           \caption{}
      \end{subfigure}
      \begin{subfigure}[b]{0.5\textwidth}
           \hspace{0.7cm}
           \input{images/eigw_kegel_0.05.tex}
           \caption{}
      \end{subfigure} \\
      \begin{subfigure}[b]{0.5\textwidth}
           \input{images/eigv_norm_kegel_0.5.tex}
           \caption{}
      \end{subfigure}
      \begin{subfigure}[b]{0.5\textwidth}
           \input{images/eigv_norm_kegel_0.05.tex}
           \caption{}
      \end{subfigure}
  \caption{(a) and (b): $\lambda_1(\VM{\omega})$ and 
  $\lambda_2(\VM{\omega})$ with $\omega_1 = 0.5$ (left) and $\omega_1 = 
  0.05$ (right), (c) and (d): norm of $\pderiv{\VM{x}_1(\VM{\omega})} 
   {\omega_2}$  with $\omega_1= 0.5$ (left) and $\omega_1= 0.05$ (right)}
  \end{figure}
© www.soinside.com 2019 - 2024. All rights reserved.