將子圖與從同一層開始的圖對齊

將子圖與從同一層開始的圖對齊

我有兩個人物正在嘗試並排對齊。困難在於試圖將兩張圖放在同一條水平線上。在裡面壞榜樣如下圖所示在此輸入影像描述

問題是右邊的圖片放得比較高。我想做的是將兩個圖的水平軸置於同一水平,例如將右側的圖降低,使其水平軸與左圖的水平軸處於同一水平。

我將我的程式碼放在這裡,所有文件都可以透過此連結取得:

http://petitlien.fr/latexfiles

(只需點擊綠色的訪客文件存儲/訪客訪問即可)

在我的程式碼中,我保留了最終文件中所需的頁面大小。這是代碼:

\documentclass[fleqn,a4paper,openany,twoside,11pt]{book}
\usepackage[top=5.5cm,left=45mm,right=45mm,bottom=5.5cm]{geometry}
\usepackage[latin1]{inputenx}
\usepackage[OT1]{fontenc}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[below]{placeins}
\usepackage{subfig}
\captionsetup[subfloat]{captionskip=15pt}
\usepackage{xcolor}
\usepackage{psfrag}
\newcommand{\figtext}{\small}


\begin{document}
\begin{figure}[htp]
\psfrag{A}{$\text{A}$}
\psfrag{B}{$\text{B}$}
\psfrag{C}{$\text{C}$}
\psfrag{D}{$\text{D}$}
\psfrag{E}{$\text{E}$}
\psfrag{F}{$\text{F}$}
\psfrag{G}{$\text{Alphabet letters}$}
\centering{\figtext
\subfloat[Money histories]{
     \input{moneypredicted.tex}
     \includegraphics[width=0.45\textwidth]{moneypredicted.eps}}
\hfill
\subfloat[Health indicator]{
     \includegraphics[width=0.45\textwidth]{alphabet.eps}}
\caption{Hi there}}
\end{figure}
\end{document}

感謝您的任何建議。

答案1

雖然不是專門針對您的問題,但您可以使用\addvbufferverbatimbox套件的功能來解決此問題。我透過 來示範數字\bxfigure,但這同樣適用於figure環境。在您的範例中,您可以將 放置在需要引發的命令\addvbuffer周圍,並將 的值設為適當的值。\includegraphics\boxbottomsep

\documentclass{article}
\usepackage{verbatimbox}
\usepackage{boxhandler}
\begin{document}

\bxfigure{This is the caption}
{\rule{2in}{2in} \hfill \rule{2in}{1.5in}}

\boxbottomsep = 20pt
\boxtopsep = 0pt

\bxfigure{This is the caption}
{\rule{2in}{2in} \hfill \addvbuffer{\rule{2in}{1.5in}}}

\end{document}

相關內容