Re: [NTG-context] Problems with left and right

2004-07-24 Thread Hans Hagen Outside
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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with left and right

2004-07-24 Thread Matt Gushee
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-dum
  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, USAHorses bear manure through
[EMAIL PROTECTED]   its fields;
http://www.havenrock.com/   When a nation ignores the Way,
Horses bear soldiers through
its streets.

--Lao Tzu (Peter Merel, trans.)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with left and right

2004-07-24 Thread Peter Mnster
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/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with left and right

2004-07-24 Thread Matt Gushee
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, USAHorses bear manure through
[EMAIL PROTECTED]   its fields;
http://www.havenrock.com/   When a nation ignores the Way,
Horses bear soldiers through
its streets.

--Lao Tzu (Peter Merel, trans.)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with left and right, Part II

2004-07-23 Thread Matt Gushee
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, USAHorses bear manure through
[EMAIL PROTECTED]   its fields;
http://www.havenrock.com/   When a nation ignores the Way,
Horses bear soldiers through
its streets.

--Lao Tzu (Peter Merel, trans.)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context