类似 SAT 的题目格式

类似 SAT 的题目格式

我如何通过自己的枚举设计创建类似 SAT 中的问题(黑色和灰色),以便每次我编写时\begin{myenumerate}都会生成类似 SAT 考试中的问题。谢谢!

在此处输入图片描述

答案1

我构建了两个环境question,并choices使用基本list环境,前提是使用双列模式。

\documentclass{article}
\usepackage{xcolor}
\usepackage{calc}
\usepackage[width = 18cm]{geometry}
\usepackage{enumitem}
\newcounter{question}
\newcounter{choice}
\setcounter{choice}{1}
\newenvironment{question}{%
  \stepcounter{question}%
  \noindent\colorbox{black}{\textcolor{white}{\makebox[1.5em][c]{\thequestion}}}%
  \colorbox{lightgray}{\phantom{\rule{\columnwidth-1.5em-\columnsep}{\heightof{1}}}}\par
  \begin{list}{}{%
    \setlength\itemindent{0pt}%
    \setlength\leftmargin{2em}%
    \setlength\labelwidth{0pt}%
    \setlength\labelsep{0pt}}%
    \item[]}%
{\end{list}}

\newenvironment{choices}{%
  \begin{list}{\Alph{choice})}{%
    \setlength\labelwidth{30pt}%
    \setlength\itemindent{0pt}%
    \setlength\leftmargin{2em}%
    \setlength\labelsep{10pt}%
    \usecounter{choice}}}%
  {\end{list}}
\setlength\columnseprule{0.5pt}
\begin{document}

\twocolumn
\begin{question}
  Which choice best describes what happens in the passage?
  \begin{choices}
    \item One character argues with another character who intrudes on her home.
    \item One character receives a surprising request from another character.
    \item One character reminisces about choices she has made over the years.
    \item One character criticizes another character for pursuing an unexpected course of action.
  \end{choices}
\end{question}

\begin{question}
  Which choice best describes the developmental pattern of the passage?
  \begin{choices}
    \item A careful analysis of a traditional practice.
    \item A detailed depiction of a meaningful encounter.
    \item A definitive response to a series of questions.
    \item A cheerful recounting of an amazing anecdote.
  \end{choices}
\end{question}

\begin{question}
  Which choice best describes what happens in the passage?
  \begin{choices}
    \item One character argues with another character who intrudes on her home.
    \item One character receives a surprising request from another character.
    \item One character reminisces about choices she has made over the years.
    \item One character criticizes another character for pursuing an unexpected course of action.
  \end{choices}
\end{question}

\begin{question}
  Which choice best describes the developmental pattern of the passage?
  \begin{choices}
    \item A careful analysis of a traditional practice.
    \item A detailed depiction of a meaningful encounter.
    \item A definitive response to a series of questions.
    \item A cheerful recounting of an amazing anecdote.
  \end{choices}
\end{question}

\begin{question}
  Which choice best describes what happens in the passage?
  \begin{choices}
    \item One character argues with another character who intrudes on her home.
    \item One character receives a surprising request from another character.
    \item One character reminisces about choices she has made over the years.
    \item One character criticizes another character for pursuing an unexpected course of action.
  \end{choices}
\end{question}

\begin{question}
  Which choice best describes the developmental pattern of the passage?
  \begin{choices}
    \item A careful analysis of a traditional practice.
    \item A detailed depiction of a meaningful encounter.
    \item A definitive response to a series of questions.
    \item A cheerful recounting of an amazing anecdote.
  \end{choices}
\end{question}
\end{document}

在此处输入图片描述

相关内容