ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with left and right
@ 2004-07-23 19:19 Matt Gushee
  2004-07-23 19:44 ` Problems with left and right, Part II Matt Gushee
  2004-07-24  6:26 ` Problems with left and right Hans Hagen Outside
  0 siblings, 2 replies; 9+ messages in thread
From: Matt Gushee @ 2004-07-23 19:19 UTC (permalink / raw)


Hello--

I have noticed a couple of cases where ConTeXt macros seem to have
confused left and right sides:

 1) I want to format some text in two columns, where the left column
    is right-aligned and the right column is left-aligned. I found I
    had to do this:

      \defineparagraphs
        [ingredient]
        [n=2, before={\blank[small]},after={\blank[small]}]
      \setupparagraphs
        [ingredient] [1] 
        [width=.16\textwidth,align=left,style=bold]

 2) In order to format format headers for a book so that the book title
    appears on the left-hand page and the section title on the right, I
    had to do this:

      \setupheadertexts [] [section] [title] []

    ... which, as I read the documentation, is in the opposite order to
    what it should be.

Is this a bug in ConTeXt, or have I misconfigured something?

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problems with left and right, Part II
  2004-07-23 19:19 Problems with left and right Matt Gushee
@ 2004-07-23 19:44 ` Matt Gushee
  2004-07-24  6:26 ` Problems with left and right Hans Hagen Outside
  1 sibling, 0 replies; 9+ messages in thread
From: Matt Gushee @ 2004-07-23 19:44 UTC (permalink / raw)


On Fri, Jul 23, 2004 at 01:19:57PM -0600, Matt Gushee wrote:
> 
> I have noticed a couple of cases where ConTeXt macros seem to have
> confused left and right sides:

Just found another:

  \setuphead [title] [align=right]

places the title on the left side, and vice versa.

I have also confirmed that this takes place on both machines where I
have ConTeXt installed, so it's unlikely to be caused by anything I did.

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problems with left and right
  2004-07-23 19:19 Problems with left and right Matt Gushee
  2004-07-23 19:44 ` Problems with left and right, Part II Matt Gushee
@ 2004-07-24  6:26 ` Hans Hagen Outside
  2004-07-24  7:15   ` Matt Gushee
  1 sibling, 1 reply; 9+ messages in thread
From: Hans Hagen Outside @ 2004-07-24  6:26 UTC (permalink / raw)


Matt Gushee wrote:

>Hello--
>
>I have noticed a couple of cases where ConTeXt macros seem to have
>confused left and right sides:
>
> 1) I want to format some text in two columns, where the left column
>    is right-aligned and the right column is left-aligned. I found I
>    had to do this:
>
>      \defineparagraphs
>        [ingredient]
>        [n=2, before={\blank[small]},after={\blank[small]}]
>      \setupparagraphs
>        [ingredient] [1] 
>        [width=.16\textwidth,align=left,style=bold]
>  
>
nowadays, using \starttabulate[|pl|pr|] is the prefered way

forthermore, think of right as raggedright

> 2) In order to format format headers for a book so that the book title
>    appears on the left-hand page and the section title on the right, I
>    had to do this:
>
>      \setupheadertexts [] [section] [title] []
>
>    ... which, as I read the documentation, is in the opposite order to
>    what it should be.
>
>Is this a bug in ConTeXt, or have I misconfigured something?
>  
>
no, think of spreads

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problems with left and right
  2004-07-24  6:26 ` Problems with left and right Hans Hagen Outside
@ 2004-07-24  7:15   ` Matt Gushee
  2004-07-24  8:39     ` Peter Münster
  2004-07-24 12:06     ` Patrick Gundlach
  0 siblings, 2 replies; 9+ messages in thread
From: Matt Gushee @ 2004-07-24  7:15 UTC (permalink / raw)


On Fri, Jul 23, 2004 at 11:26:45PM -0700, Hans Hagen Outside wrote:
> >
> >I have noticed a couple of cases where ConTeXt macros seem to have
> >confused left and right sides:

First of all, thanks for your quick reply!

> forthermore, think of right as raggedright

And left as ... raggedleft? 

Anyway, I gather you're saying that the behavior I've observed is
correct. E.g.:

     [align=left]  [align=right]

              abc  foo, bar, baz
               de  dum-da-dum-da-dummmmm
          fghijkl  tweedledee

With all due respect, I don't see how that makes any sense. In common
English usage, left-aligned means the text is set against the left edge,
and right-aligned means the text is set against the right edge. I can't
imagine Dutch or other European languages are very different in that
respect (though I've been known to guess wrong about languages).
Furthermore, this usage of 'align=<side>' is inconsistent with some
other things in ConTeXt, such as \rightaligned, which behaves as I would
expect it to. 

> 
> >2) In order to format format headers for a book so that the book title
> >   appears on the left-hand page and the section title on the right, I
> >   had to do this:
> >
> >     \setupheadertexts [] [section] [title] []
> >
> >   ... which, as I read the documentation, is in the opposite order to
> >   what it should be.
> >
> >Is this a bug in ConTeXt, or have I misconfigured something?
> > 
> >
> no, think of spreads

You mean page spreads? Like this?

     +----------------+----------------+
     |                |                |
     |   even-        |   odd-         |
     |   numbered     |   numbered     |
     |   page         |   page         |
     |                |                |
     +----------------+----------------+

That's exactly what I was already thinking of, and it doesn't make
sense:

  COMMAND:    \setupheadertexts [] [section] [title] []

  RESULT:     +--------------------+--------------------+
              | <title>            |          <section> |
              |                    |                    |
              |                    |                    |
              |                    |                    |
              |                    |                    |
              +--------------------+--------------------+

If you say there's a logical explanation for this, then I believe you. I
still maintain it's really counterintuitive and likely to cause
confusion. And if so, aren't you making extra work for yourself (because
you have to explain it)? Or is it just me?
    
-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problems with left and right
  2004-07-24  7:15   ` Matt Gushee
