在latex中使用“插入框”命令时,如何添加连续编号的标题?

在latex中使用“插入框”命令时,如何添加连续编号的标题?,latex,Latex,我在Latex中使用了InsertBoxL命令来生成3个连续的图像,一个在另一个下面,每个图像旁边都有文本。有没有办法使用上面的命令在Latex中插入连续编号的标题 到目前为止,我使用的乳胶是: \documentclass[11pt]{article} \input{insbox} \begin{document} \InsertBoxL{0}{\rule{1.6in}{0.9in}} %text inserted here \bigskip \InsertBoxL{0}{\rul

我在Latex中使用了
InsertBoxL
命令来生成3个连续的图像,一个在另一个下面,每个图像旁边都有文本。有没有办法使用上面的命令在Latex中插入连续编号的标题

到目前为止,我使用的乳胶是:

\documentclass[11pt]{article}
\input{insbox}

\begin{document}

 \InsertBoxL{0}{\rule{1.6in}{0.9in}} %text inserted here 
 \bigskip
 \InsertBoxL{0}{\rule{1.6in}{0.9in}} %text inserted here
 \bigskip
 \InsertBoxL{0}{\rule{1.6in}{0.9in}} %text inserted here

\end{document}

我已使用
\rule
命令替换了实际图像


任何帮助都将不胜感激

要在方框中添加标题,可以使用
标题
软件包中的
\captionof
宏:

\documentclass[11pt]{article}
\input{insbox}
\usepackage{caption}

\begin{document}

 \InsertBoxL{0}{\rule{1.6in}{0.9in}} \captionof{figure}{some text}
 \bigskip
 \InsertBoxL{0}{\rule{1.6in}{0.9in}} \captionof{figure}{some text}
 \bigskip
 \InsertBoxL{0}{\rule{1.6in}{0.9in}} \captionof{figure}{some text}

\end{document}
但是,与这些奇怪的方框内容不同,迷你页可能更容易:

\documentclass[11pt]{article}

\usepackage{graphicx}
\usepackage{caption}
\captionsetup{singlelinecheck=false}

\begin{document}

\noindent\begin{minipage}[b]{1.6in}
\includegraphics[width=\textwidth]{example-image}
\end{minipage}%
\begin{minipage}[b]{\dimexpr\linewidth-1.6in}
\captionof{figure}{some text}
\end{minipage}%

\noindent\begin{minipage}[b]{1.6in}
\includegraphics[width=\textwidth]{example-image}
\end{minipage}%
\begin{minipage}[b]{\dimexpr\textwidth-1.6in}
\captionof{figure}{some tefffffxt}
\end{minipage}%

\noindent\begin{minipage}[b]{1.6in}
\includegraphics[width=\textwidth]{example-image}
\end{minipage}%
\begin{minipage}[b]{\dimexpr\textwidth-1.6in}
\captionof{figure}{some text}
\end{minipage}%

\end{document}

除图像外,还有现成的字幕软件包:

\documentclass[11pt]{article}

\usepackage{graphicx}
\usepackage{caption}
\usepackage{sidecap}

\begin{document}

\begin{SCfigure}
  \includegraphics[width=.3\textwidth]{example-image-duck}
  \caption{heading}
\end{SCfigure}
\begin{SCfigure}
  \includegraphics[width=.3\textwidth]{example-image-duck}
  \caption{heading}
\end{SCfigure}
\begin{SCfigure}
  \includegraphics[width=.3\textwidth]{example-image-duck}
  \caption{heading}
\end{SCfigure}

\end{document}

您可以使用标题包中的
\captionof
宏,您的
InsertBoxL
宏来自哪个包?您显示的代码未编译…Edited@samcarter\u在\u topanswers.xyz!非常感谢。是否有必要将标题放在方框/图像下方?如果您想将标题放在图像下方,请使用普通的
图形
而不是这个奇怪的方框?我想要3个图像,一个在另一个图像下方,每个图像旁边都有文本。