序言:有一些东西正在抑制数学工作表顶部包含说明的 fbox

序言:有一些东西正在抑制数学工作表顶部包含说明的 fbox

以下是我在 overleaf 中编译时未出现的说明:

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

不确定这是否重要,代码倒数第二行有错误\end task

underfull \hbox (badness 10000) in paragraph

非常感谢您花时间阅读并回复我的问题。

梅威瑟:

\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[a4paper,margin=0.5in,include head]{geometry}

\everymath{\displaystyle}

%\unframedsolutions % uncomment to remove boxes from solutions

\setlength\parindent{1em}

\pagestyle{head}
\header{Pre-Alg. 8.1.6 D6 Exponents Quiz:Product and Product Properties }
       {}
       {03/10/20} 

\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.
     \bigskip
    \\Show all work/steps on this page.}

  }}}\par
  \bigskip
  \vspace{0.5mm}
}

\settasks{after-item-skip=1em,
          after-skip=2cm,
          label-width=2em,
          item-indent=3em,
          label=(\arabic*),
          column-sep=2em
          }

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

\begin{document}

%\pagetop
\begin{tasks}%
[style=enumerate](2)
% Prob #1
\task $3x^4\cdot 4x^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 $7x^2\cdot 4x^3$
\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}


\end{tasks}

\end{document}

答案1

由于文本被注释掉了,所以它不会出现,但除此之外,它还需要加上前缀,\noindent因为它是一个全宽框,但作为段落的开头缩进,因此会粘在右边距上,并带有一个过满框警告。

框未满警告(几乎总是如此)是由于误用而导致的,只需用空白行\\ 替换\\\\,并设置\parskip为在段落之间提供所需的垂直空间。

相关内容