自动调整小型货的大小

时间:2017-02-18 02:30:31

标签: latex

我正在尝试自动调整小型鼠标的大小。

我正在创建一个报告,其中有几个“段落”,左侧有浮动图像,右侧有一些文本,如果有足够的文本,最后会在其下方。它们(图像+文本)都是“语义块”。

首先我做到了:

\begin{wrapfigure}{L}{0.15\textwidth}
    \centering
    \includegraphics[width=0.1\textwidth]{image}\\
    \emph{image caption with no "figure1"}
\end{wrapfigure}
Text related to this image\\
Text related to this image\\
Text not related to this image\\

当然,与图像无关的文字被认为与其他文字行一样,在图像右侧打印。

所以我试着把它全部包装好:

\begin{minipage}[c][10cm]{20cm}
\begin{wrapfigure}{L}{0.15\textwidth}
    \centering
    \includegraphics[width=0.1\textwidth]{image}\\
    \emph{image caption with no "figure1"}
\end{wrapfigure}
Text related to this image\\
Text related to this image\\
\end{minipage}
Text not related to this image\\

但它确实不方便,高度是固定的。

如果有更好的方法可以不使用那些也很棒的小型货。 最后我计划将它变成一个带有2个参数的新环境:图像名称和文字,这样我就可以在文章中轻松使用它。

编辑:在第二段代码中修正了一个错误

0 个答案:

没有答案