请求您帮助在高中代数工作表中创建通用矩形

请求您帮助在高中代数工作表中创建通用矩形

我已附加我正在尝试创建的代数工作表的屏幕截图。

我正在尝试创建的格式:

在此处输入图片描述

在下面的代码中,我成功(奇迹中的奇迹)创建了一个 2 列问题集。但是,我在创建/绘制我们称为“通用矩形”的 2 个单元格表格时遇到了困难。

如果您仔细查看文件附件,您将看到最初(并且很糟糕地)在 Word 中创建的问题集示例。

在这个例子中,你会注意到整数被涂成红色和蓝色。这就是学生为了影响位于包含二项式的括号外的常数的分布而写的。所以我需要在 2 个单元格的矩形周围和内部留出足够的空间,以便学生写下整数。

最后一个问题...

在我的代码中,对于问题#10,我不知道如何在“(10)”后插入空格,以便等式不会与问题数字相冲突。

非常感谢您花时间回答我的问题!

PS 因为我是 Latex 新手,所以序言中可能加载了多余的包。

\documentclass[12pt]{exam}

%\printanswers % uncomment to print solutions

\usepackage{tasks}    
\usepackage[margin=0.5in]{geometry}

\everymath{\displaystyle}

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

\pagestyle{headandfoot}
\header{Semester 1 Review \#3: Distribution \& Solving}{}{03/12 - 12/13/19} 

\begin{document}

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

\vspace{4mm}

\fbox{\fbox{\parbox{7.5 in}{
\textbf {Obj. Q.8.b:} I can use the generic rectangle to distribute the constant. (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 $6(1-7k)$
\begin{solution}
solution
\end{solution}
\task $5(1-10x)$
\begin{solution}
solution
\end{solution}
\task $-2(-9+5x)$
\begin{solution}
solution
\end{solution}
\task $-(7x-10)$
\begin{solution}
solution
\end{solution}
\task $-5(1+5x)$
\begin{solution}
solution
\end{solution}
\task $2(x-5)$
\begin{solution}
solution
\end{solution}
\task $4-(-5-2p)$
\begin{solution}
solution
\end{solution}
\task $9+9(-6-7n)+8k$
\begin{solution}
solution
\end{solution}
\task $-3(-2+5k)-9(10v+4)$
\begin{solution}
solution
\end{solution}
\task $10(x+7)-10(9x+1)$
\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:} Use the distributive property to simplify the following expression. YOU MUST USE THE GENERIC RECTANGLES PROVIDED. (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}

\end{tasks}
\end{document}

此图像链接显示了 Bernard 作为答案提交的非常有用的代码中的几个小格式错误。要求进行微小编辑](https://drive.google.com/file/d/1ZjkZPnymXd51g6nck6IJ4frJBg7kxDOO/view?usp=sharing)[![在此处输入图片描述]2

答案1

这是你想要的吗?

\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}

\newcommand{\genrectangle}{\smash{\begin{tabular}{|p{20mm}|p{20mm}|}\hline\rule{0pt}{15mm} & \\\hline\end{tabular}}}

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

\pagestyle{headandfoot}
\def\no{4}
\header{Semester 1 Review \no: Distribution \& Solving}{}{03/12 - 12/13/19}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% -------------------------- 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 generic rectangle to distribute the constant. (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{%
item-indent=1.5em,
after-item-skip=8em,
            before-skip=4ex,
          after-skip=2cm,
          label-width=3ex, %3ex
label-align=right,
label-offset=0.5em,
          %change '1' to 'a' if you want letters instead of numbers
         % counter-format=(tsk[1]),
         label =\arabic*),
          column-sep=2em
          }

\begin{tasks}(2)
\task $6(1-7k)$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $5(1-10x)$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $-2(-9+5x)$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $-(7x-10)$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $-5(1+5x)$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $2(x-5)$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $4-(-5-2p)$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $9+9(-6-7n)+8k$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $-3(-2+5k)-9(10v+4)$\hfill \genrectangle
\begin{solution}
solution
\end{solution}
\task $10(x+7)-10(9x+1)$\hfill \genrectangle
\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:} Use the distributive property to simplify the following expression. YOU MUST USE THE GENERIC RECTANGLES PROVIDED. (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,%
label-align = right,
label-offset = 1em,
item-indent=4em,
          %change '1' to 'a' if you want letters instead of numbers
          %counter-format=(tsk[1]),
           label =\arabic*),
          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}

\end{tasks}

\end{document} 

在此处输入图片描述

相关内容