ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Layout and textwidth/textmargin
       [not found] <mailman.518.1156649529.2039.ntg-context@ntg.nl>
@ 2006-08-27 19:10 ` wwl
  2006-08-27 19:58   ` nico
  2006-08-27 22:14   ` Horacio Suarez
  0 siblings, 2 replies; 9+ messages in thread
From: wwl @ 2006-08-27 19:10 UTC (permalink / raw)


> Well, I start from the beginning with odd/even layout setting, and
> the  
> following does not work. The behaviour I see is that only the odd
> setting  
> is used. What is wrong in there?
> 
> \definelayout[odd]
>    [width=middle,
>     backspace=7cm,
>     cutspace=5cm]
> 
> \definelayout[even]
>    [backspace=8cm,
>     cutspace=2cm,
>     width=middle]
> 
> \setuplayout
> 
> %\showlayout
> 
> \starttext
> \dorecurse{4}{
> \section{Hello}
> \input knuth \endgraf
> \subsection{Sub Hello}
> \input tufte \endgraf}
> \stoptext

Hallo!

This doesn't work here, too!

The wiki said it should work. So, maybe there ist something broken in 
the meantime.

In 'page-lay.tex' I found something with

\setuplayout[odd][state=stop]
\setuplayout[even][state=stop]

so

a.) Not alone \definelayout but also \setuplayout should work with 
odd|even.
b.) Because there is something to stop here, there may be some need 
to start it?

Btw. \definelayout[1][] doesn't work too.

Wolfgang

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

* Re: Layout and textwidth/textmargin
  2006-08-27 19:10 ` Layout and textwidth/textmargin wwl
@ 2006-08-27 19:58   ` nico
  2006-08-27 22:14   ` Horacio Suarez
  1 sibling, 0 replies; 9+ messages in thread
From: nico @ 2006-08-27 19:58 UTC (permalink / raw)


On Sun, 27 Aug 2006 21:10:12 +0200, <wwl@musensturm.de> wrote:

>> What is wrong in there?
>>
>> \definelayout[odd]
>>    [width=middle,
>>     backspace=7cm,
>>     cutspace=5cm]
>>
>> \definelayout[even]
>>    [backspace=8cm,
>>     cutspace=2cm,
>>     width=middle]
>>
>> \setuplayout
>
> Hallo!
>
> This doesn't work here, too!

Yes, Hans sent me off-list a patch that works fine with the beta  
2006.08.22 release. The given example is:

\setuppagenumbering[alternative=doublesided]

\setuplayout         [width=11cm]
\definelayout [odd]  [backspace=1cm]
\definelayout [even] [backspace=4cm]
\definelayout [5]    [backspace=5cm]
\definelayout [6]    [backspace=5cm]
\definelayout [-2]   [backspace=0cm,cutspace=0cm]
\definelayout [last] [backspace=0cm,cutspace=0cm]

\checkcurrentlayout \showframe

\starttext
   \dorecurse{20} {\input knuth \endgraf \input tufte \endgraf}
\stoptext

Thanks again to Hans that I guess will include it in a next release.

Regards,
BG

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

* Layout and textwidth/textmargin
  2006-08-27 19:10 ` Layout and textwidth/textmargin wwl
  2006-08-27 19:58   ` nico
@ 2006-08-27 22:14   ` Horacio Suarez
  2006-08-28  7:50     ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Horacio Suarez @ 2006-08-27 22:14 UTC (permalink / raw)


May I define and setup two diferents layouts and swicht between them?

I want a bigger textwidth in the last 6 chapters.

Thankyou very much.




>From: wwl@musensturm.de
>Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>
>To: ntg-context@ntg.nl
>Subject: Re: [NTG-context] Layout and textwidth/textmargin
>Date: Sun, 27 Aug 2006 21:10:12 +0200
>
> > Well, I start from the beginning with odd/even layout setting, and
> > the
> > following does not work. The behaviour I see is that only the odd
> > setting
> > is used. What is wrong in there?
> >
> > \definelayout[odd]
> >    [width=middle,
> >     backspace=7cm,
> >     cutspace=5cm]
> >
> > \definelayout[even]
> >    [backspace=8cm,
> >     cutspace=2cm,
> >     width=middle]
> >
> > \setuplayout
> >
> > %\showlayout
> >
> > \starttext
> > \dorecurse{4}{
> > \section{Hello}
> > \input knuth \endgraf
> > \subsection{Sub Hello}
> > \input tufte \endgraf}
> > \stoptext
>
>Hallo!
>
>This doesn't work here, too!
>
>The wiki said it should work. So, maybe there ist something broken in
>the meantime.
>
>In 'page-lay.tex' I found something with
>
>\setuplayout[odd][state=stop]
>\setuplayout[even][state=stop]
>
>so
>
>a.) Not alone \definelayout but also \setuplayout should work with
>odd|even.
>b.) Because there is something to stop here, there may be some need
>to start it?
>
>Btw. \definelayout[1][] doesn't work too.
>
>Wolfgang
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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

* Re: Layout and textwidth/textmargin
  2006-08-27 22:14   ` Horacio Suarez
