|
From: | Mats Bengtsson |
Subject: | Re: Proposed syntax change: renaming of \center-align markup command |
Date: | Sun, 17 Aug 2008 14:21:46 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8 |
Trevor Daniels wrote:
As for \hcenter and \column, should I leave these as duplicates of \center-align and \left-column (which would help minimize user complaints), or remove them?
I just realized that \column and \left-column isn't the same thing (or at least that it shouldn't be the same thing). If you compare the implementation of the current \column and \center-align commands, you will notice that \column just stacks the markups using their already existing horizontal alignment points, whereas \center-align also sets the horizontal alignment point of each markup in the column. In other words, \center-align is equivalent to \column \hcenter, as the following example illustrates: \version "2.11.50" \markup{\column{ \left-align { AAAAA BBB C }}} \markup{\column { AAAAA BBB C }} \markup{\column{ \hcenter { \right-align AAAAA BBB C }}} \markup{\center-align { \right-align AAAAA BBB C }} Similarly, a \left-column that does what the name says, should explicitly set the horizontal alignment point of all the markups to be left aligned, i.e. be equivalent to \column \left-align. The following example illustrates the difference: \version "2.11.50" \markup{\column { \right-align AAAAA BBB C }} % What a proper implementation of \left-column should do: \markup{\column{ \left-align { \right-align AAAAA BBB C }}} /Mats
[Prev in Thread] | Current Thread | [Next in Thread] |