147 echo "$NAME: $LOGIC $TARGET" |
147 echo "$NAME: $LOGIC $TARGET" |
148 echo |
148 echo |
149 echo "$LOGIC:" |
149 echo "$LOGIC:" |
150 echo -e "\t@cd \$(SRC)/$LOGIC; \$(ISATOOL) make $LOGIC" |
150 echo -e "\t@cd \$(SRC)/$LOGIC; \$(ISATOOL) make $LOGIC" |
151 echo |
151 echo |
152 echo "${NAME}.deps: ## $SOURCES" |
152 echo "$TARGET: \$(OUT)/$LOGIC $ROOT_ML $DOCUMENT_ROOT ## $SOURCES" |
153 echo |
|
154 echo "$TARGET: \$(OUT)/$LOGIC $ROOT_ML $DOCUMENT_ROOT ${NAME}.deps" |
|
155 echo -e "\t@$USEDIR \$(OUT)/$LOGIC $NAME" |
153 echo -e "\t@$USEDIR \$(OUT)/$LOGIC $NAME" |
156 else |
154 else |
157 echo "$NAME: $TARGET" |
155 echo "$NAME: $TARGET" |
158 echo |
156 echo |
159 echo "${NAME}.deps: ## $ROOT_ML $DOCUMENT_ROOT $SOURCES" |
157 echo "$TARGET: ## $ROOT_ML $DOCUMENT_ROOT $SOURCES" |
160 echo |
|
161 echo "$TARGET: ${NAME}.deps" |
|
162 echo -e "\t@$USEDIR $LOGIC $NAME" |
158 echo -e "\t@$USEDIR $LOGIC $NAME" |
163 fi |
159 fi |
164 echo |
160 echo |
165 echo |
161 echo |
166 echo "## clean" |
162 echo "## clean" |
213 |
209 |
214 [ -z "$QUIET" ] && echo "creating $PREFIX/document/root.tex" >&2 |
210 [ -z "$QUIET" ] && echo "creating $PREFIX/document/root.tex" >&2 |
215 TITLE=$(echo "$NAME" | tr _ -) |
211 TITLE=$(echo "$NAME" | tr _ -) |
216 AUTHOR=$("$AUTO_PERL" -e "@pw = getpwnam(\"$USER\"); print @pw[6]" | tr _ -) |
212 AUTHOR=$("$AUTO_PERL" -e "@pw = getpwnam(\"$USER\"); print @pw[6]" | tr _ -) |
217 cat >document/root.tex <<EOF |
213 cat >document/root.tex <<EOF |
218 |
|
219 \documentclass[11pt,a4paper]{article} |
214 \documentclass[11pt,a4paper]{article} |
220 \usepackage{isabelle,isabellesym} |
215 \usepackage{isabelle,isabellesym} |
221 |
216 |
222 % further packages required for unusual symbols (see also isabellesym.sty) |
217 % further packages required for unusual symbols (see also isabellesym.sty) |
223 %\usepackage{latexsym} |
218 % use only when needed |
224 %\usepackage{amssymb} |
219 %\usepackage{amsmath} % for \<leadsto>, \<box>, \<diamond>, |
225 %\usepackage[english]{babel} |
220 % \<sqsupset>, \<mho>, \<Join>, |
226 %\usepackage[latin1]{inputenc} |
221 % \<lhd>, .. |
227 %\usepackage[only,bigsqcap]{stmaryrd} |
222 %\usepackage{amssymb} % for \<lesssim>, \<greatersim>, |
|
223 % \<lessapprox>, \<greaterapprox>, |
|
224 % \<triangleq>, \<yen>, \<lozenge> |
|
225 %\usepackage[english]{babel} % for \<guillemotleft>, |
|
226 % \<guillemotright> |
|
227 %\usepackage[latin1]{inputenc} % for \<onesuperior>, \<onequarter>, |
|
228 % \<twosuperior>, \<onehalf>, |
|
229 % \<threesuperior>, \<threequarters>, |
|
230 % \<degree> |
|
231 %\usepackage[only,bigsqcap]{stmaryrd} % for \<Sqinter> |
228 %\usepackage{wasysym} |
232 %\usepackage{wasysym} |
229 %\usepackage{eufrak} |
233 %\usepackage{eufrak} % for \<AA> ... \<ZZ>, \<aa> ... \<zz> |
230 %\usepackage{textcomp} |
234 %\usepackage{textcomp} % \<cent>, \<currency> |
231 %\usepackage{marvosym} |
235 %\usepackage{eurosans} % for \<euro> |
232 |
236 |
233 % this should be the last package used |
237 % this should be the last package used |
234 \usepackage{pdfsetup} |
238 \usepackage{pdfsetup} |
235 |
239 |
236 % proper setup for best-style documents |
240 % urls in roman style, theory text in math-similar italics |
237 \urlstyle{rm} |
241 \urlstyle{rm} |
238 \isabellestyle{it} |
242 \isabellestyle{it} |
239 |
243 |
240 |
244 |
241 \begin{document} |
245 \begin{document} |