ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "M.guravage" <m.guravage@pragma-cts.com>
Subject: backspace makeupwidth tradeoff
Date: Fri, 23 Dec 2005 09:58:42 +0100 (CET)	[thread overview]
Message-ID: <48111.194.105.120.70.1135328322.squirrel@webmail.solcon.nl> (raw)

Hi,

I'd like to increase the backspace at the expense of the makeupwidth. I
like to do this by adding either a scalar or a percentage of the
backspace. In the following bit of code I'd expect both sets of
\mybackspace and \mywidth macros to yield identical results, but the
don't. The scalar approach seems to work correctly, and the percentage
not.

I'd appreciate it if somebody could show me where I've gone wrong. It must
be embarrassingly simple, but I can't see it - yet. Thanks in advance.

Cheers,

Michael


\showgrid
\showframe
%\showlayout

\def\abcor{1.25cm} % absolute binding correction
\def\pbcor{0.5}    % percentage binding correction

% default backspace is 2.5cm
%\def\mybackspace{\dimexpr(\backspace + \abcor)}
\def\mybackspace{\dimexpr(\backspace + \pbcor\backspace)}

% default makeupwidth is 15cm
%\def\mywidth{\dimexpr(\makeupwidth - \abcor)}
\def\mywidth{\dimexpr(\makeupwidth - \pbcor\backspace)}

\setuplayout
  [location=middle,
   backspace=\mybackspace,
   width=\mywidth]

\starttext
  \dorecurse{10}{\input tufte \par}
\stoptext

             reply	other threads:[~2005-12-23  8:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-23  8:58 M.guravage [this message]
2005-12-23  9:37 ` 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=48111.194.105.120.70.1135328322.squirrel@webmail.solcon.nl \
    --to=m.guravage@pragma-cts.com \
    --cc=ntg-context@ntg.nl \
    /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).