Difference between revisions of "Command/defineformula"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \defineformula")
 
 
Line 23: Line 23:
 
<cd:description><!-- the long description of the command goes here -->
 
<cd:description><!-- the long description of the command goes here -->
 
</cd:description>
 
</cd:description>
<cd:examples></cd:examples>
+
<cd:examples><cd:example title=""><context source="yes">
 +
\defineformula[simple][spacebefore=24pt,align=flushleft,indentnext=no]
 +
 
 +
Here is a famous formula:
 +
\startsimpleformula
 +
E = cm^2
 +
\stopsimpleformula
 +
but perhaps it is not quite right?
 +
 
 +
</context>
 +
</cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>
 
<cd:commandref name="setupformula" originator="system"></cd:commandref>
 
<cd:commandref name="setupformula" originator="system"></cd:commandref>
 
<cd:source file="math-for.mkiv" originator="system"></cd:source>
 
<cd:source file="math-for.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Mathematics"></cd:wikipage></cd:seealso>
+
<cd:wikipage originator="system" page="Category:Mathematics"></cd:wikipage>
 +
<cd:commandref name="_startformula">for the predefined formula environments</cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 11:26, 14 September 2023


\defineformula

Summary

The command \defineformula is used to define specific displayed mathematical content environments

Settings

\defineformula[...][...][...=...,...]
[...]name
[...]name
...=...,...inherits from \setupformula

Description

Examples

Example 1

\defineformula[simple][spacebefore=24pt,align=flushleft,indentnext=no]

Here is a famous formula:
\startsimpleformula
E = cm^2
\stopsimpleformula
but perhaps it is not quite right?

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: