三栏页面设置:如何在 \end{task} 之后继续枚举并减少垂直空间?

三栏页面设置:如何在 \end{task} 之后继续枚举并减少垂直空间?

下面的代码在\task环境中创建了一个 3 列枚举数学解决方案集。

在第 8 个问题之后,乘法和简化独立于枚举插入。这些单词被强制左对齐\end{tasks}(h/t tex.stack 成员,其注释解决方案已被删除)

当我尝试继续枚举问题集并出现\begin{tasks} [style=enumerate](3)2 个格式问题时,结果如下:

  1. 在“乘法和简化”之前添加了太多垂直空间

  2. 枚举从 #1 重新开始,而不是继续从 #9 开始。

在此处输入图片描述

非常感谢您的帮助!

姆韦

\documentclass[11pt]{exam}
\printanswers
% un-comment to print solutions.
\renewcommand{\solutiontitle}{}
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{framed}
\usepackage{multicol}
\usepackage{tasks}
\usepackage[a4paper,margin=0.5in,include head]{geometry}
\usepackage{xcolor}
\usepackage{soul}
\pagestyle{head}
\header{Algebra II: Problem Set D}
       {}
       {Due 04/07/23} 

\newcommand{\pagetop}{%
\noindent 
  
  \bigskip
  \vspace{0.5mm}
}

\settasks{after-item-skip=1em,
          after-skip=2cm,
          label-width=1.5em, %<---------
          item-indent=2em,   %<---------
          label=(\arabic*),
          column-sep=1em     %<----------
          }
\begin{document}
%definition for bigskip = 1 line to replace all \bigskip
\def\bigskip{\vskip\bigskipamount}

\textbf{Simplify.}
\begin{tasks}
[style=enumerate](3)
% Prob #1
\task 
$\sqrt{27}$
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=\sqrt{9}\sqrt{3}$
\bigskip
\hl{$=\mathbf{3\sqrt{3}}$}
\end{solutionorbox}
\vspace{0.25cm}

% Prob #2
\task 
$3\sqrt{48}$
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=3\sqrt{16}\sqrt{3}$
\bigskip
$(3)(4)\sqrt{3}$
\bigskip
\hl{$=\mathbf{12\sqrt{3}}$}
\end{solutionorbox}
\vspace{0.25cm}

% Prob #3
\task 
$5\sqrt{12}$
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=5\sqrt{4}\sqrt{3}$
\bigskip
$=(5)(2)\sqrt{3}$
\bigskip
\hl{$=\mathbf{10\sqrt{3}}$}
\end{solutionorbox}
\vspace{0.25cm}

% Prob #4
\task 
$\sqrt{x^{10}}$ 
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=\sqrt{x^2}\sqrt{x^2}\sqrt{x^2}\sqrt{x^2}\sqrt{x^2}$
\bigskip
$=(x^1)(x^1)(x^1)(x^1)(x^1)$
\bigskip
\hl{$=\mathbf{x^5=x^{10\div2}}$}
\end{solutionorbox}
\vspace{0.25cm}

% Prob #5
\task 
$\sqrt{a^{4}b^{12}}$ 
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=(a^{4\div2})(b^{12\div2})$
\bigskip
\hl{$=\mathbf{b^6x^2}$}
\end{solutionorbox}
\vspace{0.25cm}

% Prob #6
\task 
$2a^2\sqrt{a^8}$ 
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=(2a^2)(a^{8\div2})$
\bigskip
$=(2a^2)(a^4)$
\bigskip
\hl{$=\mathbf{2a^{2+4}=2a^6}$}
\end{solutionorbox}
\vspace{0.25cm}

% Prob #7
\task 
$3ab^2\sqrt{4a^6b^{14}}$ 
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=(3ab^2)(2)(a^{6\div2)}(b^{14\div2})$
\bigskip
$=(3)(2)(a^1\cdot{a^3})(b^2\cdot b^7)$
\bigskip
\hl{$=\mathbf{6a^4b^9}$}
\end{solutionorbox}
\vspace{0.25cm}

