如何在我的乳胶文档中制作一个两列的小部分,其中左列是图像,右列是一些附带的文字?
答案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}