如何在分页符和新文本框后继续在任务环境中枚举

如何在分页符和新文本框后继续在任务环境中枚举

我是一名数学老师,正在尝试重新创建许多最初使用极其低效的 mathtype 应用程序创建的代数数学工作表(问题集)。在我看来,它是方程编辑器中的伏地魔。

我寻求您的帮助来解决一个看似简单的问题。我的格式是 2 列水平枚举。但是,在我插入手动分页命令和一个文本框来标识工作表新部分的开始后,LaTeX 重新从 1 开始编号,而不是继续枚举,该枚举在第 1 页的 #10 处结束,在第 2 页应该是 #11。

\documentclass[12pt]{exam}

%\printanswers % uncomment to print solutions.
% MACROS
%Not sure all of these packages are necessary...but the 'taks package is certainly necessary
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{pgfplots}
\usepackage{caption} % allows captions in minipage envir (issue w/solutions envir)
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{framed} %box para
\usepackage{tkz-euclide}
\usepackage{multicol}
\usepackage{tasks}
\pgfplotsset{compat=1.10}
%\displaystyle for all $$ math environments use \lim\limits for other environments

\usepackage[margin=0.5in]{geometry}

\everymath{\displaystyle}

%\unframedsolutions % uncomment to remove boxes from solutions
\setlength{\parindent}{0pt} % removes paragraph indentation

