From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: the meaning of cutspace
Date: Tue, 17 Nov 2009 12:59:59 +0100 [thread overview]
Message-ID: <9B8DE71C-397A-463A-AA62-9CAAC5D14BD4@googlemail.com> (raw)
In-Reply-To: <alpine.LNX.2.00.0911171132490.1019@gaston.couberia.bzh>
Am 17.11.2009 um 11:40 schrieb Peter Münster:
> I'm sorry, I still don't understand... When width=middle adjusts the width
> to "paperwidth - backspace - cutspace", what should width=fit then do?
> What does "middle" mean, in the middle of *what*?
>
> I suggest, that specifying backspace + cutspace + width=middle should
> output an error or warning, and backspace + cutspace + width=fit should do
> it right...
The first thing context does is to check the value of width:
(the width of the textarea is stored in \makeupwidth, not \textwidth)
1. width=middle
if cutspace=0pt then cutspace=backspace endif
makeupwidth = paperwidth - backspace - cutspace
2. width=fit
when i look at the source i don't know if anyone want this setting because
very complicated and the calculation is
makeupwidth = paperwidth - (backspace - leftmargin - leftmargindistance - leftedge - ...) - (cutspace - rightmargin - ...)
3. width=<dimen>
makeupwidth = <dimen>
Example:
\definelayout[1][backspace=4cm,width=12cm]
\definelayout[2][backspace=5cm,cutspace=7cm,width=middle]
\definelayout[3][backspace=3cm,cutspace=0pt,width=middle]
\definelayout[4][backspace=4cm,width=fit]
\definelayout[5][backspace=4cm,leftmargin=3cm,width=fit]
\definelayout[6][backspace=4cm,leftmargin=4cm,width=fit]
\definelayout[7][backspace=4cm,leftmargin=2cm,width=fit]
\definelayout[8][backspace=4cm,leftmargin=2cm,rightmargin=3cm,width=fit]
\definelayout[9][backspace=4cm,leftmargin=2cm,rightmargin=4cm,width=fit]
\definelayout[10][backspace=4cm,leftmargin=2cm,rightmargin=2cm,width=fit]
\showframe
\starttext
\dorecurse{10}
{\starttabulate
\NC backspace \EQ \PtToCm\backspace \NC\NR
\NC textwidth \EQ \PtToCm\textwidth \NC\NR
\NC cutspace \EQ \PtToCm\cutspace \NC\NR
\stoptabulate
\page}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-11-17 11:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.467.1258396019.22155.ntg-context@ntg.nl>
2009-11-16 20:35 ` Vyatcheslav Yatskovsky
2009-11-16 20:48 ` Aditya Mahajan
2009-11-16 21:29 ` Wolfgang Schuster
2009-11-16 22:39 ` Wolfgang Schuster
2009-11-17 10:40 ` Peter Münster
2009-11-17 11:59 ` Wolfgang Schuster [this message]
2009-11-17 12:52 ` luigi scarso
2009-11-17 12:54 ` Taco Hoekwater
2009-11-17 12:58 ` luigi scarso
2009-11-17 23:00 ` luigi scarso
2009-11-16 21:23 ` Vyatcheslav Yatskovsky
2009-11-16 21:59 ` Taco Hoekwater
[not found] <mailman.465.1258380900.22155.ntg-context@ntg.nl>
2009-11-16 17:14 ` Vyatcheslav Yatskovsky
2009-11-16 17:28 ` luigi scarso
2009-11-16 18:26 ` Taco Hoekwater
2009-11-16 18:44 ` Peter Münster
2009-11-16 18:56 ` Peter Münster
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=9B8DE71C-397A-463A-AA62-9CAAC5D14BD4@googlemail.com \
--to=schuster.wolfgang@googlemail.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).