% Prob #8
\task 
$5a\sqrt{18a^{20}b^{18}}$ 
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=(5a)(\sqrt{9})(\sqrt{2}(a^{20\div2})(b^{18\div2})$
\bigskip
$=(3)(2)(a^1\cdot{a^3})(b^2\cdot b^7)$
\bigskip
\hl{$=\mathbf{6a^4b^9}$}
\end{solutionorbox}
\vspace{0.25cm}

% Prob #9
\task 
$\sqrt{a^{11}}$ 
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=(\sqrt {a^{10}})(\sqrt{a^1})$
\bigskip
$=(a^{10\div2})(\sqrt{a^1})$
\bigskip
\hl{$=\mathbf{a^5\sqrt{a}}$}
\end{solutionorbox}
\end{tasks}
\textbf{Multiply and Simplify}
\bigskip
\begin{tasks}
[style=enumerate](3)
% Prob #10
\task 
$\sqrt{a^{11}}$ 
\vspace{3mm}
\begin{solutionorbox}[3cm]
$=(\sqrt {a^{10}})(\sqrt{a^1})$
\bigskip
$=(a^{10\div2})(\sqrt{a^1})$
\bigskip
\hl{$=\mathbf{a^5\sqrt{a}}$}
\end{solutionorbox}
\end{tasks}
\vspace{0.25cm}
\end{document}

答案1

您可以使用三列宽的未标记伪任务插入标题。

\task!制作跨越所有列的项目。

对第一个标题也进行了同样的操作以保持一致。

b

\documentclass[11pt]{exam}
\printanswers
% un-comment to print solutions.
\renewcommand{\solutiontitle}{}
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{framed}
\usepackage{multicol}
\usepackage{tasks}
\usepackage[a4paper,margin=0.5in,include head]{geometry}
\usepackage{xcolor}
\usepackage{soul}
\pagestyle{head}
\header{Algebra II: Problem Set D}
{}
{Due 04/07/23} 

\newcommand{\pagetop}{%
    \noindent 
    
    \bigskip
    \vspace{0.5mm}
}

\settasks{after-item-skip=1em,
    after-skip=2cm,
    label-width=1.5em, %<---------
    item-indent=2em,   %<---------
    label=(\arabic*),
    column-sep=1em     %<----------
}
\begin{document}
    %definition for bigskip = 1 line to replace all \bigskip
    \def\bigskip{\vskip\bigskipamount}

    \begin{tasks}[style=enumerate](3)
        \task![]\textbf{Simplify.}% changed <<<<<<<<<<<<<
        % Prob #1
        \task 
        $\sqrt{27}$
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=\sqrt{9}\sqrt{3}$
            \bigskip
            \hl{$=\mathbf{3\sqrt{3}}$}
        \end{solutionorbox}
        \vspace{0.25cm}
        
        % Prob #2
        \task 
        $3\sqrt{48}$
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=3\sqrt{16}\sqrt{3}$
            \bigskip
            $(3)(4)\sqrt{3}$
            \bigskip
            \hl{$=\mathbf{12\sqrt{3}}$}
        \end{solutionorbox}
        \vspace{0.25cm}
        
        % Prob #3
        \task 
        $5\sqrt{12}$
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=5\sqrt{4}\sqrt{3}$
            \bigskip
            $=(5)(2)\sqrt{3}$
            \bigskip
            \hl{$=\mathbf{10\sqrt{3}}$}
        \end{solutionorbox}
        \vspace{0.25cm}
        
        % Prob #4
        \task 
        $\sqrt{x^{10}}$ 
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=\sqrt{x^2}\sqrt{x^2}\sqrt{x^2}\sqrt{x^2}\sqrt{x^2}$
            \bigskip
            $=(x^1)(x^1)(x^1)(x^1)(x^1)$
            \bigskip
            \hl{$=\mathbf{x^5=x^{10\div2}}$}
        \end{solutionorbox}
        \vspace{0.25cm}
        
        % Prob #5
        \task 
        $\sqrt{a^{4}b^{12}}$ 
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=(a^{4\div2})(b^{12\div2})$
            \bigskip
            \hl{$=\mathbf{b^6x^2}$}
        \end{solutionorbox}
        \vspace{0.25cm}
        
        % Prob #6
        \task 
        $2a^2\sqrt{a^8}$ 
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=(2a^2)(a^{8\div2})$
            \bigskip
            $=(2a^2)(a^4)$
            \bigskip
            \hl{$=\mathbf{2a^{2+4}=2a^6}$}
        \end{solutionorbox}
        \vspace{0.25cm}
        
        % Prob #7
        \task 
        $3ab^2\sqrt{4a^6b^{14}}$ 
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=(3ab^2)(2)(a^{6\div2)}(b^{14\div2})$
            \bigskip
            $=(3)(2)(a^1\cdot{a^3})(b^2\cdot b^7)$
            \bigskip
            \hl{$=\mathbf{6a^4b^9}$}
        \end{solutionorbox}
        \vspace{0.25cm}
        
        % Prob #8
        \task 
        $5a\sqrt{18a^{20}b^{18}}$ 
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=(5a)(\sqrt{9})(\sqrt{2}(a^{20\div2})(b^{18\div2})$
            \bigskip
            $=(3)(2)(a^1\cdot{a^3})(b^2\cdot b^7)$
            \bigskip
            \hl{$=\mathbf{6a^4b^9}$}
        \end{solutionorbox}
        \vspace{0.25cm}
        
        % Prob #9
        \task 
        $\sqrt{a^{11}}$ 
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=(\sqrt {a^{10}})(\sqrt{a^1})$
            \bigskip
            $=(a^{10\div2})(\sqrt{a^1})$
            \bigskip
            \hl{$=\mathbf{a^5\sqrt{a}}$}
        \end{solutionorbox}\bigskip
            
        \task![]\textbf{Multiply and Simplify}% added <<<<<<<<<<            
            
        % Prob #10
        \task 
        $\sqrt{a^{11}}$ 
        \vspace{3mm}
        \begin{solutionorbox}[3cm]
            $=(\sqrt {a^{10}})(\sqrt{a^1})$
            \bigskip
            $=(a^{10\div2})(\sqrt{a^1})$
            \bigskip
            \hl{$=\mathbf{a^5\sqrt{a}}$}
        \end{solutionorbox}
    \end{tasks}
    \vspace{0.25cm}
\end{document}

相关内容