Command/startalignment

From Wiki
Jump to navigation Jump to search


\startalignment ... \stopalignment

Summary

The environment \startalignment ... \stopalignment is used for ...

Settings

\startalignment[...,...] ... \stopalignment
[...,...]inherits from \setupalign

Description

Use a different alignment for the content between \startalignment...\stopalignment. For a description of the keys, see \setupalign.

If one wants to center a figure, a table, or something similar, one should add \dontleavehmode.


Examples

Example 1

\setupalign[flushleft, nothyphenated]

\input ward

\startalignment[flushright]
\input ward
\stopalignment

Example 2

% Tell the wiki engine where the cow is located
\setupexternalfigures[location={local,default}]

\input ward

\startalignment[middle]% or center
\dontleavehmode
\externalfigure[cow][width=2cm]
\stopalignment

Notes

  • By Taco on 2023-09-12T21:36:06+0200:
This environment is called \startalignment, but inherits from \setupalign. This environment is not to be confused with \startalign (which aligns items with eachother inside mathematical formulas).

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: