Difference between revisions of "Command/startalignment"

From ConTeXt wiki
 
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (autogenerated)] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>startalignment</syntax>
 
<syntax>startalignment</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 13:19, 13 October 2019

\startalignment

Syntax (autogenerated)

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


Syntax

\startalignment[...] ... \stopalignment
[...] width flushleft flushright middle inner outer wide broad height bottom line reset hanging nothanging hyphenated nothyphenated

Description

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

Example

\setuppapersize[A6]
\setupalign[flushleft, nothyphenated]

\input ward

\startalignment[flushright]
\input ward
\stopalignment


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

% 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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: