如何沿着线条本身排列图形?
我的图片必须与问题本身一致。如何做到?帮帮我。
提前致谢
\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}