我正在尝试创建一个两列数学工作表,其中的问题按水平方向编号。
代码如下所示。错误导致枚举(使用数字而不是字母)呈现不正确:
(tsk[1])
而不是(1)
右栏中呈现的是枚举值(tsk[1-])
。
我在 overleaf.com 工作。因此我假设所有软件包都是最新的。
非常感谢您的帮助!我自己还没有找到答案。
注意:因为我是新手,所以序言中可能有一些不需要的额外包。
\documentclass[12pt]{exam}
%\printanswers % uncomment to print solutions.
\printanswers
\renewcommand{\solutiontitle}{}
% 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{Pre-Alg 03/09/20: Product Ppty of Exponents Mini-Quiz }
{}
{04/05/19}
\newcommand{\pagetop}{%
\makebox[\textwidth]{Name:\enspace\hrulefill}\par
\vspace{4mm}
\fbox{\fbox{\parbox{\dimexpr\textwidth-4\fboxsep-4\fboxrule}{
\textbf {Simplify by expansion and steps shown in class. Your answer should have only POSITIVE EXPONENTS. Show all work/steps on this page.}
}}}\par
\bigskip
\vspace{0.5mm}
}
\settasks{after-item-skip=5em,
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)
% Prob #1
\task $8x^3y^0\cdot 7xy^3$
\begin{solutionorbox}[5cm]
$8x^3y^0\cdot 7xy^3$
\\\\
$8^1x^3\cancel{y^0}\cdot 7^1x^1y^3$
\\\\
$8^1\cdot 7^1\cdot x^3\cdot x^1 \cdot y^3$
\\\\
$8\cdot 7\cdot x\cdot x \cdot x\cdot x\cdot y\cdot y\cdot y$
\\\\
$8\cdot 7\cdot x^4\cdot y^3$
\\\\
$56x^4y^3$
\end{solutionorbox}
% Prob #2
\task $-8uv^3\cdot 7u^4v^2$
\begin{solutionorbox}[5cm]
$-8uv^3\cdot 7u^4v^2$
\\\\
$(-8)^1u^1v^3 \cdot 7^1u^4v^2 $
\\\\
$(-8)^1\cdot 7^1\cdot u^1\cdot u^4\cdot v^3\cdot v^2$
\\\\
$(-8)\cdot 7\cdot u\cdot u\cdot u\cdot u\cdot u\cdot v\cdot v\cdot v\cdot v\cdot v$
\\\\
$(-8)\cdot 7\cdot u^5\cdot v^5$
\\\\
$-56u^5v^5$
\end{solutionorbox}
% Prob #3
\task $-a^2b^2\cdot -6a^2b^4$
\begin{solutionorbox}[5cm]
$-a^2b^2\cdot -6a^2b^4$
\\\\
$(-1)^1(a)^2b^2\cdot (-6)^1a^2b^4$
\\\\
$(-1)^1 \cdot (-6)^1 \cdot a^2 \cdot a^2 \cdot b^2 \cdot b^4 $
\\\\
$(-1)\cdot (-6) \cdot a \cdot a \cdot a \cdot a \cdot b \cdot b\cdot b\cdot b\cdot b\cdot b$
\\\\
$(-1)\cdot (-6) \cdot a^4 \cdot b^6$
\\\\
$6a^4b^6$
\end{solutionorbox}
% Prob #4
\task $\frac{xy^{-3}}{3x^3y^{-2}\cdot2x^{-3}y}$
\begin{solution}
solution
\end{solution}
% Prob #5
\task $\frac{m^{-4}n^4\cdot(mn^2)\strut^{-3}}{(m^2n^4)\strut^0}$
\begin{solution}
solution
\end{solution}
\end{tasks}
\clearpage
\newpage
\fbox{\parbox[b][10mm][c]{0.75\linewidth}{\centering{Solutions}}}\\
\begin{tasks}(2)
% Prob #1
\task $-12v^3$
% Prob #2
\task $-2x^7y^5$
% Prob #3
\task $\frac{16}{m^4n^4}$
% Prob #4
\task $\frac{16}{x^2y^8}$
% Prob #5
\task $\frac{m^{-4}n^4\cdot(mn^2)\strut^{-3}}{(m^2y^n^4)^0}$
% Prob #6
\task $-\frac{1}{27b^{12}}$
% Prob #7
\task $16b^4$
% Prob #8
\task $16$
% Prob #9
\task $-\frac{1}{12a^8}$
% Prob #10
\task $\frac{m^2}{n^8}$
%Prob #11
\task $-\frac{2y^5}{x^5}$
%Prob #12
\task $\frac{v^3}{u^7}$
%Prob #13
\task $\frac{m^{10}}{16n^2}$
%Prob #14
\task $1$
%Prob #15
\task $\frac{1}{4a^6b^4}$
%Prob #16
\task $-\frac{2b^2}{a^5}$
\end{tasks}
\end{document}
答案1
不要使用已弃用的(自 1.0 版起)counter-format
选项,而要使用该label
选项和新语法,如以下进一步简化的示例所示。
为了使您的实际文档可编译,您还必须摆脱Double superscript
导致的错误消息\task $\frac{m^{-4}n^4\cdot(mn^2)\strut^{-3}}{(m^2y^n^4)^0}$
。我还鼓励您始终将下标和上标括在一组 中,{}
例如x^{2}
。
\documentclass[12pt]{exam}
\usepackage{tasks}
\settasks{after-item-skip=5em,
after-skip=2cm,
label-width=2em,
item-indent=3em,
label=(\arabic*),
column-sep=2em
}
\begin{document}
\begin{tasks}(2)
\task $-12v^3$
\end{tasks}
\end{document}