[dev-context] Environments for alignment commands

Wolfgang Schuster wolfgang.schuster at gmail.com
Mon Oct 29 20:24:22 CET 2012


Hi Hans,

can we add the following definitions to space-ali.mkiv

\unexpanded\def\startleftaligned {\doalignline\relax \hss  \bgroup}
\unexpanded\def\startmidaligned  {\doalignline\hss   \hss  \bgroup}
\unexpanded\def\startrightaligned{\doalignline\hss   \relax\bgroup}
\unexpanded\def\startmaxaligned  {\doalignline\relax \relax\bgroup}

\unexpanded\def\stopleftaligned {\unskip\egroup}
\unexpanded\def\stopmidaligned  {\unskip\egroup}
\unexpanded\def\stoprightaligned{\unskip\egroup}
\unexpanded\def\stopmaxaligned  {\unskip\egroup}

The \unskip (would be \removeunwantedspaces better?) because otherwise the space at the end of the text appears in the output:

\startmidaligned
  Centered?
\stopmidaligned

Wolfgang


More information about the dev-context mailing list