文字与图片并列

文字与图片并列

我试图得到的输出

我对第一部分感到困惑,因为文本不能与图形并排显示

答案1

在此处输入图片描述

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\section{Text and image side by side}

\begin{minipage}[b]{0.4\textwidth}
  Here and there, everywhere.
  Somebody, anybody, nobody.
  Always, for ever, never.

  Here and there, everywhere.
  Somebody, anybody, nobody.
  Always, for ever, never. 
\end{minipage}
\hfill
\raisebox{-1\baselineskip}{\includegraphics[width=0.3\textwidth]{example-image}}

\section{Table and image side by side}

\begin{tabular}[b]{l}
  \textbf{Abra Ka Dabra}\\
  ABC 123\\
  Holter di polter\\
  Email: [email protected]
\end{tabular}
\hfill
\raisebox{-1.5\baselineskip}{\includegraphics[width=0.3\textwidth]{example-image}}

相关内容