如何沿着线条本身排列图形?

如何沿着线条本身排列图形?

如何沿着线条本身排列图形?

在此处输入图片描述

我的图片必须与问题本身一致。如何做到?帮帮我。

提前致谢

\documentclass[12pt,a4paper]{exam}
\renewcommand{\baselinestretch}{1.2}
\oddsidemargin 0in \evensidemargin 0in \topmargin 0in \textheight
9.2in \textwidth 6.5in
%\hoffset -1in
%\voffset -1in
%\evensidemargin 14pt
\usepackage{amsmath,amsthm,amsfonts,amssymb,graphicx,dsfont,multicol}
 \DeclareGraphicsRule{.bmp}{bmp}{.bb}{}
 \begin{document}
 \begin{questions}
 \question In the adjoining figure, $AC=$

  \includegraphics[width=3cm]{./triangle}
     \end{questions}
\end{document}

在此处输入图片描述

答案1

在此处输入图片描述

代码

\documentclass[12pt,a4paper]{exam}
\renewcommand{\baselinestretch}{1.2}
\oddsidemargin 0in \evensidemargin 0in \topmargin 0in \textheight
9.2in \textwidth 6.5in
%\hoffset -1in
%\voffset -1in
%\evensidemargin 14pt
\usepackage{amsmath,amsthm,amsfonts,amssymb,graphicx,dsfont,multicol}
 \DeclareGraphicsRule{.bmp}{bmp}{.bb}{}
 \begin{document}
 \begin{questions}
 \question In the adjoining figure, $AC=$ \quad
 %\begin{figure}[h]
% \centering
 \includegraphics[width=3cm]{example-image-a}
% \end{figure}
\end{questions}
\end{document}

答案2

\question行与行之间的空行\includegraphics表示该图形在单独的段落中。

删除空白行你就会得到所需的结果。

\documentclass[12pt,a4paper]{exam}
\renewcommand{\baselinestretch}{1.2}
\oddsidemargin 0in \evensidemargin 0in \topmargin 0in \textheight
9.2in \textwidth 6.5in
%\hoffset -1in
%\voffset -1in
%\evensidemargin 14pt
\usepackage{amsmath,amsthm,amsfonts,amssymb,graphicx,dsfont,multicol}
 \DeclareGraphicsRule{.bmp}{bmp}{.bb}{}
 \begin{document}
 \begin{questions}
 \question In the adjoining figure, $AC=$
  \includegraphics[width=3cm]{./triangle}
 \end{questions}
\end{document}

相关内容