我有以下文字:
\documentclass[12pt,addpoints]{exam}
\usepackage{amsmath,amssymb,latexsym}
\renewcommand{\questionshook}{%
\setlength{\leftmargin}{0pt}%
\setlength{\labelwidth}{-\labelsep}%
\setlength{\itemsep}{-1pt}%
}
\renewcommand{\partshook}{%
%\setlength{\leftmargin}{0pt}
\setlength{\labelwidth}{-\labelsep}%
\setlength{\itemsep}{-0pt}%
}
\usepackage[paper=a4paper, margin=2cm]{geometry}
\begin{document}
\begin{questions}
\question \begin{parts}
\part[3] Given $f(x)=x^3-ax^2+bx+1$. If $f(2)=-3$ and $f(-1)=0$. Find the value of $a$ and $b$.
\part[2] Prove that: $\sec h^2x=1-\tan h^2x$
\end{parts}
\end{questions}
\end{document}
答案1
这更简单并给出所需的输出:
\documentclass[12pt,addpoints]{exam}
\usepackage{amsmath,amssymb,latexsym}
\renewcommand{\questionshook}{\setlength{\leftmargin}{0pt}}
\usepackage[paper=a4paper, margin=2cm]{geometry}
\begin{document}
\begin{questions}
\question \begin{parts}
\part[3] Given $f(x)=x^3-ax^2+bx+1$. If $f(2)=-3$ and $f(-1)=0$. Find the value of $a$ and $b$.
\part[2] Prove that: $\sec h^2x=1-\tan h^2x$
\end{parts}
\end{questions}
\end{document}