두 텍스트 사이에 그림을 삽입하는 방법은 무엇입니까?

두 텍스트 사이에 그림을 삽입하는 방법은 무엇입니까?

아래에 제시된 것과 유사한 것을 만들고 싶습니다. 세로로 가운데 정렬된 이미지의 양쪽에 텍스트가 있습니다.

수치

답변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}

관련 정보