
답변1
기억나지 않는 경우 다른 해결 방법은 이미지를 테이블( 단일 셀만 사용) adjustbox
에 넣거나 또는 또는 . 수직 정렬을 미세하게 제어하려면(즉, 정확히 수직 중앙이 아닌 경우) 다음을 사용하는 것이 좋습니다 .tabular
\parbox,
minipage
\vbox
\documentclass{article}
\usepackage{graphicx}
\parskip2em
\begin{document}
Left text%
\begin{tabular}{c}
\includegraphics[width=2cm]{example-image}\\
\end{tabular}%
Right text\par
Left text
\parbox{2cm}{\includegraphics[width=\linewidth]{example-image}}
Right text\par
Left text \vbox to .83cm{\hbox{\includegraphics[width=2cm]{example-image}}}
Right text\par
Left text \vbox to 1.2cm{\hbox{\includegraphics[width=2cm]{example-image}}}
Right text
\end{document}
답변2
사용adjustbox
옵션은 다음 과 같습니다 valign=c
.
\documentclass{article}
\usepackage[export]{adjustbox}
\begin{document}
Left text
\includegraphics[height=50pt,valign=c]{example-image}
Right text
\end{document}