
나는 이것을 검색했지만 내 특정 문서에 대한 해결책을 찾을 수 없었습니다.
사용이것대답 폭이 다른 두 개의 이미지를 나란히 배치했습니다.
이미지 (a)의 텍스트가 줄바꿈되지 않도록 하고 싶습니다. 이상적으로는 이미지가 래핑되지 않은 캡션 위 중앙에 오도록 하고 싶습니다.
MWE
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\newsavebox{\myimage}
\begin{figure}
\centering
\savebox{\myimage}{\hbox{\rule{150pt}{150pt}}}% Store largest image
\subfloat[First caption text is a bit longer and wraps.]{\usebox{\myimage}} \quad
\subfloat[Second fits on one line.]{\raisebox{\dimexpr.5\ht\myimage-.5\height\relax}{\rule{100pt}{20pt}}}
\caption{This is a figure.}
\end{figure}
\end{document}
답변1
더 큰 이미지 측면에 약간의 공간을 추가하기만 하면 됩니다. 이렇게 하면 캡션이 줄바꿈되지 않습니다.
\documentclass{article}
\usepackage{graphicx,subfig}
\newsavebox{\myimage}
\begin{document}
\begin{figure}
\centering
\savebox{\myimage}{\hbox{\rule{150pt}{150pt}}}% Store largest image
\subfloat[First caption text is a bit longer and wraps.]{\quad\usebox{\myimage}\quad} \quad
\subfloat[Second fits on one line.]{\raisebox{\dimexpr.5\ht\myimage-.5\height}{\rule{100pt}{20pt}}}
\caption{This is a figure.}
\end{figure}
\end{document}
\quad
위에서는 왼쪽 이미지의 양쪽을 사용했습니다 . 더 많은 옵션을 보려면 다음을 참조하세요.가로 간격에 대한 명령은 무엇입니까?