diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/probsoln/samples/sample3.tex |
Initial commit
Diffstat (limited to 'macros/latex/contrib/probsoln/samples/sample3.tex')
-rw-r--r-- | macros/latex/contrib/probsoln/samples/sample3.tex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/macros/latex/contrib/probsoln/samples/sample3.tex b/macros/latex/contrib/probsoln/samples/sample3.tex new file mode 100644 index 0000000000..6922f9538e --- /dev/null +++ b/macros/latex/contrib/probsoln/samples/sample3.tex @@ -0,0 +1,25 @@ + % This file is public domain +\documentclass[a4paper]{article} + +\usepackage{longtable} +\usepackage{probsoln} + + %\showanswers + +\newcounter{problem} +\renewcommand{\PSNitem}{\refstepcounter{problem}% +\theproblem. } +\renewcommand{\endPSNitem}{\\} + +\renewenvironment{solution}{}{} + +\newcommand{\selected}{\fbox{$\times$}} +\newcommand{\notselected}{\fbox{\phantom{$\times$}}} + +\begin{document} +\begin{longtable}{lrrrl} +\bfseries Question & \bfseries A & \bfseries B & +\bfseries C & \ifshowanswers \bfseries Reason\fi\\ +\selectrandomly{prob-tabmchoice}{2} +\end{longtable} +\end{document} |