Difference between revisions of "Command/alignhere"

From Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
 
\startformula
 
\startformula
\tfrac{1}{2} p^2 \left{\|}x\right{\|} + p^2
+
(a_1 x + b_1) (a_2 x + b_2)
\stopformula
 
</context>
 
  
 +
\alignhere
 +
= (a_1 + a_2) x^2 + a_1 b_1 x + b_1 a_2 x + b_1 b_2
 +
 +
\breakhere
 +
= (a_1 + a_2) x^2 + (a_1 b_1 + b_1 a_2) x + b_1 b_2
  
<context source="yes">
 
\startformula
 
\tfrac{1}{2} p^2 \abs{x} +  p^2
 
 
\stopformula
 
\stopformula
 
</context></cd:example></cd:examples>
 
</context></cd:example></cd:examples>

Revision as of 13:18, 8 May 2024


\alignhere

Summary

The command \alignhere is used for math, to specify where to align consecutive equations.

Description

Examples

Example 1

\startformula
(a_1 x + b_1) (a_2 x + b_2)

\alignhere
= (a_1 + a_2) x^2 + a_1 b_1 x + b_1 a_2 x + b_1 b_2

\breakhere
= (a_1 + a_2) x^2 + (a_1 b_1 + b_1 a_2) x + b_1 b_2

\stopformula

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: