如何为儿童数学工作表创建名称空间?还有其他问题吗?

如何为儿童数学工作表创建名称空间?还有其他问题吗?

我希望我的工作表的名称和日期位于工作表标题的左上方。我还想了解使用什么代码来调整间距。间距有点偏离,我希望两列问题对称。这是我的代码,我希望有这方面排版语言经验的人可以提供帮助:

\documentclass{article}
\usepackage{gensymb}
\usepackage{amsfonts}
\usepackage{amsmath}
\begin{document}
\title{7th Grade Algebra: Exponents}
\author{Ms. Lampianerani} 
\maketitle
\begin{tabular}{rl}
Name:  & \rule{0.25\linewidth}{\linethickness} \\ 
Date:  & \rule{0.25\linewidth}{\linethickness} \\ 
\end{tabular}

\section{Notes} 
 Simplify the following negative exponent problems. You want to get an answer with   all positive exponents. 

\begin{minipage}{.45\linewidth}
\begin{flushleft}  
\begin{enumerate}

\item $\displaystyle \frac{1}{k^{-5}}$
\item $k^{-5}$ 
\item $a^3 b^{-2}$
\item $c^{-4}d^{4}$ 
\item $(a^2 b^{-7})^{0}$

\end{enumerate}
\end{flushleft} 
\end{minipage}
\hfill 
\begin{minipage}{.45\linewidth}
\begin{flushright}  
\begin{enumerate}
\setcounter{enumi}{5}

\item $\displaystyle \frac{-45}{5x^{-6}}$
\item $\displaystyle \frac{x^{-8}}{4y^{15}}$ 
\item $\displaystyle \frac{2a^3}{b^{-5}}$ 
\item $\displaystyle \frac{y^{-9}}{x^{-15}}$ 
\item $ - 10y^{-3}$ 
\end{enumerate} 
\end{flushright} 
\end{minipage}
 \end{document} 

答案1

exam使用类或包会更好exsheets。无论如何,这是一个答案。

\documentclass{article}
%\usepackage{gensymb}
\usepackage{amsfonts}
\usepackage{amsmath,multicol,eso-pic}
\begin{document}
\AddToShipoutPicture{%
  \AtTextUpperLeft{%
    \makebox(400,55)[lt]{%   %% change 55 for vertical adjustment
      \footnotesize%
      \begin{tabular}{r@{\,}l}
        Name:  & \rule{0.5\linewidth}{\linethickness} \\[.5cm]
        Date:  & \rule{0.5\linewidth}{\linethickness} \\
      \end{tabular}
}}}
\title{7th Grade Algebra: Exponents}
\author{Ms. Lampianerani}
\maketitle
\section{Notes}
 Simplify the following negative exponent problems. You want to get an answer with   all positive exponents.

\begin{multicols}{2}
\begin{enumerate}
\item $\dfrac{1}{k^{-5}}$
\item $k^{-5}$
\item $a^3 b^{-2}$
\item $c^{-4}d^{4}$
\item $(a^2 b^{-7})^{0}$
\item $\dfrac{-45}{5x^{-6}}$
\item $\dfrac{x^{-8}}{4y^{15}}$
\item $\dfrac{2a^3}{b^{-5}}$
\item $\dfrac{y^{-9}}{x^{-15}}$
\item $ - 10y^{-3}$
\end{enumerate}
\end{multicols}

\end{document}

在此处输入图片描述

如果您只想在第一页显示姓名和日期,请在代码中使用\AddToShipoutPicture*{%而不是(注意)。\AddToShipoutPicture{%*

答案2

解决方案在 中\newcommand\Blank...,但请考虑使用考试文档类进行测验。另请注意,\dfrac在 中定义amsmath为 的一种快捷方式\displaystyle\frac

\documentclass{exam}
\usepackage{amsfonts, amsmath}

\usepackage{multicol}

\newcommand\Blank[2][.33\linewidth]{%
  % add strut to allow for handwriting
  \rule{0pt}{4ex}%
  % Prompt
  #2\enspace
  % And the actual line
  \makebox[#1]{\hrulefill}}

\title{7th Grade Algebra: Exponents}
\author{Ms.~Lampianerani} 

\begin{document}
\maketitle
\begin{flushright}
  \Blank{Name:}

  \Blank{Date:}
\end{flushright}

\section{Notes}
Simplify the following negative exponent problems.  You want to get an
answer with all positive exponents.

\begin{questions}
  \begin{multicols}{2} 
    \question $\dfrac{1}{k^{-5}}$
    \question $k^{-5}$ 
    \question $a^3 b^{-2}$
    \question $c^{-4}d^{4}$ 
    \question $(a^2 b^{-7})^{0}$
    \question $\dfrac{-45}{5x^{-6}}$
    \question $\dfrac{x^{-8}}{4y^{15}}$ 
    \question $\dfrac{2a^3}{b^{-5}}$ 
    \question $\dfrac{y^{-9}}{x^{-15}}$ 
    \question $ - 10y^{-3}$ 
  \end{multicols}
\end{questions}
\end{document}

相关内容