@ 2004-07-24  8:39     ` Peter Münster
  2004-07-24 15:22       ` Matt Gushee
  2004-07-24 12:06     ` Patrick Gundlach
  1 sibling, 1 reply; 9+ messages in thread
From: Peter Münster @ 2004-07-24  8:39 UTC (permalink / raw)


On Sat, 24 Jul 2004, Matt Gushee wrote:

>   COMMAND:    \setupheadertexts [] [section] [title] []
> 
>   RESULT:     +--------------------+--------------------+
>               | <title>            |          <section> |
>               |                    |                    |
>               |                    |                    |
>               |                    |                    |
>               |                    |                    |
>               +--------------------+--------------------+
> 
> If you say there's a logical explanation for this, then I believe you.

Hello Matt,
isn't it logical, if you consider
\setupheadertexts [odd-left] [odd-right] [even-left] [even-right] ?
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problems with left and right
  2004-07-24  7:15   ` Matt Gushee
  2004-07-24  8:39     ` Peter Münster
@ 2004-07-24 12:06     ` Patrick Gundlach
  2004-07-24 15:22       ` Hans Hagen Outside
  1 sibling, 1 reply; 9+ messages in thread
From: Patrick Gundlach @ 2004-07-24 12:06 UTC (permalink / raw)



[...]


> Furthermore, this usage of 'align=<side>' is inconsistent with some
> other things in ConTeXt, such as \rightaligned, which behaves as I
> would expect it to.


I really wish that this align=wrong would change. Isn't there a
switch for that?

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: Problems with left and right
  2004-07-24 12:06     ` Patrick Gundlach
@ 2004-07-24 15:22       ` Hans Hagen Outside
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen Outside @ 2004-07-24 15:22 UTC (permalink / raw)


Patrick Gundlach wrote:

>[...]
>
>
>  
>
>>Furthermore, this usage of 'align=<side>' is inconsistent with some
>>other things in ConTeXt, such as \rightaligned, which behaves as I
>>would expect it to.
>>    
>>
>
>
>I really wish that this align=wrong would change. Isn't there a
>switch for that?
>  
>
you may try: \@@asraggedfalse -) 

but that only partially works 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problems with left and right
  2004-07-24  8:39     ` Peter Münster
@ 2004-07-24 15:22       ` Matt Gushee
  2004-07-25  9:45         ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Matt Gushee @ 2004-07-24 15:22 UTC (permalink / raw)


On Sat, Jul 24, 2004 at 10:39:52AM +0200, Peter Münster wrote:
> On Sat, 24 Jul 2004, Matt Gushee wrote:
> 
> >   COMMAND:    \setupheadertexts [] [section] [title] []
> > 
> >   RESULT:     +--------------------+--------------------+
> >               | <title>            |          <section> |
> >               |                    |                    |
> > 
> > If you say there's a logical explanation for this, then I believe you.
> 
> Hello Matt,
> isn't it logical, if you consider
> \setupheadertexts [odd-left] [odd-right] [even-left] [even-right] ?

Please explain why I should consider it that way. Most books in every
language I know of[*] are laid out with the even page on the left and
the odd page on the right. Furthermore, the ConTeXt manual says:

  Those who want more variations in headers and footers can use four
  instead of two arguments ....

    \setupfootertexts [even left] [even right] [odd left] [odd right]

So the order of arguments contradicts both the documentation and what I
think of as common sense.


NOTES:

* There are exceptions, of course. Other than English, languages I am
  familiar with are mainly Chinese and Japanese. Traditional books in
  those languages are laid out in the opposite direction to European
  books, but almost all contemporary books in China, and I think most in
  Japan, follow the Western practice. Besides, we're all gwailos here,
  aren't we?

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problems with left and right
  2004-07-24 15:22       ` Matt Gushee
@ 2004-07-25  9:45         ` Henning Hraban Ramm
  0 siblings, 0 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2004-07-25  9:45 UTC (permalink / raw)


Am 24.07.2004 um 17:22 schrieb Matt Gushee:

>> \setupheadertexts [odd-left] [odd-right] [even-left] [even-right] ?
> Please explain why I should consider it that way. Most books in every

If you use a single page layout you need only the first two parameters;
and normally one designs right (odd) pages first.


Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-07-25  9:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-23 19:19 Problems with left and right Matt Gushee
2004-07-23 19:44 ` Problems with left and right, Part II Matt Gushee
2004-07-24  6:26 ` Problems with left and right Hans Hagen Outside
2004-07-24  7:15   ` Matt Gushee
2004-07-24  8:39     ` Peter Münster
2004-07-24 15:22       ` Matt Gushee
2004-07-25  9:45         ` Henning Hraban Ramm
2004-07-24 12:06     ` Patrick Gundlach
2004-07-24 15:22       ` Hans Hagen Outside

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).