diff options
author | Karl Berry <karl@freefriends.org> | 2009-09-17 00:15:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-09-17 00:15:46 +0000 |
commit | 7c712eff353dad0f5de9c8318d941ad890b9b014 (patch) | |
tree | fe2cac02dc20d8a7730ce126d576c49feddb64c2 /Master/texmf-dist/doc/latex/answers/ansexam2.tex | |
parent | ea6b77b4ca75244e8aea9fcecaff57fc2fd0677e (diff) |
answers 2.12 (15sep09)
git-svn-id: svn://tug.org/texlive/trunk@15323 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/answers/ansexam2.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/answers/ansexam2.tex | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/answers/ansexam2.tex b/Master/texmf-dist/doc/latex/answers/ansexam2.tex new file mode 100644 index 00000000000..098efde98f5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/answers/ansexam2.tex @@ -0,0 +1,62 @@ +%% +%% This is file `ansexam2.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% answers.dtx (with options: `ex2') +%% +\documentclass[12pt,a4paper]{article} +\usepackage{answers}%\usepackage[nosolutionfiles]{answers} +\newtheorem{Exc}{Exercise} +\newenvironment{Ex}{\begin{Exc}\normalfont}{\end{Exc}} +\Newassociation{solution}{Soln}{test} +\Newassociation{hint}{Hint}{test} +\Newassociation{Solution}{sSol}{testtwo} +\newcommand{\prehint}{~[Hint]} +\newcommand{\presolution}{~[Solution]} +\newcommand{\preSolution}{~[Homework]} +\newcommand{\Opentesthook}[2]% + {\Writetofile{#1}{\protect\section{#1: #2}}} +\renewcommand{\Solnlabel}[1]{\emph{Solution #1}} +\renewcommand{\Hintlabel}[1]{\emph{Hint #1}} +\renewcommand{\sSollabel}[1]{\emph{Solution to #1}} + +\begin{document} + \Opensolutionfile{test}[ans2]{Solutions} + \Writetofile{test}{\protect\subsection{Some Solutions}} + \Opensolutionfile{testtwo}[ans2x] + \Writetofile{testtwo}{% + \protect\subsection{Extra Solutions}} + \section{Exercises} + \begin{Ex} + An exercise with a solution. + \begin{solution} + This is a solution. + \relax{} + \end{solution} + \end{Ex} + \begin{Ex} + An exercise with a hint and a secret solution. + \begin{hint} + This is a hint. + \end{hint} + \begin{Solution} + This is a secret solution. + \end{Solution} + \end{Ex} + \begin{Ex} + An exercise with a hint. + \begin{hint} + This is a hint. + \end{hint} + \end{Ex} + \Closesolutionfile{test} + \Readsolutionfile{test} + \clearpage + \Closesolutionfile{testtwo} + \Readsolutionfile{testtwo} +\end{document} +\endinput +%% +%% End of file `ansexam2.tex'. |