\documentclass[11pt,a4paper]{book}
\usepackage{kantlipsum}
\usepackage{exsheets}
\DeclareInstance{exsheets-heading}{exclist}{default}{
runin = true ,
number-post-code = \space ,
attach = { main[r,vc]number[l,vc](-1em,0pt) } ,
above = 0pt,
below = 0pt
}
\SetupExSheets{
%% solution/print = true ,
headings = exclist ,
headings-format = \bfseries,
counter-within = chapter
}
\usepackage{scrextend}% needed with a KOMA-Script class, `addmargin' environment
\SetupExSheets{
question/pre-hook = \addmargin[1em]{0em} ,
question/post-hook = \endaddmargin ,
solution/pre-hook = \addmargin[1em]{0em} ,
solution/post-hook = \endaddmargin
}
\begin{document}
\section{one}
\begin{question}
This is sample question 1.
\end{question}
\begin{solution}
This is sample solution 1.
\end{solution}
\vfill
\vfill
\begin{question}
This is sample question 2.
\end{question}
\begin{solution}
This is sample solution 2.
\end{solution}
\vfill
\newpage
\printsolutions
\end{document}
答案1
\documentclass[11pt,a4paper]{book}
\usepackage{kantlipsum}
\usepackage{exsheets}
\SetupExSheets{
counter-format=No. qu[],
headings-format = \bfseries,
counter-within = chapter,
headings=runin,
question/name = Question
}
\begin{document}
\section{one}
\begin{question}
This is sample question 1.
\end{question}
\begin{solution}
This is sample solution 1.
\end{solution}
\vfill
\vfill
\begin{question}
This is sample question 2.
\end{question}
\begin{solution}
This is sample solution 2.
\end{solution}
\vfill
\newpage
\printsolutions
\end{document}
编辑:谢谢@克莱门斯感谢他的有益评论!