diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/answers/ansexam3.tex | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/answers/ansexam3.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/answers/ansexam3.tex | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/answers/ansexam3.tex b/Master/texmf-dist/doc/latex/answers/ansexam3.tex new file mode 100644 index 00000000000..8eb84299f33 --- /dev/null +++ b/Master/texmf-dist/doc/latex/answers/ansexam3.tex @@ -0,0 +1,40 @@ +%% +%% This is file `ansexam3.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% answers.dtx (with options: `ex3') +%% +\documentclass[12pt,a4paper]{article} +\usepackage{answers} +\newenvironment{Ex}[1]{\begin{trivlist}\item \emph{#1} % + \renewcommand{\Currentlabel}{#1}}{\end{trivlist}} +\Newassociation{solution}{Soln}{solutions} + +\renewenvironment{Soln}[1]{\begin{trivlist}\item + Solution to \emph{#1} }{\end{trivlist}} + +\begin{document} +\section*{Problems} + \Opensolutionfile{solutions}[ans3] + \begin{Ex}{First exercise} + An exercise with a solution. + \begin{solution} + This is a solution. + \relax{} + \end{solution} + \end{Ex} + \begin{Ex}{Second exercise} + A second exercise with a solution. + \begin{solution} + This is another solution. + \end{solution} + \end{Ex} + \Closesolutionfile{solutions} +\section*{Solutions} + \Readsolutionfile{solutions} +\end{document} +\endinput +%% +%% End of file `ansexam3.tex'. |