由于单击编译时出现错误,我无法解决另外两个问题。你能帮帮我吗?
1) 文档的一部分未打印 2) 黑色矩形的边界被打断。
谢谢
\documentclass[addpoints,14pt]{exam}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{anysize}
\usepackage{graphicx}
\usepackage{float}
\usepackage{etoolbox}
\usepackage{amsbsy}
\usepackage{amsmath}
\usepackage{pbox}
\usepackage{fancyhdr}
\usepackage{cancel}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{natbib}
\usepackage{subfig}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{textcomp}
\usepackage[centering,margin=0.5cm]{geometry}
\usepackage{tikz}
\linespread{1.5}
\frenchspacing %
\title{x}
\author{xxx}
\date{\today}
\newcommand{\abs}[1]{\lvert#1\rvert}
\begin{document}
\vspace{0.1in}
\noindent {\makebox[\textwidth]{Family name:\enspace\hrulefill} \\ \makebox[\textwidth]{Name:\enspace\hrulefill}}
\pagestyle{head}
\runningheadrule
\firstpageheader{\dots \quad \boxed{\zeta}}{XXX \\ test \thepage\ di \numpages}{\dots june 1996}
\runningheader{\dots \quad \boxed{\zeta}}
{test \thepage\ di \numpages}
{\dots }
\begin{questions}
\question
question 1.
\makeemptybox{3in
\begin{tikzpicture}[color=gray]
%\draw[line width=0.10pt, step=1.0mm] (0,0) grid +(20cm,28cm);
%\draw[line width=0.25pt, step=5.0mm] (0,0) grid +(20cm,28cm);
\draw[line width=0.05pt, step=0.5cm] (0,0) grid +(5cm,5cm);
\end{tikzpicture}
}
%\question
\question
question 2.
\makeemptybox{3in}
%\question
\newpage
\question
question 3.
\makeemptybox{3in}
%\question
\end{questions}
\end{document}
答案1
你正在加载一堆包,其中很多包对 来说毫无意义exam
。我将它们精简为纯粹必要的包,然后添加那些你真的14pt
需要。还请注意,该类没有选项。
当然,该命令\makeemptybox
会创建一个空框。因此无法在其中填充内容,因此您必须进行“手动”定位。
\documentclass[addpoints]{exam}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{tikz}
\begin{document}
\begin{questions}
\question Question 1.\\[-\baselineskip]
\raisebox{-\dimexpr\totalheight+\baselineskip+2pt}[0pt][0pt]{%
\makebox[0pt][l]{%
\makebox[\linewidth][r]{%
\hfil
\begin{tikzpicture}[color=gray]
\draw[line width=0.05pt, step=0.5cm] (0,0) grid +(5cm,5cm);
\end{tikzpicture}%
\hspace{2pt}%
}%
}%
}%
\makeemptybox{3in}
\end{questions}
\end{document}