Difference between revisions of "Command/alignhere"

From Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
</cd:variants>
 
</cd:variants>
 
<cd:description><!-- the long description of the command goes here -->
 
<cd:description><!-- the long description of the command goes here -->
</cd:description>
+
It works with {{cmd|breakhere}}</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
 
\setuppapersize[A6,landscape]
 
\setuppapersize[A6,landscape]
Line 13: Line 13:
  
 
\startformula
 
\startformula
\frac{1}{2}( p^2 \abs{x} + \abs{x} p^2 )
+
(a_1 x + b_1) (a_2 x + b_2)
  
 
\alignhere
 
\alignhere
= \abs{x} p \abs{x}^{-1} p \abs{x} - \tfrac{1}{2} \abs{x} ( \laplace \abs{x}^{-1} ) \abs{x}
+
= (a_1 + a_2) x^2 + a_1 b_1 x + b_1 a_2 x + b_1 b_2
  
 
\breakhere
 
\breakhere
= \abs{x} p \abs{x}^{-1} p \abs{x} - \tfrac{1}{2} \abs{x} 4 \pi \delta(0) \abs{x}
+
= (a_1 + a_2) x^2 + (a_1 b_1 + b_1 a_2) x + b_1 b_2
  
\breakhere
 
= \abs{x} p \abs{x}^{-1} p \abs{x}
 
 
\stopformula
 
\stopformula
  
 
\stoptext
 
\stoptext
</context>
 
 
<context source="yes">
 
\setuppapersize[A6,landscape]
 
\starttext
 
 
\startformula
 
\tfrac{1}{2}( p^2 \abs{x} + \abs{x} p^2 )
 
\stopformula
 
  
\stoptext
 
 
</context></cd:example></cd:examples>
 
</context></cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>

Latest revision as of 13:19, 8 May 2024


\alignhere

Summary

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

Description

It works with \breakhere

Examples

Example 1

\setuppapersize[A6,landscape]
\starttext

\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

\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: