summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/answers/answers.ins
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/answers/answers.ins
Initial commit
Diffstat (limited to 'macros/latex/contrib/answers/answers.ins')
-rw-r--r--macros/latex/contrib/answers/answers.ins64
1 files changed, 64 insertions, 0 deletions
diff --git a/macros/latex/contrib/answers/answers.ins b/macros/latex/contrib/answers/answers.ins
new file mode 100644
index 0000000000..9f6d954eac
--- /dev/null
+++ b/macros/latex/contrib/answers/answers.ins
@@ -0,0 +1,64 @@
+%%
+%% This file will generate fast loadable files and documentation
+%% driver files from the doc files in this package when run through
+%% LaTeX or TeX.
+%%
+%%
+%% IMPORTANT NOTICE:
+%%
+%% No other permissions to copy or distribute this file in any form
+%% are granted and in particular no permission to modify its contents.
+%%
+%% --------------- start of docstrip commands ------------------
+%%
+\def\batchfile{answers.ins}
+\input docstrip.tex
+\preamble
+
+Originally developed by Mike Piff
+Copyright (C) 1990,1994-1996 by Mike Piff
+Copyright (C) 2009 by
+ Joseph Wright <joseph.wright@morningstar2.co.uk>
+
+It may be distributed and/or modified under the conditions of
+the LaTeX Project Public License (LPPL), either version 1.3c of
+this license or (at your option) any later version. The latest
+version of this license is in the file:
+
+ http://www.latex-project.org/lppl.txt
+
+This work is "maintained" (as per LPPL maintenance status) by
+ Joseph Wright.
+
+\endpreamble
+
+\keepsilent
+
+\def\Ask#1#2{\def#1{y}}
+
+\Msg{*** Generating the package file ***}
+
+\generate{\file{answers.sty}{\from{answers.dtx}{answers}}}
+
+\preamble
+\endpreamble
+
+\Msg{*** Generating example files ***}
+
+\generate{%
+ \file{ansexam1.tex}{\from{answers.dtx}{ex1}}
+ \file{ansexam2.tex}{\from{answers.dtx}{ex2}}
+ \file{ansexam3.tex}{\from{answers.dtx}{ex3}}
+}
+
+\ifToplevel{%
+\Msg{***********************************************************}
+\Msg{*}
+\Msg{* To finish the installation you have to move the file}
+\Msg{* answers.sty into a directory searched by TeX:}
+\Msg{* To produce the documentation, run the file answers.dtx through LaTeX.}
+\Msg{* To see an example, run the file answexam.tex through LaTeX.}
+\Msg{***********************************************************}
+}
+
+\endinput