我有这些代码
\documentclass[a4paper]{exam}
\usepackage{chemfig}
\usepackage[version=4,arrows=pgf-filled]{mhchem}
\usepackage{chemmacros}
\begin{document}
\pointsdroppedatright
\setlength\dottedlinefillheight{1cm}
\begin{questions}
\question
Complete the following equations and write the I.U.P.A.C names of the main
organic product in each case.
\begin{parts}
\part[01 mark]
\ce{CH3CH=CH2 ->[\ce{MnO4 \mch[] / OH \mch[]}]}
\fillwithdottedlines{1cm} \droppoints
Name of product \fillwithdottedlines{1cm} \droppoints
\end{parts}
\end{questions}
\end{document}
编译后,会出现下面的图像。
我需要的内容如下。
提前致谢
答案1
\fillwithdottedlines 命令在文本下方插入虚线。
可以這樣嗎?
\documentclass[a4paper]{exam}
\usepackage{chemfig}
\usepackage[version=4,arrows=pgf-filled]{mhchem}
\usepackage{chemmacros}
\begin{document}
\pointsdroppedatright
\setlength\dottedlinefillheight{1cm}
\begin{questions}
\question
Complete the following equations and write the I.U.P.A.C names of the main
organic product in each case.
\begin{parts}
\part[01 mark]
\ce{CH3CH=CH2 ->[\ce{MnO^{-}_{4} / OH-}]} \dotfill
Name of product \dotfill
\end{parts}
\end{questions}
\end{document}