![如何将点填充和落点放在同一行](https://linux22.com/image/445870/%E5%A6%82%E4%BD%95%E5%B0%86%E7%82%B9%E5%A1%AB%E5%85%85%E5%92%8C%E8%90%BD%E7%82%B9%E6%94%BE%E5%9C%A8%E5%90%8C%E4%B8%80%E8%A1%8C.png)
我有这些代码
\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}