\pagestyle{headandfoot}
\header{Exponents Quiz #1: Product and &Quotient Properties}{}{03/12 - 03/13/19 (Day 6)} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% -------------------------- DOCUMENT STARTS HERE -------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\makebox[\textwidth]{Name:\enspace\hrulefill}


\vspace{4mm}

\fbox{\fbox{\parbox{7.5 in}{
\textbf {Obj. Q.8.b:} I can use the PRODUCT PROPERTY to simplify exponential expressions (10 pts. tot.) \\
\newline
Simplify by expanding with repeated multiplication.YOU WILL NOT RECEIVE CREDIT IF YOU SKIP THIS STEP!!! Your answer should only contain positive exponents.}}}


%Use the 'tasks' tool to double column itemize and enumerate
%Credit to: https://tex.stackexchange.com/questions/402222/two-column-enumerated-list
%the first item sets the spacing
\settasks{after-item-skip=8em,
          after-skip=2cm,
          label-width=3ex,
          %change '1' to 'a' if you want letters instead of numbers
          counter-format=(tsk[1]),
          column-sep=2em
          }

\begin{tasks}(2)
\task $3x^4\cdot 4x^3$
\begin{solution}
solution
\end{solution}
\task $-2x \cdot 2x^4$
\begin{solution}
solution
\end{solution}
\task $4a^2 \cdot 4a^0$
\begin{solution}
solution
\end{solution}
\task $-4x^0 \cdot 4x^2 \cdot 2x^4$
\begin{solution}
solution
\end{solution}
\task $4m^4n^3 \cdot 4m^2n^3$
\begin{solution}
solution
\end{solution}
\task $-4m^3n^4 \cdot 2m$
\begin{solution}
solution
\end{solution}
\task $4nm^0 \cdot 4m^4n^2$
\begin{solution}
solution
\end{solution}
\task $-4a^0b^2 \cdot ba^3$
\begin{solution}
solution
\end{solution}
\task $a^4b^2c^3 \cdot 2a^2b^4$
\begin{solution}
solution
\end{solution}
\task $-4zx^4y^4 \cdot -3x^3y^0z^4$
\begin{solution}
solution
\end{solution}
\end{tasks}

\pagebreak

\makebox[\textwidth]{Name:\enspace\hrulefill}

\vspace{4mm}

\fbox{\fbox{\parbox{7.5 in}{
\textbf {Obj. Q.8.b:} I can use the QUOTIENT PROPERTY to simplify exponential expressions (10 pts. tot.) \\
\newline
Simplify by expanding with repeated multiplication.YOU WILL NOT RECEIVE CREDIT IF YOU SKIP THIS STEP!!! Your answer should only contain positive exponents.}}}
\vspace{0.5mm}

%Use the 'tasks' tool to double column itemize and enumerate
%Credit to: https://tex.stackexchange.com/questions/402222/two-column-enumerated-list
%the first item sets the spacing

\settasks{after-item-skip=8em,
          after-skip=2cm,
          label-width=3ex,
          %change '1' to 'a' if you want letters instead of numbers
          counter-format=(tsk[1]),
          column-sep=2em
          }

%[counter-format = tsk[R], label-format=\normalfont,  after-  skip=1\medskipamount](3)

\begin{tasks}(2)
\task $3x^4\cdot 4x^3$
\begin{solution}
solution
\end{solution}
\task $-2x \cdot 2x^4$
\begin{solution}
solution
\end{solution}
\task $4a^2 \cdot 4a^0$
\begin{solution}
solution
\end{solution}
\task $-4x^0 \cdot 4x^2 \cdot 2x^4$
\begin{solution}
solution
\end{solution}
\task $4m^4n^3 \cdot 4m^2n^3$
\begin{solution}
solution
\end{solution}
\task $-4m^3n^4 \cdot 2m$
\begin{solution}
solution
\end{solution}
\task $4nm^0 \cdot 4m^4n^2$
\begin{solution}
solution
\end{solution}
\task $-4a^0b^2 \cdot ba^3$
\begin{solution}
solution
\end{solution}
\task $a^4b^2c^3 \cdot 2a^2b^4$
\begin{solution}
solution
\end{solution}
\task $-4zx^4y^4 \cdot -3x^3y^0z^4$
\begin{solution}
solution
\end{solution}
\end{tasks}
\end{document}

答案1

使用resume鑰匙。

我还做了一些调整,避免了容易出错的重复任务。页面顶部可以而且应该定义为宏,\settasks只应发出一次。

\documentclass[12pt]{exam}

%\printanswers % uncomment to print solutions.
% MACROS
%Not sure all of these packages are necessary...but the 'taks package is certainly necessary
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{pgfplots}
\usepackage{caption} % allows captions in minipage envir (issue w/solutions envir)
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{framed} %box para
\usepackage{tkz-euclide}
\usepackage{multicol}
\usepackage{tasks}
\pgfplotsset{compat=1.10}
%\displaystyle for all $$ math environments use \lim\limits for other environments

\usepackage[margin=0.5in]{geometry}

\everymath{\displaystyle}

%\unframedsolutions % uncomment to remove boxes from solutions
\setlength{\parindent}{0pt} % removes paragraph indentation

\pagestyle{head}
\header{Exponents Quiz \#1: Product and \& Quotient Properties}
       {}
       {03/12 - 03/13/19 (Day 6)} 

\newcommand{\pagetop}{%
  \makebox[\textwidth]{Name:\enspace\hrulefill}\par
  \vspace{4mm}
  \fbox{\fbox{\parbox{\dimexpr\textwidth-4\fboxsep-4\fboxrule}{
    \textbf {Obj. Q.8.b:} I can use the QUOTIENT PROPERTY to simplify 
    exponential expressions (10 pts. tot.)\par
    \bigskip
    Simplify by expanding with repeated multiplication.
    YOU WILL NOT RECEIVE CREDIT IF YOU SKIP THIS STEP!!! 
    Your answer should only contain positive exponents.
  }}}\par
  \vspace{0.5mm}
}

\settasks{after-item-skip=8em,
          after-skip=2cm,
          label-width=2em,
          item-indent=3em,
          %change '1' to 'a' if you want letters instead of numbers
          counter-format=(tsk[1]),
          column-sep=2em
          }



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% -------------------------- DOCUMENT STARTS HERE -------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\pagetop

\begin{tasks}(2)
\task $3x^4\cdot 4x^3$
\begin{solution}
solution
\end{solution}
\task $-2x \cdot 2x^4$
\begin{solution}
solution
\end{solution}
\task $4a^2 \cdot 4a^0$
\begin{solution}
solution
\end{solution}
\task $-4x^0 \cdot 4x^2 \cdot 2x^4$
\begin{solution}
solution
\end{solution}
\task $4m^4n^3 \cdot 4m^2n^3$
\begin{solution}
solution
\end{solution}
\task $-4m^3n^4 \cdot 2m$
\begin{solution}
solution
\end{solution}
\task $4nm^0 \cdot 4m^4n^2$
\begin{solution}
solution
\end{solution}
\task $-4a^0b^2 \cdot ba^3$
\begin{solution}
solution
\end{solution}
\task $a^4b^2c^3 \cdot 2a^2b^4$
\begin{solution}
solution
\end{solution}
\task $-4zx^4y^4 \cdot -3x^3y^0z^4$
\begin{solution}
solution
\end{solution}
\end{tasks}

\clearpage

\pagetop

\begin{tasks}[resume](2)
\task $3x^4\cdot 4x^3$
\begin{solution}
solution
\end{solution}
\task $-2x \cdot 2x^4$
\begin{solution}
solution
\end{solution}
\task $4a^2 \cdot 4a^0$
\begin{solution}
solution
\end{solution}
\task $-4x^0 \cdot 4x^2 \cdot 2x^4$
\begin{solution}
solution
\end{solution}
\task $4m^4n^3 \cdot 4m^2n^3$
\begin{solution}
solution
\end{solution}
\task $-4m^3n^4 \cdot 2m$
\begin{solution}
solution
\end{solution}
\task $4nm^0 \cdot 4m^4n^2$
\begin{solution}
solution
\end{solution}
\task $-4a^0b^2 \cdot ba^3$
\begin{solution}
solution
\end{solution}
\task $a^4b^2c^3 \cdot 2a^2b^4$
\begin{solution}
solution
\end{solution}
\task $-4zx^4y^4 \cdot -3x^3y^0z^4$
\begin{solution}
solution
\end{solution}
\end{tasks}
\end{document}

在此处输入图片描述

我还将#和修正&\#\&。使用\\ \newline不是获得垂直跳跃的好方法:我改用\bigskip

相关内容