光学阅读器答题纸

光学阅读器答题纸

如何重现这样的答题纸?答题纸将根据考试文档类中的问题数量生成。一些问题(1 - 24)是多项选择题,而其他问题(25 - 35)是开放式问题,评分员将在答题纸上与这些问题相关的部分填写数字,这些数字代表学生在该特定问题上获得的分数。 在此处输入图片描述

这是我利用有限的 TikZ 知识所做到的。

    \begin{tikzpicture}
    \begin{scope}
        \tikzmath{\x=1;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[yshift=-1.1cm]
        \tikzmath{\x=2;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[yshift=-2.2cm]
        \tikzmath{\x=3;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[yshift=-3.3cm]
        \tikzmath{\x=4;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[yshift=-4.4cm]
        \tikzmath{\x=5;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[yshift=-5.5cm]
        \tikzmath{\x=6;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[yshift=-6.6cm]
        \tikzmath{\x=7;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[yshift=-7.7cm]
        \tikzmath{\x=8;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[yshift=-8.8cm]
        \tikzmath{\x=9;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    
    \begin{scope}[yshift=-9.9cm]
        \tikzmath{\x=10;}
        \fill[color=green!20] (-8,5) rectangle (-2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {A};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {B};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {C};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {D};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[xshift=8cm]
        \tikzmath{\x=11;}
        \fill[color=green!20] (-8,5) rectangle (2,6);
        \node at (-3.7,5.5) {Solve problems 11 - 15 in the exam paper.};
    \end{scope}
    
    \begin{scope}[xshift=8cm, yshift=-1.1cm]
        \tikzmath{\x=11;}
        \fill[color=green!20] (-8,5) rectangle (2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {0};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {1};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {2};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.2,5.5) {NO};
        \node at (-2.5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[xshift=8cm, yshift=-2.2cm]
        \tikzmath{\x=12;}
        \fill[color=green!20] (-8,5) rectangle (2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {0};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {1};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {2};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.2,5.5) {NO};
        \node at (-2.5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[xshift=8cm, yshift=-3.3cm]
        \tikzmath{\x=13;}
        \fill[color=green!20] (-8,5) rectangle (2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {0};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {1};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {2};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {3};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-2.2,5.5) {NO};
        \node at (-1.5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[xshift=8cm, yshift=-4.4cm]
        \tikzmath{\x=14;}
        \fill[color=green!20] (-8,5) rectangle (2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {0};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {1};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {2};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {3};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-2.2,5.5) {NO};
        \node at (-1.5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
    
    \begin{scope}[xshift=8cm, yshift=-5.5cm]
        \tikzmath{\x=15;}
        \fill[color=green!20] (-8,5) rectangle (2,6);
        \node at (-7.5,5.5) {$\x$.};
        
        \node at (-6.5,5.5) {0};
        \node at (-6,5.5) [shape=rectangle, fill=white, inner sep=2.5mm] {};
        
        \node at (-5.5,5.5) {1};
        \node at (-5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-4.5,5.5) {2};
        \node at (-4,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-3.5,5.5) {3};
        \node at (-3,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-2.5,5.5) {4};
        \node at (-2,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
        
        \node at (-1.2,5.5) {NO};
        \node at (-0.5,5.5) [shape=rectangle, fill=white, inner sep=3mm] {};
    \end{scope}
\end{tikzpicture}

答案1

您可能只需将一些盒子粘在一起即可,例如:

\documentclass{article}
\usepackage{xcolor}

\setlength{\parindent}{0pt}

\begin{document}

\colorbox{green!20}{%
    \makebox[18em][l]{%
        \makebox[2em][r]{1.}
        \makebox[3em]{A \textcolor{white}{\rule{1em}{1em}}}
        \makebox[3em]{B \textcolor{white}{\rule{1em}{1em}}}
        \makebox[3em]{C \textcolor{white}{\rule{1em}{1em}}}
        \makebox[3em]{D \textcolor{white}{\rule{1em}{1em}}}
    }%
}

\colorbox{green!20}{%
    \makebox[18em][l]{%
        \makebox[2em][r]{2.}
        \makebox[3em]{A \textcolor{white}{\rule{1em}{1em}}}
        \makebox[3em]{B \textcolor{white}{\rule{1em}{1em}}}
        \makebox[3em]{C \textcolor{white}{\rule{1em}{1em}}}
        \makebox[3em]{D \textcolor{white}{\rule{1em}{1em}}}
    }%
}

\end{document}

在此处输入图片描述

相关内容