有没有其他可以替代布局示例的练习包?

有没有其他可以替代布局示例的练习包?

使用文档类bookamsmath包,该exercise包乍一看似乎运行良好(见下文的 MWE)。但是,对于普通用户来说,它不受支持;例如,包详细信息中没有提供任何实质内容的示例。无法在页面上布局子示例,并且不允许使用 、 等环境arrayequation调整tabular可用的标题超出了普通用户的能力。是否有一个得到良好支持的替代方案——也许与包有关amsmath

%
%--------------------------------------------------------------------------------------------------------- %
\documentclass{book}
%--------------------------------------------------------------------------------------------------------- %
%
\usepackage[fleqn]{amsmath} %
\usepackage{amsthm,amssymb} %
\usepackage[paperwidth=170mm,paperheight=240mm,textwidth=132mm,driver=none,lmargin=25mm,vmargin=20mm,showframe,showcrop]{geometry} % verbose,showcrop,showframe=inner frame
\usepackage[a4,frame,center]{crop} % pageframe
\usepackage[lastexercise,answerdelayed]{exercise}
%
\setlength{\marginparsep}{0mm} %
%
\renewcommand{\subQuestionNB}{\alph{subQuestion}) }

\renewcommand{\AnswerHeader}{\medskip{\textbf{\AnswerName\ %
    \ExerciseHeaderNB}\smallskip}}

\renewcommand{\ExerciseHeader}{\textbf{\quad\:\ExerciseName\;\ExerciseHeaderNB\ExerciseHeaderTitle\ExerciseHeaderOrigin} %
  \par\nopagebreak\medskip}

\setlength{\subQuestionIndent}{26pt}

\renewcounter{Exercise}[chapter] % Reset counter every chapter
\renewcounter{Answer}[chapter] %
\newcounter{Problem}[chapter] %
%
\def\AnswerName{\par{Answers to questions on section}} %
%
\begin{document}

\chapter{\fontsize{11}{12}\selectfont{This header would already be present within the book}}\vspace{-36pt}

\begin{Exercise}[label={chap_01_sec_01},name={Exercises on section},counter={Problem}]
  \Question{What is the symbol for iron?}
  \Question{What is the symbol for hydrogen?}
\end{Exercise}

\begin{Exercise}[label={chap_01_sec_02},name={Exercises on section},counter={Problem}]
  \Question{What is the symbol for lead?}
  \Question{For hydrogen, state the atomic number}
\end{Exercise}

\chapter{\fontsize{11}{12}\selectfont{This header would already be present within the book}}\vspace{-36pt}

\begin{Exercise}[label={chap_02_sec_01},name={Exercises on section},counter={Problem}]
  \Question{What is the symbol for copper?}
  \Question{What is the form of oxygen?}
\end{Exercise}

\begin{Exercise}[label={chap_02_sec_02},name={Exercises on section},counter={Problem}]
  \Question{What is the symbol for zinc?}
  \Question{What is the form of zinc}
\end{Exercise}
%
% There are four sets of answers that follow
% The first two sets belong to chapter 1, the second two sets to chapter 2
%
% I want a chapter 1 header to go here
%
  \begin{Answer}[ref={chap_01_sec_01}]
    \Question{Fe=iron}     
  \Question{H} 
  \end{Answer}

  \begin{Answer}[ref={chap_01_sec_02}]
  \Question{Pb=lead}
    \Question{1}
  \end{Answer}

% and a chapter 2 header to go here

  \begin{Answer}[ref={chap_02_sec_01}]
    \Question{Cu=copper}     
  \Question{oxygen is a gas} 
  \end{Answer}

  \begin{Answer}[ref={chap_02_sec_02}]
  \Question{Zn=zinc}
    \Question{zinc is a metal}
  \end{Answer}

\shipoutAnswer

\end{document}

相关内容