使用一列图像和另一列文本制作两列

使用一列图像和另一列文本制作两列

如何在我的乳胶文档中制作一个两列的小部分,其中左列是图像,右列是一些附带的文字?

答案1

mulitcol 包可以帮你解决这个问题。

\documentclass{article}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{lipsum}
\parskip 1ex
\begin{document}

\parindent0em

\lipsum[4]

\begin{multicols}{2}[\columnsep2em] 
\includegraphics[width=\linewidth]{example-image}%
\columnbreak

Here is the short text that accompanies my figure.
\end{multicols}

\lipsum[4]

\end{document}

答案2

显示的是没有水平间隙,但是插入起来很容易。

\documentclass{article}
\usepackage{graphicx}
\usepackage{lipsum}
\parskip 1ex
\begin{document}

\lipsum[4]

\noindent
\includegraphics[width=.5\textwidth]{example-image}%
\parbox[b]{.5\textwidth}{Here is the short text that accompanies my
figure.}

\lipsum[4]

\noindent
\includegraphics[width=.5\textwidth]{example-image}%
\parbox[b]{.5\textwidth}{
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
Here is the long text that accompanies my figure.
}

\end{document}

在此处输入图片描述

相关内容