@ 2006-08-28  7:50     ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2006-08-28  7:50 UTC (permalink / raw)


Horacio Suarez wrote:
> May I define and setup two diferents layouts and swicht between them?
>   
indeed, one can also mix papersizes

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: Layout and textwidth/textmargin
  2006-08-26 20:29   ` Hans Hagen
@ 2006-08-26 21:39     ` nico
  0 siblings, 0 replies; 9+ messages in thread
From: nico @ 2006-08-26 21:39 UTC (permalink / raw)


On Sat, 26 Aug 2006 22:29:23 +0200, Hans Hagen <pragma@wxs.nl> wrote:

> Willi Egger wrote:
>> Hi,
>>
>> To me it should not be necessary to define odd and even layouts for your
>> purposes. (Of course I stand corrected!)
>>
> in the case that one has a strangely assymetric layout (no mirroring)  
> one can do
>
> \setuplayout[odd] [....]
> \setuplayout[even][....]

But it doesn't work. In the following case it is simply ignored (default  
setting used). I've this behaviour with live context too. What's wrong?

\setuplayout[odd]
   [width=middle,
    backspace=7cm,
    cutspace=5cm]

\setuplayout[even]
   [backspace=8cm,
    cutspace=4cm,
    width=middle]

\starttext
\dorecurse{4}{
\section{Hello}
\input knuth \endgraf
\subsection{Sub Hello}
\input tufte \endgraf}
\stoptext

Regards,
BG

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

* Re: Layout and textwidth/textmargin
  2006-08-26 20:16 ` Willi Egger
@ 2006-08-26 20:29   ` Hans Hagen
  2006-08-26 21:39     ` nico
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2006-08-26 20:29 UTC (permalink / raw)


Willi Egger wrote:
> Hi,
>
> To me it should not be necessary to define odd and even layouts for your 
> purposes. (Of course I stand corrected!)
>   
in the case that one has a strangely assymetric layout (no mirroring) one can do 

\setuplayout[odd] [....]
\setuplayout[even][....]



-----------------------------------------------------------------
                                          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: Layout and textwidth/textmargin
  2006-08-24 18:37 nico
  2006-08-26 18:45 ` nico
