ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Giuseppe Bilotta <bourbaki@bigfoot.com>
Subject: Layout issues
Date: Fri, 8 Mar 2002 20:24:40 +0100	[thread overview]
Message-ID: <8910313788.20020308202440@bigfoot.com> (raw)

Hello,

a couple of questions on page layout.

Issue #1: the default layout does not fit in an A4 sheet. First of
all, as it is it puts part of the left margin outside
of the printed page (at least on my system), as shown by

\setuppapersize[A4][A4]
\setupinmargin[left][align=normal]
\starttext
\showframe
\inmargin{Hello there}
\stoptext

But if the backspace is shifted enough to bring the whole
left margin on the page, the right margin falls off the page (by a
very small amount), as shown by

\setuppapersize[A4][A4]
\newdimen\mybackspace
\mybackspace\leftmarginwidth
\advance\mybackspace\leftmargindistance
\setuplayout[backspace=\mybackspace]

\setupinmargin[left][align=outer]
\setupinmargin[right][align=outer]
%%% ^^^^^^^^^^ Why can't I use \setupinmargin[left,right] ?
\starttext
\showframe
\showsetups
\inmargin{Hello there}
\inothermargin{Hello there}
\stoptext

Issue #2: parametric setup of the layout.

This can be done already, but I was thinking of some slightly more
'equationish' way of setting the parameters, something probably
typical of the MetaPost approach (say,
leftmargin=rightmargin=.2width, leftmargindistance=rightmargindistance,
with some predefined equations like
leftmargin+leftmargindistance+width+rightmargindistance+rightmargin=
paperwidth-backspace-leftedge-leftedgedistance-rightedge-leftedgedistance).

Issue #3: scaling/fitting

Often (to save paper or for other reasons) I like to scale my work
(usually done with \setuppapersize[A4][A4]) so that it fits in two
pages per sheet. With LaTeX, I would achieve this by creating a
DVI, converting it to PS and the use various the psutils to
rearrange/merge pages.

ConTeXt has its own imposition capabilities, so one would think
that

\setuppapersize[A5][A4,landscape]
\setuparranging[2SIDE]

would be enough.

Yet this way to achieve things presents interesting problems
related to the (possible) presence of absolute dimensions within
the document. What is needed is thus some kind of arranging option
that provides to automatic scaling/rotating AFTER the document has
been typeset, so that, for example:

\setuppapersize[A4][A4,landscape]
\setuparranging[2SIDE,scaled]

provides automatic scaling of the pages to fit the physical page
---the scaling factor is
max(paper_height/physical_paper_height,
    paper_width/physical_paper_width)

(Ab)using magnification could be an option as well.

--
Giuseppe "Oblomov" Bilotta


             reply	other threads:[~2002-03-08 19:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-08 19:24 Giuseppe Bilotta [this message]
2002-03-09 22:16 ` Hans Hagen
2002-03-11 11:24   ` Re[2]: " Giuseppe Bilotta
2002-03-11 18:16   ` Daniel Joyce
     [not found]   ` <02031111562609.27435@gaia>
2002-03-11 22:24     ` Hans Hagen
2002-03-13  5:16       ` Daniel Joyce
2002-03-13 10:38         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8910313788.20020308202440@bigfoot.com \
    --to=bourbaki@bigfoot.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).