author | Norbert Schirmer <norbert.schirmer@web.de> |
Fri, 17 May 2019 11:21:09 +0200 | |
changeset 571 | 95b42288294e |
parent 569 | f875a25aa72d |
child 572 | 438703674711 |
permissions | -rw-r--r-- |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
1 |
theory Readme |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
2 |
imports Base |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
3 |
begin |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
4 |
|
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
5 |
chapter \<open>Comments for Authors\<close> |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
6 |
|
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
7 |
text \<open> |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
8 |
|
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
9 |
\begin{itemize} |
106
bdd82350cf22
renamed in the pdf all instances of cookbook to tutorial (in order to sound more serious)
Christian Urban <urbanc@in.tum.de>
parents:
104
diff
changeset
|
10 |
\item This tutorial can be compiled on the command-line with: |
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
11 |
|
571
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
12 |
@{text [display] "$ isabelle build -c -v -d . Cookbook"} |
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
13 |
|
59 | 14 |
You very likely need a recent snapshot of Isabelle in order to compile |
106
bdd82350cf22
renamed in the pdf all instances of cookbook to tutorial (in order to sound more serious)
Christian Urban <urbanc@in.tum.de>
parents:
104
diff
changeset
|
15 |
the tutorial. Some parts of the tutorial also rely on compilation with |
64
9a6e5e0c4906
deleted old files and added code to give a special tag to the command ML
Christian Urban <urbanc@in.tum.de>
parents:
60
diff
changeset
|
16 |
PolyML. |
59 | 17 |
|
49 | 18 |
\item You can include references to other Isabelle manuals using the |
47
4daf913fdbe1
hakked latex so that it does not display ML {* *}; general tuning
Christian Urban <urbanc@in.tum.de>
parents:
44
diff
changeset
|
19 |
reference names from those manuals. To do this the following |
54
1783211b3494
tuned; added document antiquotation ML_response_fake_both
Christian Urban <urbanc@in.tum.de>
parents:
53
diff
changeset
|
20 |
four \LaTeX{} commands are defined: |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
21 |
|
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
22 |
\begin{center} |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
23 |
\begin{tabular}{l|c|c} |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
24 |
& Chapters & Sections\\\hline |
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
25 |
Implementation Manual & \<open>\ichcite{\<dots>}\<close> & \<open>\isccite{\<dots>}\<close>\\ |
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
26 |
Isar Reference Manual & \<open>\rchcite{\<dots>}\<close> & \<open>\rsccite{\<dots>}\<close>\\ |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
27 |
\end{tabular} |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
28 |
\end{center} |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
29 |
|
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
30 |
So \<open>\ichcite{ch:logic}\<close> yields a reference for the chapter about logic |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
31 |
in the implementation manual, namely \ichcite{ch:logic}. |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
32 |
|
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
33 |
\item There are various document antiquotations defined for the |
106
bdd82350cf22
renamed in the pdf all instances of cookbook to tutorial (in order to sound more serious)
Christian Urban <urbanc@in.tum.de>
parents:
104
diff
changeset
|
34 |
tutorial. They allow to check the written text against the current |
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
35 |
Isabelle code and also allow to show responses of the ML-compiler. |
52 | 36 |
Therefore authors are strongly encouraged to use antiquotations wherever |
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
37 |
appropriate. |
52 | 38 |
|
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
39 |
The following antiquotations are defined: |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
40 |
|
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
41 |
\begin{itemize} |
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
42 |
\item[$\bullet$] \<open>@{ML \<open>expr\<close> for vars in structs}\<close> should be used |
58 | 43 |
for displaying any ML-ex\-pression, because the antiquotation checks whether |
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
44 |
the expression is valid ML-code. The \<open>for\<close>- and \<open>in\<close>-arguments are optional. The former is used for evaluating open |
58 | 45 |
expressions by giving a list of free variables. The latter is used to |
46 |
indicate in which structure or structures the ML-expression should be |
|
47 |
evaluated. Examples are: |
|
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
48 |
|
54
1783211b3494
tuned; added document antiquotation ML_response_fake_both
Christian Urban <urbanc@in.tum.de>
parents:
53
diff
changeset
|
49 |
\begin{center}\small |
58 | 50 |
\begin{tabular}{lll} |
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
51 |
\<open>@{ML \<open>1 + 3\<close>}\<close> & & @{ML \<open>1 + 3\<close>}\\ |
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
52 |
\<open>@{ML \<open>a + b\<close> for a b}\<close> & \;\;produce\;\; & @{ML \<open>a + b\<close> for a b}\\ |
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
53 |
\<open>@{ML explode in Symbol}\<close> & & @{ML explode in Symbol}\\ |
58 | 54 |
\end{tabular} |
55 |
\end{center} |
|
56 |
||
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
57 |
\item[$\bullet$] \<open>@{ML_matchresult \<open>expr\<close> \<open>pat\<close>}\<close> should be used to |
58 | 58 |
display ML-expressions and their response. The first expression is checked |
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
59 |
like in the antiquotation \<open>@{ML \<open>expr\<close>}\<close>; the second is a pattern |
58 | 60 |
that specifies the result the first expression produces. This pattern can |
571
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
61 |
contain @{text [quotes] "_"} (which will be printed as @{text [quotes] "\<dots>"}) |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
62 |
for parts that you like to omit. The response of the |
58 | 63 |
first expression will be checked against this pattern. Examples are: |
64 |
||
65 |
\begin{center}\small |
|
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
66 |
\begin{tabular}{l} |
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
67 |
\<open>@{ML_matchresult \<open>1+2\<close> \<open>3\<close>}\<close>\\ |
571
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
68 |
\<open>@{ML_matchresult \<open>(1+2,3)\<close> \<open>(3,_)\<close>}\<close> |
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
69 |
\end{tabular} |
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
70 |
\end{center} |
52 | 71 |
|
58 | 72 |
which produce respectively |
73 |
||
74 |
\begin{center}\small |
|
75 |
\begin{tabular}{p{3cm}p{3cm}} |
|
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
76 |
@{ML_matchresult \<open>1+2\<close> \<open>3\<close>} & |
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
77 |
@{ML_matchresult \<open>(1+2,3)\<close> \<open>(3,_)\<close>} |
58 | 78 |
\end{tabular} |
79 |
\end{center} |
|
80 |
||
81 |
Note that this antiquotation can only be used when the result can be |
|
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
82 |
constructed: it does not work when the code produces an exception or returns |
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
83 |
an abstract datatype (like @{ML_type thm} or @{ML_type cterm}). |
49 | 84 |
|
571
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
85 |
\item[$\bullet$] \<open>@{ML_matchresult_fake \<open>expr\<close> \<open>pat\<close>}\<close> works just |
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
86 |
like the antiquotation \<open>@{ML_matchresult \<open>expr\<close> \<open>pat\<close>}\<close> above, |
58 | 87 |
except that the result-specification is not checked. Use this antiquotation |
88 |
when the result cannot be constructed or the code generates an |
|
89 |
exception. Examples are: |
|
90 |
||
91 |
\begin{center}\small |
|
92 |
\begin{tabular}{ll} |
|
571
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
93 |
\<open>@{ML_matchresult_fake\<close> & \<open>\<open>term_of @{theory} @{term "a + b = c"}\<close>}\<close>\\ |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
94 |
& \<open>\<open>a + b = c\<close>}\<close>\smallskip\\ |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
95 |
\<open>@{ML_matchresult_fake\<close> & \<open>\<open>($$ "x") (explode "world")\<close>\<close>\\ |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
96 |
& \<open>\<open>Exception FAIL raised\<close>}\<close> |
58 | 97 |
\end{tabular} |
98 |
\end{center} |
|
99 |
||
59 | 100 |
which produce respectively |
101 |
||
102 |
\begin{center}\small |
|
103 |
\begin{tabular}{p{7.2cm}} |
|
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
104 |
@{ML_matchresult_fake \<open>Thm.cterm_of @{context} @{term "a + b = c"}\<close> \<open>a + b = c\<close>}\smallskip\\ |
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
105 |
@{ML_matchresult_fake \<open>($$ "x") (Symbol.explode "world")\<close> \<open>Exception FAIL raised\<close>} |
59 | 106 |
\end{tabular} |
107 |
\end{center} |
|
54
1783211b3494
tuned; added document antiquotation ML_response_fake_both
Christian Urban <urbanc@in.tum.de>
parents:
53
diff
changeset
|
108 |
|
59 | 109 |
This output mimics to some extend what the user sees when running the |
110 |
code. |
|
111 |
||
571
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
112 |
\item[$\bullet$] \<open>@{ML_matchresult_fake_both \<open>expr\<close> \<open>pat\<close>}\<close> can be |
54
1783211b3494
tuned; added document antiquotation ML_response_fake_both
Christian Urban <urbanc@in.tum.de>
parents:
53
diff
changeset
|
113 |
used to show erroneous code. Neither the code nor the response will be |
58 | 114 |
checked. An example is: |
52 | 115 |
|
58 | 116 |
\begin{center}\small |
117 |
\begin{tabular}{ll} |
|
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
118 |
\<open>@{ML_matchresult_fake_both\<close> & \<open>"@{cterm "1 + True"}"\<close>\\ |
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
119 |
& \<open>"Type unification failed \<dots>"}\<close> |
58 | 120 |
\end{tabular} |
121 |
\end{center} |
|
122 |
||
571
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
123 |
\item[$\bullet$] \<open>@{ML_response \<open>expr\<close>}\<close> can be |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
124 |
used to show the expression and the corresponding output. An example is: |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
125 |
|
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
126 |
\begin{center}\small |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
127 |
\begin{tabular}{ll} |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
128 |
\<open>@{ML_response\<close> & \<open>\<open>1 upto 10\<close>}\<close> |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
129 |
\end{tabular} |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
130 |
\end{center} |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
131 |
|
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
132 |
which produce respectively |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
133 |
|
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
134 |
\begin{center}\small |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
135 |
\begin{tabular}{p{3cm}p{3cm}} |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
136 |
@{ML_response \<open>1 upto 10\<close>} |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
137 |
\end{tabular} |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
138 |
\end{center} |
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
139 |
|
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
140 |
|
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
141 |
\item[$\bullet$] \<open>@{ML_file "name"}\<close> should be used when |
59 | 142 |
referring to a file. It checks whether the file exists. An example |
143 |
is |
|
144 |
||
569
f875a25aa72d
prefer cartouches over " in ML antiquotations
Norbert Schirmer <norbert.schirmer@web.de>
parents:
567
diff
changeset
|
145 |
@{text [display] \<open>@{ML_file "Pure/General/basics.ML"}\<close>} |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
146 |
\end{itemize} |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
147 |
|
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
148 |
The listed antiquotations honour options including \<open>[display]\<close> and |
571
95b42288294e
reactivated Readme.thy for authors
Norbert Schirmer <norbert.schirmer@web.de>
parents:
569
diff
changeset
|
149 |
\<open>[gray]\<close>. For example |
58 | 150 |
|
151 |
||
49 | 152 |
\item Functions and value bindings cannot be defined inside antiquotations; they need |
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
153 |
to be included inside \isacommand{ML}~\<open>\<verbopen> \<dots> \<verbclose>\<close> |
58 | 154 |
environments. In this way they are also checked by the compiler. Some \LaTeX-hack in |
106
bdd82350cf22
renamed in the pdf all instances of cookbook to tutorial (in order to sound more serious)
Christian Urban <urbanc@in.tum.de>
parents:
104
diff
changeset
|
155 |
the tutorial, however, ensures that the environment markers are not printed. |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
156 |
|
53
0c3580c831a4
removed the @{ML ...} antiquotation in favour of @{ML_open ...x}
Christian Urban <urbanc@in.tum.de>
parents:
52
diff
changeset
|
157 |
\item Line numbers can be printed using |
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
158 |
\isacommand{ML} \isa{\%linenos}~\<open>\<verbopen> \<dots> \<verbclose>\<close> |
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
159 |
for ML-code or \isacommand{lemma} \isa{\%linenos} \<open>...\<close> for proofs. The |
114
13fd0a83d3c3
properly handled linenumbers in ML-text and Isar-proofs
Christian Urban <urbanc@in.tum.de>
parents:
106
diff
changeset
|
160 |
tag is \isa{\%linenosgray} when the numbered text should be gray. |
52 | 161 |
|
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
162 |
\end{itemize} |
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
163 |
|
565
cecd7a941885
isabelle update_cartouches -t
Norbert Schirmer <norbert.schirmer@web.de>
parents:
189
diff
changeset
|
164 |
\<close> |
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
165 |
|
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
166 |
|
49 | 167 |
|
44
dee4b3e66dfe
added a readme chapter for prospective authors; added commands for referring to the Isar Reference Manual
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
168 |
end |