ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* changing dimensions of the page in a document
@ 2001-02-22 19:34 Uwe Koloska
  2001-02-23  8:15 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Koloska @ 2001-02-22 19:34 UTC (permalink / raw)


Hello,

I tried to make a screen document and some pages shall receive a different 
layout like in demos-en.  I know (and Hans and the manual has said) that 
setting margin and margindistance doesn't affect backspace, but the 
following document shows the contrary.  What's going wrong here?

\setuppapersize
  [S6][S6]

\setuplayout 
  [header=0cm,
   topspace=.5cm,
   backspace=.5cm,       % (1)
   leftmargin=0cm,
   margindistance=.5cm, 
   rightmargin=0cm,
   rightedge=3cm,
   width=fit]

\showframe

\starttext

\section{Eins}
\input tufte

\page
\setuplayout
  [leftmargin=.8cm,backspace=1.7cm,leftmargindistance=.4cm] % (2)
%\setuplayout
% [leftmargin=.7cm,backspace=1.7cm,leftmargindistance=.5cm] % (3)
\section{Zwei}
\input hofstadter

\stoptext

This works ok -- but if I change only one parameter of leftmargin or 
backspace in (1) or (2) the layout jumps.  And if I use (3) instead of (2) 
all my thoughts about a relationship between the settings went away :-|

If I change
  \setuplayout[leftmargin=.5cm,backspace=1.3cm,leftmargindistance=.3cm]
to
  \setuplayout[leftmargin=.4cm,backspace=1.3cm,leftmargindistance=.3cm]
in the example, the layout frames jump ...

  |  |      text     |  |edge| |
  |   |mar|  | text | |edge|   |

this is only a rough scetch.  If it doesn't jump for you, I can give you 
the resulting pdf that shows it ...

Hope someone can clarify this!
Uwe

-- 
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
--                                    --
right now the web page is in german only
but this will change as time goes by ;-)


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

* Re: changing dimensions of the page in a document
  2001-02-22 19:34 changing dimensions of the page in a document Uwe Koloska
@ 2001-02-23  8:15 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-02-23  8:15 UTC (permalink / raw)
  Cc: ConTeXt

At 08:34 PM 2/22/01 +0100, Uwe Koloska wrote:
>Hello,
>
>I tried to make a screen document and some pages shall receive a different 
>layout like in demos-en.  I know (and Hans and the manual has said) that 
>setting margin and margindistance doesn't affect backspace, but the 
>following document shows the contrary.  What's going wrong here?

Ah, but you didn't tell that you used width=fit -) 

When you use width=fit, the margins and edges (one level) play a role.
Although not 100% perfect, in that case the width is set to a dimension
that makes sure that the layout is symmetrical, for instance the
backspace-leftmargin is added to the right. This works ok for simple
layouts, otherwise you need to specify 'm all. It may help to explicitly
set left/right margins/edges to 0pt.

The idea behind this is that in a quick and dirty screen doc case: 

(1) the backspace is slightly larger tnan the margin
(2) you want to maximize screen usage
(3) edges should show up, so become non virtual
(4) margins are used as margins and edges for menus 

esp (4) is important since that permits a paper version to use margins and
a screen doc to have non interfering menus in edges. 

So, only use 'fit' in simple cases, otherwise, use middle or just specify
the dimensions. 

Hans  
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2001-02-23  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-22 19:34 changing dimensions of the page in a document Uwe Koloska
2001-02-23  8:15 ` Hans Hagen

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