@ 2006-08-26 20:16 ` Willi Egger
  2006-08-26 20:29   ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Willi Egger @ 2006-08-26 20:16 UTC (permalink / raw)


Hi,

To me it should not be necessary to define odd and even layouts for your 
purposes. (Of course I stand corrected!)

If you choose \setuppagenumbering[alternative=doublesided] the page 
layout is swapped automatically.
For the realisation of the titles sticking into the "margin" one should 
be able to use \setuphead[section,subsection][command=...]

This would look then like this:

\setuppagenumbering[alternative=doublesided]

\setuplayout
    [backspace=2cm,
    leftmargin=5cm,
    rightmargin=7cm]

\setupnarrower[left=3cm]
\setuphead[section,subsection][after={\startnarrower[left]}]

\showframe
\starttext
\section{Hello}
\setuphead[section][before=\stopnarrower]
    \input knuth \par
\subsection{Sub Hello}
\setuphead[subsection][before=\stopnarrower]
     \input tufte \par
\dorecurse{4}{
    \section{Hello}
         \input knuth \endgraf
    \subsection{Sub Hello}
         \input tufte \endgraf}
\stoptext

I admit, this is not yet working correctly, but I can't find the key at 
the moment ;-)

Willi

nico wrote:
> Hello,
>
> I wonder if it is possible to setup a layout with these requirements:
>
> - it can be doublesided, that is, when doublesided the left margin (LM)  
> and right margin (RM) are different and mirrored on right/left pages.
>
> - the headings (section, etc.) start just after the left margin.
>
> - the text body has an extra left text margin (TM) that is not mirrored.
>
> Here is an example of the expected output in doublesided mode:
>
> Left Page:
>      LM      TM                          RM
> |<--7--><-- 8-->                      <-5->|
> |       1. This is a Title                 |
> |                                          |
> |               This is the text body      |
> |               that has a bigger left     |
> |               margin.                    |
>
> Right Page:
>
>     RM    TM                            LM
> |<-5-><-- 8-->                      <--7-->|
> |             The test continues on        |
> |             This page.                   |
> |                                          |
> |     2. Another Title                     |
> |                                          |
>
> For singlesided documents I can play with a setup like this (the  
> margindistances should be taken into account too):
>
> \setuphead[section][margin=-TM]
> \setuplayout[leftmargin=TM+LM,
>               rightmargin=RM,
>               backspace=TM+LM,
>               width=\paperwidth-(RM+TM+LM)]
>
> For doublesided documents I thought about using textwidth or textmargin,  
> but in this case the text margin is applied on left and right (the text is  
> in the middle).
>
> Should I play with other setup parameters? What is the best way to achieve  
> this?
>
> Thanks for any hint,
>
> Regards,
> BG
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   

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

* Re: Layout and textwidth/textmargin
  2006-08-24 18:37 nico
@ 2006-08-26 18:45 ` nico
  2006-08-26 20:16 ` Willi Egger
  1 sibling, 0 replies; 9+ messages in thread
From: nico @ 2006-08-26 18:45 UTC (permalink / raw)


On Thu, 24 Aug 2006 20:37:46 +0200, nico <nicolas.marsgui@libertysurf.fr>  
wrote:

> Hello,
>
> I wonder if it is possible to setup a layout with these requirements:
>
> - it can be doublesided, that is, when doublesided the left margin (LM)
> and right margin (RM) are different and mirrored on right/left pages.
>
> - the headings (section, etc.) start just after the left margin.
>
> - the text body has an extra left text margin (TM) that is not mirrored.
>
> Here is an example of the expected output in doublesided mode:
>
> Left Page:
>      LM      TM                          RM
> |<--7--><-- 8-->                      <-5->|
> |       1. This is a Title                 |
> |                                          |
> |               This is the text body      |
> |               that has a bigger left     |
> |               margin.                    |
>
> Right Page:
>
>     RM    TM                            LM
> |<-5-><-- 8-->                      <--7-->|
> |             The test continues on        |
> |             This page.                   |
> |                                          |
> |     2. Another Title                     |
> |                                          |

Well, I start from the beginning with odd/even layout setting, and the  
following does not work. The behaviour I see is that only the odd setting  
is used. What is wrong in there?

\definelayout[odd]
   [width=middle,
    backspace=7cm,
    cutspace=5cm]

\definelayout[even]
   [backspace=8cm,
    cutspace=2cm,
    width=middle]

\setuplayout

%\showlayout

\starttext
\dorecurse{4}{
\section{Hello}
\input knuth \endgraf
\subsection{Sub Hello}
\input tufte \endgraf}
\stoptext

Regards,
BG

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

* Layout and textwidth/textmargin
@ 2006-08-24 18:37 nico
  2006-08-26 18:45 ` nico
  2006-08-26 20:16 ` Willi Egger
  0 siblings, 2 replies; 9+ messages in thread
From: nico @ 2006-08-24 18:37 UTC (permalink / raw)


Hello,

I wonder if it is possible to setup a layout with these requirements:

- it can be doublesided, that is, when doublesided the left margin (LM)  
and right margin (RM) are different and mirrored on right/left pages.

- the headings (section, etc.) start just after the left margin.

- the text body has an extra left text margin (TM) that is not mirrored.

Here is an example of the expected output in doublesided mode:

Left Page:
     LM      TM                          RM
|<--7--><-- 8-->                      <-5->|
|       1. This is a Title                 |
|                                          |
|               This is the text body      |
|               that has a bigger left     |
|               margin.                    |

Right Page:

    RM    TM                            LM
|<-5-><-- 8-->                      <--7-->|
|             The test continues on        |
|             This page.                   |
|                                          |
|     2. Another Title                     |
|                                          |

For singlesided documents I can play with a setup like this (the  
margindistances should be taken into account too):

\setuphead[section][margin=-TM]
\setuplayout[leftmargin=TM+LM,
              rightmargin=RM,
              backspace=TM+LM,
              width=\paperwidth-(RM+TM+LM)]

For doublesided documents I thought about using textwidth or textmargin,  
but in this case the text margin is applied on left and right (the text is  
in the middle).

Should I play with other setup parameters? What is the best way to achieve  
this?

Thanks for any hint,

Regards,
BG

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

end of thread, other threads:[~2006-08-28  7:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.518.1156649529.2039.ntg-context@ntg.nl>
2006-08-27 19:10 ` Layout and textwidth/textmargin wwl
2006-08-27 19:58   ` nico
2006-08-27 22:14   ` Horacio Suarez
2006-08-28  7:50     ` Hans Hagen
2006-08-24 18:37 nico
2006-08-26 18:45 ` nico
2006-08-26 20:16 ` Willi Egger
2006-08-26 20:29   ` Hans Hagen
2006-08-26 21:39     ` nico

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).