Difference between revisions of "Command/startsubformulas"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \startsubformulas ... \stopsubformulas")
 
 
(2 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
<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="Without and with"><context source="yes">
 +
\setuplayout[scale=0.8,width=13cm]
 +
 
 +
\startplaceformula
 +
\startformula \startalign
 +
\NC v \NC = u + at \NR[eq:v]
 +
\NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
 +
\stopalign \stopformula
 +
\stopplaceformula
 +
 
 +
 
 +
Equation~(\in[eq:v]) tells the final velocity after time~$t$ and equation (\in[eq:h]) tells the distance travelled in time~$t$.
 +
</context>
 +
 
 +
<context source="yes">
 +
\setuplayout[scale=0.8,width=13cm]
 +
\startsubformulas[eq:total]
 +
\startplaceformula
 +
\startformula \startalign
 +
\NC v \NC = u + at \NR[eq:v]
 +
\NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
 +
\stopalign \stopformula
 +
\stopplaceformula
 +
\stopsubformulas
 +
 
 +
Equation~(\in[eq:v]) tells the final velocity after time~$t$ and equation (\in[eq:h]) tells the distance travelled in time~$t$.
 +
</context></cd:example><cd:example title="Difference between {{cmd|startformulas}}  {{cmd|startsubformulas}}"><context source="yes">
 +
\startplaceformula
 +
\startformulas
 +
  \startformula \startalign
 +
  \NC v \NC = u + at \NR[eq:v]
 +
  \NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
 +
  \stopalign \stopformula
 +
  \startformula \startalign
 +
  \NC v \NC = u + at \NR[eq:v2]
 +
  \NC h \NC = ut + \frac12 gt^2 \NR[eq:h2]
 +
  \stopalign \stopformula
 +
\stopformulas
 +
\stopplaceformula
 +
 
 +
\startplaceformula
 +
\startsubformulas
 +
  \startformula \startalign
 +
  \NC v \NC = u + at \NR[eq:v3]
 +
  \NC h \NC = ut + \frac12 gt^2 \NR[eq:h3]
 +
  \NC v \NC = u + at \NR[eq:v4]
 +
  \NC h \NC = ut + \frac12 gt^2 \NR[eq:h4]
 +
  \stopalign \stopformula
 +
\stopsubformulas
 +
\stopplaceformula
 +
</context></cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>

Latest revision as of 20:01, 16 May 2024


\startsubformulas ... \stopsubformulas

Summary

The environment \startsubformulas ... \stopsubformulas is used for ...

Settings

\startsubformulas[...,...] ... \stopsubformulas
[...,...]+ - reference

Description

Examples

Without and with

\setuplayout[scale=0.8,width=13cm]

\startplaceformula
\startformula \startalign
 \NC v \NC = u + at \NR[eq:v]
 \NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
\stopalign \stopformula
\stopplaceformula


Equation~(\in[eq:v]) tells the final velocity after time~$t$ and equation (\in[eq:h]) tells the distance travelled in time~$t$.
\setuplayout[scale=0.8,width=13cm]
\startsubformulas[eq:total]
\startplaceformula
\startformula \startalign
 \NC v \NC = u + at \NR[eq:v]
 \NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
\stopalign \stopformula
\stopplaceformula
\stopsubformulas

Equation~(\in[eq:v]) tells the final velocity after time~$t$ and equation (\in[eq:h]) tells the distance travelled in time~$t$.

Difference between \startformulas \startsubformulas

\startplaceformula
\startformulas
  \startformula \startalign
  \NC v \NC = u + at \NR[eq:v]
  \NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
  \stopalign \stopformula
  \startformula \startalign
  \NC v \NC = u + at \NR[eq:v2]
  \NC h \NC = ut + \frac12 gt^2 \NR[eq:h2]
  \stopalign \stopformula
\stopformulas
\stopplaceformula

\startplaceformula
\startsubformulas
  \startformula \startalign
  \NC v \NC = u + at \NR[eq:v3]
  \NC h \NC = ut + \frac12 gt^2 \NR[eq:h3]
  \NC v \NC = u + at \NR[eq:v4]
  \NC h \NC = ut + \frac12 gt^2 \NR[eq:h4]
  \stopalign \stopformula
\stopsubformulas
\stopplaceformula

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: