提问于:
浏览数:
1344
## 编译环境
操作系统
[x]' macOS
我之前用过exam环境, 那个上面的文件你可以用\CC 来选择正确答案,然后ABCDE中的一个会显示在最后一页,这样的方式修改答案什么的挺方便的 我用这个模版很久的,我一般就是会做个表格让后会手动输入答案 这样太慢 然后错误挺多 一旦输错一个或者漏掉一个就得重新输入 不知道谁可以帮个忙 在我这个文件基础上再修改修改
```
\documentclass[12pt]{article}
\usepackage{answers}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{xpatch}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{multicol}
\newcommand{\ds}{\displaystyle}
\usepackage{tasks}
\setlength{\columnsep}{0.1cm}
\setlength{\columnseprule}{0.2pt}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=5mm,
right=5mm,
top=15mm,
}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{amsmath,amssymb}
\usepackage{enumitem}
\usepackage{varwidth}
\usetikzlibrary{calc}
\newcommand{\mybox}[4][\textwidth-\pgfkeysvalueof{/pgf/inner xsep}-2mm]{%
\begin{figure}[!h]
\centering
\begin{tikzpicture}
\node[line width=.5mm, rounded corners, draw=#2, inner ysep=10pt, text width=#1, outer sep=0] (one) {\vspace*{15pt}\\\begin{varwidth}{\textwidth}#4\end{varwidth}};
\node[text=white,anchor=north east,align=center, minimum height=20pt] (two) at (one.north east) {#3 \hspace*{.5mm}};
\path[fill=#2]
(one.north west|-two.west) --
($(two.west)+(-1.5cm,0)$)
to[out=0,in=180] (two.south west) --
(two.south east) [rounded corners] --
(one.north east) --
(one.north west) [sharp corners] -- cycle;
\node[text=white,anchor=north east,align=center, minimum height=20pt, text height=2ex] (three) at (one.north east) {#3 \hspace*{.5mm}};
\end{tikzpicture}
\end{figure}
}
\begin{document}
\begin{center}
\mybox{gray!70!black}{\Large{Test 1}}{
\hspace*{7.5cm}
Angles in parallel lines
}
\end{center}
\begin{multicols*}{2}
\begin{enumerate}
%%%%%%%%%%%%%Q1%%%%%%%%%%%%%
\item If the ratio of two supplementary angles is $\dfrac{4}{11}$, what is the measure of small angle?
\begin{tasks}[counter-format = {(tsk[A])},label-offset = {0.8em},item-indent={-0.1cm},label-format = {\bfseries}](5)
\task $36^\circ$
\task $44^\circ$
\task $48^\circ$
\task $52^\circ$
\task $60^\circ$
\end{tasks}\vspace*{1cm}
%C
%%%%%%%%%%%%%Q2%%%%%%%%%%%%%
\item
\begin{tasks}[counter-format = {(tsk[A])},label-offset = {0.8em},item-indent={-0.1cm},label-format = {\bfseries}](4)
\task
\task
\task
\task
\end{tasks}
%%%%%%%%%%%%%Q3%%%%%%%%%%%%%
\item
\begin{tasks}[counter-format = {(tsk[A])},label-offset = {0.8em},item-indent={-0.1cm},label-format = {\bfseries}](4)
\task
\task
\task
\task
\end{tasks}
\end{enumerate}
\end{multicols*}
\newpage
\end{document}
```