Difference between revisions of "Template:InfRule"

From Event-B
Jump to navigationJump to search
imported>Mathieu
m
imported>Mathieu
m (doc)
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
 
<pre><nowiki>
 
<pre><nowiki>
{{InfRule|HYP|''math formula typeset with a <math>\frac{}{}</math> expression}}
+
{{InfRule| ''name'' | ''math formula typeset with a <math>\frac{}{}</math> expression'' }}
 
</nowiki></pre>
 
</nowiki></pre>
 
== Example ==
 
== Example ==
Line 9: Line 9:
 
{{InfRule|HYP|<math>\frac{X}{\textbf{H},\textbf{P} \;\;\vdash \;\; \textbf{P}}</math>}}
 
{{InfRule|HYP|<math>\frac{X}{\textbf{H},\textbf{P} \;\;\vdash \;\; \textbf{P}}</math>}}
 
</nowiki></pre>
 
</nowiki></pre>
 +
gives:
 
{{InfRule|HYP|<math>\frac{X}{\textbf{H},\textbf{P} \;\;\vdash \;\; \textbf{P}}</math>}}
 
{{InfRule|HYP|<math>\frac{X}{\textbf{H},\textbf{P} \;\;\vdash \;\; \textbf{P}}</math>}}
 
[[Category:Typesetting template]]
 
[[Category:Typesetting template]]

Revision as of 10:24, 5 September 2008

Template use to specify a named inference rule

Usage

{{InfRule| ''name'' | ''math formula typeset with a <math>\frac{}{}</math> expression'' }}

Example

{{InfRule|HYP|<math>\frac{X}{\textbf{H},\textbf{P} \;\;\vdash \;\; \textbf{P}}</math>}}

gives:

\frac{X}{\textbf{H},\textbf{P} \;\;\vdash \;\; \textbf{P}} HYP

Template