summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/multiple-choice/doc/multiple-choice-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/multiple-choice/doc/multiple-choice-doc.tex')
-rw-r--r--macros/latex/contrib/multiple-choice/doc/multiple-choice-doc.tex96
1 files changed, 96 insertions, 0 deletions
diff --git a/macros/latex/contrib/multiple-choice/doc/multiple-choice-doc.tex b/macros/latex/contrib/multiple-choice/doc/multiple-choice-doc.tex
new file mode 100644
index 0000000000..f640cabd1a
--- /dev/null
+++ b/macros/latex/contrib/multiple-choice/doc/multiple-choice-doc.tex
@@ -0,0 +1,96 @@
+\documentclass{ltxdoc}
+
+\usepackage{fullpage}
+\usepackage{url}
+\usepackage{holtxdoc}
+\usepackage{listings}
+\usepackage{xcolor}
+\usepackage{multicol}
+\usepackage{multiple-choice}
+
+\lstdefinestyle{BashInputStyle}{
+ basicstyle=\footnotesize\sffamily,
+ frame=tb,
+ columns=fullflexible,
+ backgroundcolor=\color{gray!10},
+}
+\lstset{basicstyle=\ttfamily}
+
+\title{The \xpackage{multiple-choice} Package}
+\author{Seiied Mohammad Javad Razavian}
+
+\date{\choicesdate,\space version \choicesversion}
+
+ \parindent=0pt
+
+\thispagestyle{empty}
+
+\begin{document}
+\maketitle{
+\centerline{\large\bfseries Abstract}
+\bigskip
+\begin{multicols}{2}
+The \xpackage{multiple-choice} package adjusts the choices of the multiple-choice question automatically.
+It has been wholly inspired by the work of Enrico Gregorio\footnote{\url{https://tex.stackexchange.com/questions/140923}}
+and improved by Vafa Khalighi. I've just packed and redistributed it. It works with \XeLaTeX, \pdfLaTeX, and \LuaLaTeX.
+Please, report any issues including bugs, typos in the documentation
+or feature requests on \url{https://github.com/javadr/multiple-choice.sty/issues}.
+\end{multicols}
+ }
+
+ \section{Loading Package}
+The package can be loaded in the ordinary way
+\cs{usepackage{multiple-choice}}.
+
+\section{Typesetting the multiple-choice question}
+ The package defines the \texttt{choices} environment with the \cs{choice} macro for the choices of the multiple-chocie question.
+
+\begin{lstlisting}[style=BashInputStyle, escapechar={|},]
+\begin{choices}
+ \choice The first choice.
+ \choice The second choice.
+ \choice The third choice.
+ \choice The fourth choice.
+\end{choices}
+\end{lstlisting}
+
+ \section{Sample}
+\begin{enumerate}
+
+\item First question?
+\begin{choices}
+ \choice The first choice.
+ \choice The second choice.
+ \choice The third choice.
+ \choice The fourth choice.
+\end{choices}
+
+\item Second question?
+\begin{choices}
+ \choice The first choice.
+ \choice The second choice.
+ \choice The third choice.
+ \choice The fourth choice.
+ \choice The fifth choice.
+ \choice The sixth choice.
+\end{choices}
+
+\item Third question?
+\begin{choices}
+ \choice The very very very first choice.
+ \choice The second choice.
+ \choice The third choice.
+ \choice The fourth choice.
+\end{choices}
+
+\item Fourth question?
+\begin{choices}
+ \choice The very very very very very very very very very first choice.
+ \choice The second choice.
+ \choice The third choice.
+ \choice The fourth choice.
+\end{choices}
+
+\end{enumerate}
+
+\end{document}