summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/answers/ansexam1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/answers/ansexam1.tex')
-rw-r--r--Master/texmf-dist/doc/latex/answers/ansexam1.tex34
1 files changed, 34 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/answers/ansexam1.tex b/Master/texmf-dist/doc/latex/answers/ansexam1.tex
new file mode 100644
index 00000000000..7c66156daad
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/answers/ansexam1.tex
@@ -0,0 +1,34 @@
+%%
+%% This is file `ansexam1.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% answers.dtx (with options: `ex1')
+%%
+\documentclass[12pt,a4paper]{article}
+\usepackage{answers}
+\Newassociation{sol}{Solution}{ans}
+\newtheorem{ex}{Exercise}
+\begin{document}
+\Opensolutionfile{ans}[ans1]
+\section{Problems}
+\begin{ex}
+ First exercise
+ \begin{sol}
+ First solution.
+ \end{sol}
+\end{ex}
+\begin{ex}
+ Second exercise
+ \begin{sol}
+ Second solution.
+ \end{sol}
+\end{ex}
+\Closesolutionfile{ans}
+\section{Solutions}
+\input{ans1}
+\end{document}
+\endinput
+%%
+%% End of file `ansexam1.tex'.