summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/answers
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
commit007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch)
tree90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/answers
parent950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (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')
-rw-r--r--Master/texmf-dist/doc/latex/answers/ans1.tex8
-rw-r--r--Master/texmf-dist/doc/latex/answers/ans2.tex15
-rw-r--r--Master/texmf-dist/doc/latex/answers/ans2x.tex5
-rw-r--r--Master/texmf-dist/doc/latex/answers/ans3.tex9
-rw-r--r--Master/texmf-dist/doc/latex/answers/ansexam1.tex34
-rw-r--r--Master/texmf-dist/doc/latex/answers/ansexam2.tex62
-rw-r--r--Master/texmf-dist/doc/latex/answers/ansexam3.tex40
7 files changed, 173 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/answers/ans1.tex b/Master/texmf-dist/doc/latex/answers/ans1.tex
new file mode 100644
index 00000000000..48e29501d6c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/answers/ans1.tex
@@ -0,0 +1,8 @@
+\begin{Solution}{1}
+ First solution.
+
+\end{Solution}
+\begin{Solution}{2}
+ Second solution.
+
+\end{Solution}
diff --git a/Master/texmf-dist/doc/latex/answers/ans2.tex b/Master/texmf-dist/doc/latex/answers/ans2.tex
new file mode 100644
index 00000000000..217cb2c1ef9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/answers/ans2.tex
@@ -0,0 +1,15 @@
+\section{test: Solutions}
+\subsection{Some Solutions}
+\begin{Soln}{1}
+ This is a solution.
+ \relax{}
+
+\end{Soln}
+\begin{Hint}{2}
+ This is a hint.
+
+\end{Hint}
+\begin{Hint}{3}
+ This is a hint.
+
+\end{Hint}
diff --git a/Master/texmf-dist/doc/latex/answers/ans2x.tex b/Master/texmf-dist/doc/latex/answers/ans2x.tex
new file mode 100644
index 00000000000..af33468f169
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/answers/ans2x.tex
@@ -0,0 +1,5 @@
+\subsection{Extra Solutions}
+\begin{sSol}{2}
+ This is a secret solution.
+
+\end{sSol}
diff --git a/Master/texmf-dist/doc/latex/answers/ans3.tex b/Master/texmf-dist/doc/latex/answers/ans3.tex
new file mode 100644
index 00000000000..7154abed19d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/answers/ans3.tex
@@ -0,0 +1,9 @@
+\begin{Soln}{First exercise}
+ This is a solution.
+ \relax{}
+
+\end{Soln}
+\begin{Soln}{Second exercise}
+ This is another solution.
+
+\end{Soln}
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'.
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'.
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'.