
나란히 정렬하려는 두 그림이 있습니다. 어려운 점은 두 개의 플롯을 동일한 수평선에 표시하는 것입니다. 에서나쁜 예아래에 표시된 사진
문제는 오른쪽 사진이 오히려 올려져 있다는 것이다. 내가 하고 싶은 것은 두 그래프의 수평축을 같은 수준에 두는 것입니다. 예를 들어 오른쪽 그림의 수평축이 왼쪽 그림의 수평축과 같은 수준이 되도록 아래로 낮추는 것입니다.
여기에 코드를 넣을 예정이며 모든 파일은 이 링크에서 사용할 수 있습니다.
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
귀하의 문제에 특별히 의도된 것은 아니지만 패키지 \addvbuffer
의 기능을 사용하여 verbatimbox
이 문제를 해결할 수 있습니다. 나는 를 통해 그림을 보여 주지만 \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}